Test Failed
Push — master ( 36dba6...5ee5cd )
by Antonio Carlos
04:08
created
src/Checkers/MixManifest.php 2 patches
Indentation   +8 added lines, -8 removed lines patch added patch discarded remove patch
@@ -17,17 +17,17 @@
 block discarded – undo
17 17
      */
18 18
     public function check()
19 19
     {
20
-         $this->checkFilePresence($file =$this->getManifestFileName());
20
+            $this->checkFilePresence($file =$this->getManifestFileName());
21 21
 
22
-         $loaded = $this->loadJson($file);
22
+            $loaded = $this->loadJson($file);
23 23
 
24
-         foreach ($loaded as $item => $asset) {
25
-             if (!$this->ignored($item)) {
26
-                 $this->checkFilePresence(base_path($this->target->assetsRoot.$asset));
27
-             }
28
-         }
24
+            foreach ($loaded as $item => $asset) {
25
+                if (!$this->ignored($item)) {
26
+                    $this->checkFilePresence(base_path($this->target->assetsRoot.$asset));
27
+                }
28
+            }
29 29
 
30
-         return $this->makeHealthyResult();
30
+            return $this->makeHealthyResult();
31 31
     }
32 32
 
33 33
     /**
Please login to merge, or discard this patch.
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -17,7 +17,7 @@  discard block
 block discarded – undo
17 17
      */
18 18
     public function check()
19 19
     {
20
-         $this->checkFilePresence($file =$this->getManifestFileName());
20
+         $this->checkFilePresence($file = $this->getManifestFileName());
21 21
 
22 22
          $loaded = $this->loadJson($file);
23 23
 
@@ -54,7 +54,7 @@  discard block
 block discarded – undo
54 54
     public function checkFilePresence($fileName)
55 55
     {
56 56
         if (!file_exists($fileName)) {
57
-            throw new Exception("File doesn't exist: " . $fileName);
57
+            throw new Exception("File doesn't exist: ".$fileName);
58 58
         }
59 59
     }
60 60
 
@@ -68,13 +68,13 @@  discard block
 block discarded – undo
68 68
         $contents = file_get_contents($fileName);
69 69
 
70 70
         if (blank($fileName)) {
71
-            throw new Exception("Manifest is empty or permission to read the file was denied: " . $fileName);
71
+            throw new Exception("Manifest is empty or permission to read the file was denied: ".$fileName);
72 72
         }
73 73
 
74 74
         $contents = json_decode($contents, true);
75 75
 
76 76
         if (json_last_error() !== \JSON_ERROR_NONE) {
77
-            throw new Exception("Error parsing manifest: " . $fileName . ' - Error: '. $this->getJSONErrorMessage(json_last_error()));
77
+            throw new Exception("Error parsing manifest: ".$fileName.' - Error: '.$this->getJSONErrorMessage(json_last_error()));
78 78
         }
79 79
 
80 80
         return $contents;
Please login to merge, or discard this patch.