Passed
Push — master ( 5b2130...7d5600 )
by Rob
01:22
created
src/Filter/ImageResizer.php 1 patch
Indentation   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -37,7 +37,7 @@
 block discarded – undo
37 37
     public function __construct(ImageResizerService $imageResizerService, array $options = [])
38 38
     {
39 39
         $this->setOptions(array_merge($this->options, $options))
40
-             ->setImageResizerService($imageResizerService);
40
+                ->setImageResizerService($imageResizerService);
41 41
     }
42 42
 
43 43
     /**
Please login to merge, or discard this patch.
src/Model/Image.php 2 patches
Indentation   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -121,12 +121,12 @@
 block discarded – undo
121 121
 
122 122
         // Prep this model
123 123
         $this->setPath($path)
124
-             ->setSplFileInfo(new SplFileInfo($path))
125
-             ->setOriginalWidth($width)
126
-             ->setOriginalHeight($height)
127
-             ->setTargetWidth($targetWidth)
128
-             ->setTargetHeight($targetHeight)
129
-             ->calculateCropPositions($cropMode, $x, $y);
124
+                ->setSplFileInfo(new SplFileInfo($path))
125
+                ->setOriginalWidth($width)
126
+                ->setOriginalHeight($height)
127
+                ->setTargetWidth($targetWidth)
128
+                ->setTargetHeight($targetHeight)
129
+                ->calculateCropPositions($cropMode, $x, $y);
130 130
 
131 131
         // Create a new unique name based on the image vectors
132 132
         $targetPath = str_replace(
Please login to merge, or discard this patch.
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -98,7 +98,7 @@  discard block
 block discarded – undo
98 98
     public function __construct(string $path, int $targetWidth, int $targetHeight, string $cropMode = self::CENTERED_CROP, int $x = 0, int $y = 0)
99 99
     {
100 100
         // Check if given path exists
101
-        if (!file_exists($path)) {
101
+        if ( ! file_exists($path)) {
102 102
             throw new InvalidArgumentException(sprintf('The provided file(%s) does not exist.', $path));
103 103
         }
104 104
 
@@ -167,7 +167,7 @@  discard block
 block discarded – undo
167 167
     ) : Image
168 168
     {
169 169
         // Check if we've recieved a valid crop modus
170
-        if (!in_array($cropMode, self::CROP_MODUS)) {
170
+        if ( ! in_array($cropMode, self::CROP_MODUS)) {
171 171
             throw new InvalidArgumentException(
172 172
                 sprintf(
173 173
                     'Crop mode \'%s\' is not a valid mode. Choose one of the following %s',
Please login to merge, or discard this patch.
src/Service/ImageResizerService.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -30,7 +30,7 @@
 block discarded – undo
30 30
         $this->setLogger($logger);
31 31
         $this->getLogger()->info('Constucting ImageResizerService');
32 32
 
33
-        if (!$adapter instanceof ImageResizerInterface) {
33
+        if ( ! $adapter instanceof ImageResizerInterface) {
34 34
             throw new InvalidArgumentException(
35 35
                 sprintf('Adapter configured does not have the %s interface.', ImageResizerInterface::class)
36 36
             );
Please login to merge, or discard this patch.