shell: Run firejail inside limit.sh, make NO_EXECVE work
[lhc/web/wiklou.git] / includes / gallery / PackedImageGallery.php
index bb55c89..2e4836a 100644 (file)
@@ -21,8 +21,8 @@
  */
 
 class PackedImageGallery extends TraditionalImageGallery {
-       function __construct( $mode = 'traditional' ) {
-               parent::__construct( $mode );
+       function __construct( $mode = 'traditional', IContextSource $context = null ) {
+               parent::__construct( $mode, $context );
                // Does not support per row option.
                $this->mPerRow = 0;
        }
@@ -60,10 +60,10 @@ class PackedImageGallery extends TraditionalImageGallery {
                }
 
                // self::SCALE_FACTOR so the js has some room to manipulate sizes.
-               return array(
+               return [
                        'width' => $width * self::SCALE_FACTOR,
                        'height' => $this->mHeights * self::SCALE_FACTOR,
-               );
+               ];
        }
 
        protected function getThumbDivWidth( $thumbWidth ) {
@@ -76,7 +76,7 @@ class PackedImageGallery extends TraditionalImageGallery {
        }
 
        /**
-        * @param MediaTransformOutput|bool $thumb the thumbnail, or false if no
+        * @param MediaTransformOutput|bool $thumb The thumbnail, or false if no
         *   thumb (which can happen)
         * @return float
         */
@@ -95,14 +95,16 @@ class PackedImageGallery extends TraditionalImageGallery {
        /**
         * Add javascript which auto-justifies the rows by manipulating the image sizes.
         * Also ensures that the hover version of this degrades gracefully.
+        * @return array
         */
        protected function getModules() {
-               return array( 'mediawiki.page.gallery' );
+               return [ 'mediawiki.page.gallery' ];
        }
 
        /**
         * Do not support per-row on packed. It really doesn't work
         * since the images have varying widths.
+        * @param int $num
         */
        public function setPerRow( $num ) {
                return;