Passed
Push — master ( 032538...489d5a )
by Vitaly
18:00 queued 08:02
created
src/Application.php 1 patch
Spacing   +7 added lines, -7 removed lines patch added patch discarded remove patch
@@ -107,7 +107,7 @@  discard block
 block discarded – undo
107 107
 
108 108
                     foreach (array_keys($scale->thumnails_sizes) as $folder) {
109 109
                         // Form image path for scale module
110
-                        $imageScalePath = $this->formImagePath($image->Path . $folder . '/', $image->Src);
110
+                        $imageScalePath = $this->formImagePath($image->Path.$folder.'/', $image->Src);
111 111
                         if ($this->imageExists($imageScalePath)) {
112 112
                             $this->fs->delete($imageScalePath);
113 113
                         }
@@ -236,7 +236,7 @@  discard block
 block discarded – undo
236 236
                 }
237 237
             }
238 238
         } else {
239
-            $errorText = "Файл ( " . urldecode($_SERVER['HTTP_X_FILE_NAME']) . " ) не является картинкой!";
239
+            $errorText = "Файл ( ".urldecode($_SERVER['HTTP_X_FILE_NAME'])." ) не является картинкой!";
240 240
             $result = array('status' => false, 'errorText' => $errorText);
241 241
         }
242 242
 
@@ -399,7 +399,7 @@  discard block
 block discarded – undo
399 399
                 }
400 400
 
401 401
                 // set image size string representation, if it is not 0
402
-                $size = ($image->size == 0) ? '' : $size . $this->humanFileSize($image->size);
402
+                $size = ($image->size == 0) ? '' : $size.$this->humanFileSize($image->size);
403 403
 
404 404
                 // Render gallery image tumb
405 405
                 $items_html .= $this->view('tumbs/item')
@@ -430,9 +430,9 @@  discard block
 block discarded – undo
430 430
     {
431 431
         /** @var string $sizeLetters Size shortcuts */
432 432
         $sizeLetters = 'BKBMBGBTBPB';
433
-        $factor = (int)(floor((strlen($bytes) - 1) / 3));
433
+        $factor = (int) (floor((strlen($bytes) - 1) / 3));
434 434
         $sizeLetter = ($factor <= 0) ? substr($sizeLetters, 0, 1) : substr($sizeLetters, $factor * 2 - 1, 2);
435
-        return sprintf("%.{$decimals}f", $bytes / pow(1024, $factor)) . $sizeLetter;
435
+        return sprintf("%.{$decimals}f", $bytes / pow(1024, $factor)).$sizeLetter;
436 436
     }
437 437
 
438 438
     /**
@@ -468,7 +468,7 @@  discard block
 block discarded – undo
468 468
         if (empty($imagePath)) {
469 469
             $path = $imageSrc;
470 470
         } else { // Use new CORRECT way
471
-            $path = $imagePath . $imageSrc;
471
+            $path = $imagePath.$imageSrc;
472 472
         }
473 473
 
474 474
         // form relative path to the image
@@ -478,7 +478,7 @@  discard block
 block discarded – undo
478 478
             if ($dir == '/') {
479 479
                 return substr($path, 1);
480 480
             } else {
481
-                return preg_replace('/' . addcslashes($dir, '/') . '/', '', $path);
481
+                return preg_replace('/'.addcslashes($dir, '/').'/', '', $path);
482 482
             }
483 483
         }
484 484
 
Please login to merge, or discard this patch.