Test Failed
Push — master ( dfbb6d...5d1429 )
by Alexey
04:49
created
system/Inji/Tools.php 1 patch
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -148,9 +148,9 @@  discard block
 block discarded – undo
148 148
             $new_width = $max_width;
149 149
             $new_height = $max_height;
150 150
 //Находим начальные координаты (центрируем новое изображение)
151
-            $imgX = (int)(($ow / 2) - ($img_width / 2));
151
+            $imgX = (int) (($ow / 2) - ($img_width / 2));
152 152
             if ($pos == 'center') {
153
-                $imgY = (int)(($oh / 2) - ($img_height / 2));
153
+                $imgY = (int) (($oh / 2) - ($img_height / 2));
154 154
             } else {
155 155
                 $imgY = 0;
156 156
             }
@@ -292,9 +292,9 @@  discard block
 block discarded – undo
292 292
      * @return string
293 293
      */
294 294
     public static function toRusDate($date) {
295
-        $yy = (int)substr($date, 0, 4);
296
-        $mm = (int)substr($date, 5, 2);
297
-        $dd = (int)substr($date, 8, 2);
295
+        $yy = (int) substr($date, 0, 4);
296
+        $mm = (int) substr($date, 5, 2);
297
+        $dd = (int) substr($date, 8, 2);
298 298
 
299 299
         $hours = substr($date, 11, 5);
300 300
 
Please login to merge, or discard this patch.