Passed
Pull Request — master (#1)
by Artem
01:48
created
src/ImageOptimizer.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -44,7 +44,7 @@  discard block
 block discarded – undo
44 44
 
45 45
         $absolutePath = $this->appPath . $path;
46 46
 
47
-        if (! $this->fileExists($absolutePath)) {
47
+        if (!$this->fileExists($absolutePath)) {
48 48
             throw new ImageNotFoundException($absolutePath);
49 49
         }
50 50
 
@@ -58,7 +58,7 @@  discard block
 block discarded – undo
58 58
             'resized_webp_url' => $this->resizedFolder . $resizedUrl . '.webp',
59 59
         ]);
60 60
 
61
-        if (! $this->fileExists($resizedFile)) {
61
+        if (!$this->fileExists($resizedFile)) {
62 62
             $this->ensureDirectoryExists($resizedFile);
63 63
             $this->driver->process($absolutePath, $width, $height, $resizedFile);
64 64
         }
@@ -74,8 +74,8 @@  discard block
 block discarded – undo
74 74
     {
75 75
         $directory = dirname($path);
76 76
 
77
-        if (! $this->fileExists($directory)) {
78
-            if (! $this->mkdir($directory)) {
77
+        if (!$this->fileExists($directory)) {
78
+            if (!$this->mkdir($directory)) {
79 79
                 throw new DirectoryNotFoundException();
80 80
             }
81 81
         }
Please login to merge, or discard this patch.
src/ImageOptimized.php 1 patch
Indentation   +16 added lines, -16 removed lines patch added patch discarded remove patch
@@ -6,25 +6,25 @@
 block discarded – undo
6 6
 
7 7
 class ImageOptimized
8 8
 {
9
-	/**
10
-	 * @var string $originalUrl
11
-	 */
12
-	public $originalUrl;
9
+    /**
10
+     * @var string $originalUrl
11
+     */
12
+    public $originalUrl;
13 13
 
14
-	/**
15
-	 * @var string $originalUrl
16
-	 */
14
+    /**
15
+     * @var string $originalUrl
16
+     */
17 17
     public $resizedUrl;
18 18
 
19
-	/**
20
-	 * @var string $originalUrl
21
-	 */
19
+    /**
20
+     * @var string $originalUrl
21
+     */
22 22
     public $resizedWebpUrl;
23 23
 
24
-	public function __construct(array $data)
25
-	{
26
-		$this->originalUrl = $data['original_url'] ?? null;
27
-		$this->resizedUrl = $data['resized_url'] ?? null;
28
-		$this->resizedWebpUrl = $data['resized_webp_url'] ?? null;
29
-	}
24
+    public function __construct(array $data)
25
+    {
26
+        $this->originalUrl = $data['original_url'] ?? null;
27
+        $this->resizedUrl = $data['resized_url'] ?? null;
28
+        $this->resizedWebpUrl = $data['resized_webp_url'] ?? null;
29
+    }
30 30
 }
Please login to merge, or discard this patch.