.pipeline/config.yaml: rename dev stage to publish
[lhc/web/wiklou.git] / maintenance / storage / fixT22757.php
index 6bc2f98..61f1177 100644 (file)
@@ -255,11 +255,7 @@ class FixT22757 extends Maintenance {
 
        function findTextIdInPage( $pageId, $textId ) {
                $ids = $this->getRevTextMap( $pageId );
-               if ( !isset( $ids[$textId] ) ) {
-                       return null;
-               } else {
-                       return $ids[$textId];
-               }
+               return $ids[$textId] ?? null;
        }
 
        function getRevTextMap( $pageId ) {