Passed
Push — master ( d235db...d29806 )
by samayo
02:10 queued 52s
created
src/bulletproof.php 1 patch
Spacing   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -178,7 +178,7 @@  discard block
 block discarded – undo
178 178
      */
179 179
     public function getPath()
180 180
     {
181
-      return $this->path = $this->getStorage() . '/' . $this->getName() . '.' . $this->getMime();
181
+      return $this->path = $this->getStorage().'/'.$this->getName().'.'.$this->getMime();
182 182
     }
183 183
 
184 184
     /**
@@ -300,8 +300,8 @@  discard block
 block discarded – undo
300 300
     {
301 301
       if ($isNameProvided) {
302 302
         $this->name = $isNameProvided;
303
-      }else{
304
-        $this->name = uniqid('', true) . '_' . str_shuffle(implode(range('e', 'q')));
303
+      } else {
304
+        $this->name = uniqid('', true).'_'.str_shuffle(implode(range('e', 'q')));
305 305
       }
306 306
 
307 307
       return $this;
@@ -382,10 +382,10 @@  discard block
 block discarded – undo
382 382
         return false;
383 383
       }
384 384
 
385
-      $create = !is_dir($dir) ? @mkdir('' . $dir, (int) $permission, true) : true;
385
+      $create = !is_dir($dir) ? @mkdir(''.$dir, (int) $permission, true) : true;
386 386
 
387 387
       if (!$create) {
388
-        $this->error = 'Error! directory \'' . $dir . '\' could not be created';
388
+        $this->error = 'Error! directory \''.$dir.'\' could not be created';
389 389
         return false;
390 390
       }
391 391
 
@@ -429,7 +429,7 @@  discard block
 block discarded – undo
429 429
       $this->height = $this->getHeight();
430 430
 
431 431
       if ($this->height > $maxHeight || $this->width > $maxWidth) {
432
-        $this->error = 'Image should be smaller than ' . $maxHeight . 'px in height, and smaller than ' . $maxWidth . 'px in width';
432
+        $this->error = 'Image should be smaller than '.$maxHeight.'px in height, and smaller than '.$maxWidth.'px in width';
433 433
         return false;
434 434
       }
435 435
 
Please login to merge, or discard this patch.