Merge "Move @group and @covers tags in tests close to class"
[lhc/web/wiklou.git] / includes / changetags / ChangeTagsList.php
index dd8bab9..1559e1d 100644 (file)
@@ -39,18 +39,19 @@ abstract class ChangeTagsList extends RevisionListBase {
         * @throws Exception If you give an unknown $typeName
         */
        public static function factory( $typeName, IContextSource $context,
-               Title $title, array $ids ) {
-
+               Title $title, array $ids
+       ) {
                switch ( $typeName ) {
                        case 'revision':
-                               $className = 'ChangeTagsRevisionList';
+                               $className = ChangeTagsRevisionList::class;
                                break;
                        case 'logentry':
-                               $className = 'ChangeTagsLogList';
+                               $className = ChangeTagsLogList::class;
                                break;
                        default:
-                               throw new Exception( "Class $className requested, but does not exist" );
+                               throw new Exception( "Class $typeName requested, but does not exist" );
                }
+
                return new $className( $context, $title, $ids );
        }