Merge "Convert Special:DeletedContributions to use OOUI."
[lhc/web/wiklou.git] / includes / api / ApiQueryMyStashedFiles.php
index e609e2d..0c70a8a 100644 (file)
@@ -42,7 +42,6 @@ class ApiQueryMyStashedFiles extends ApiQueryBase {
                // Note: If user is logged in but cannot upload, they can still see
                // the list of stashed uploads...but it will probably be empty.
 
-               $db = $this->getDB();
                $params = $this->extractRequestParams();
 
                $this->addTables( 'uploadstash' );
@@ -93,10 +92,10 @@ class ApiQueryMyStashedFiles extends ApiQueryBase {
                        ];
 
                        if ( isset( $prop['size'] ) ) {
-                               $item['size'] = (int) $row->us_size;
-                               $item['width'] = (int) $row->us_image_width;
-                               $item['height'] = (int) $row->us_image_height;
-                               $item['bits'] = (int) $row->us_image_bits;
+                               $item['size'] = (int)$row->us_size;
+                               $item['width'] = (int)$row->us_image_width;
+                               $item['height'] = (int)$row->us_image_height;
+                               $item['bits'] = (int)$row->us_image_bits;
                        }
 
                        if ( isset( $prop['type'] ) ) {