Test Failed
Push — master ( 5763a0...a9a734 )
by Daniel
03:44 queued 12s
created
src/Commands/Traits/CopiesSkeleton.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -97,7 +97,7 @@  discard block
 block discarded – undo
97 97
         foreach (File::allFiles($packagePath, true) as $filePath) {
98 98
             $filePath = realpath($filePath);
99 99
 
100
-            if (! Str::endsWith($filePath, '.tpl')) {
100
+            if (!Str::endsWith($filePath, '.tpl')) {
101 101
                 continue;
102 102
             }
103 103
 
@@ -128,11 +128,11 @@  discard block
 block discarded – undo
128 128
     {
129 129
         $dirPathOfDestFile = dirname($dest);
130 130
 
131
-        if (! File::exists($dirPathOfDestFile)) {
131
+        if (!File::exists($dirPathOfDestFile)) {
132 132
             File::makeDirectory($dirPathOfDestFile, 0755, true);
133 133
         }
134 134
 
135
-        if (! File::exists($dest)) {
135
+        if (!File::exists($dest)) {
136 136
             File::copy($src, $dest);
137 137
         }
138 138
     }
@@ -230,7 +230,7 @@  discard block
 block discarded – undo
230 230
             'The composer keywords? (comma delimited)', str_replace(' ', ',', $packageWords)
231 231
         );
232 232
         $keywords = explode(',', $keywords);
233
-        $keywords = array_map(function ($keyword) {
233
+        $keywords = array_map(function($keyword) {
234 234
             return "\"$keyword\"";
235 235
         }, $keywords);
236 236
 
Please login to merge, or discard this patch.
src/Commands/Traits/ManipulatesPackageFolder.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -24,7 +24,7 @@  discard block
 block discarded – undo
24 24
             return;
25 25
         }
26 26
 
27
-        if (! File::makeDirectory($packagePath, 0755, true)) {
27
+        if (!File::makeDirectory($packagePath, 0755, true)) {
28 28
             throw new RuntimeException('Cannot create package folder');
29 29
         }
30 30
 
@@ -43,7 +43,7 @@  discard block
 block discarded – undo
43 43
         $this->info('Remove package folder.');
44 44
 
45 45
         if (File::exists($packagePath)) {
46
-            if (! File::deleteDirectory($packagePath)) {
46
+            if (!File::deleteDirectory($packagePath)) {
47 47
                 throw new RuntimeException('Cannot remove package folder');
48 48
             }
49 49
 
Please login to merge, or discard this patch.
src/Commands/Traits/ChangesComposerJson.php 1 patch
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -24,11 +24,11 @@  discard block
 block discarded – undo
24 24
 
25 25
         $composerJson = $this->loadComposerJson();
26 26
 
27
-        if (! isset($composerJson['repositories'])) {
27
+        if (!isset($composerJson['repositories'])) {
28 28
             Arr::set($composerJson, 'repositories', []);
29 29
         }
30 30
 
31
-        $filtered = array_filter($composerJson['repositories'], function ($repository) use ($relPackagePath) {
31
+        $filtered = array_filter($composerJson['repositories'], function($repository) use ($relPackagePath) {
32 32
             return $repository['type'] === 'path'
33 33
                 && $repository['url'] === $relPackagePath;
34 34
         });
@@ -68,7 +68,7 @@  discard block
 block discarded – undo
68 68
 
69 69
         unset($composerJson['require']["$vendor\\$package\\"]);
70 70
 
71
-        $repositories = array_filter($composerJson['repositories'], function ($repository) use ($relPackagePath) {
71
+        $repositories = array_filter($composerJson['repositories'], function($repository) use ($relPackagePath) {
72 72
             return $repository['type'] !== 'path'
73 73
                 || $repository['url'] !== $relPackagePath;
74 74
         });
@@ -96,14 +96,14 @@  discard block
 block discarded – undo
96 96
     {
97 97
         $composerJsonPath = $this->getComposerJsonPath();
98 98
 
99
-        if (! File::exists($composerJsonPath)) {
99
+        if (!File::exists($composerJsonPath)) {
100 100
             throw new FileNotFoundException('composer.json does not exist');
101 101
         }
102 102
 
103 103
         $composerJsonContent = File::get($composerJsonPath);
104 104
         $composerJson = json_decode($composerJsonContent, true);
105 105
 
106
-        if (! is_array($composerJson)) {
106
+        if (!is_array($composerJson)) {
107 107
             throw new RuntimeException("Invalid composer.json file [$composerJsonPath]");
108 108
         }
109 109
 
Please login to merge, or discard this patch.