Passed
Push — master ( 997733...b3ae6e )
by Martin
30:11 queued 11:43
created
src/CommandRunner.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -37,7 +37,7 @@
 block discarded – undo
37 37
             }
38 38
         }
39 39
 
40
-        $process->run(function ($type, $line) {
40
+        $process->run(function($type, $line) {
41 41
             $this->output->write($line);
42 42
         });
43 43
 
Please login to merge, or discard this patch.
src/ProjectFilesystem.php 1 patch
Spacing   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -38,17 +38,17 @@  discard block
 block discarded – undo
38 38
 
39 39
     public function updateAllFilesOfType(string $type, callable $callback)
40 40
     {
41
-        $files = array_filter($this->filesystem->listContents('', true), function (array $file) use ($type) {
41
+        $files = array_filter($this->filesystem->listContents('', true), function(array $file) use ($type) {
42 42
             $query = 'vendor/';
43
-            if (strpos($file['path'], $query) === 0) {
43
+            if (strpos($file[ 'path' ], $query) === 0) {
44 44
                 return false;
45 45
             }
46 46
 
47
-            if (!isset($file['extension'])) {
47
+            if (!isset($file[ 'extension' ])) {
48 48
                 return false;
49 49
             }
50 50
 
51
-            if ($file['extension'] !== $type) {
51
+            if ($file[ 'extension' ] !== $type) {
52 52
                 return false;
53 53
             }
54 54
 
@@ -56,11 +56,11 @@  discard block
 block discarded – undo
56 56
         });
57 57
 
58 58
         foreach ($files as $file) {
59
-            $contents = $this->filesystem->read($file['path']);
59
+            $contents = $this->filesystem->read($file[ 'path' ]);
60 60
 
61 61
             $contents = $callback($contents);
62 62
 
63
-            $this->filesystem->put($file['path'], $contents);
63
+            $this->filesystem->put($file[ 'path' ], $contents);
64 64
         }
65 65
     }
66 66
 }
Please login to merge, or discard this patch.
src/Tasks/CodeCleanup.php 1 patch
Spacing   +8 added lines, -8 removed lines patch added patch discarded remove patch
@@ -20,7 +20,7 @@  discard block
 block discarded – undo
20 20
         $filesystem = new ProjectFilesystem(getcwd() . '/' . $name);
21 21
 
22 22
         $output->writeln('<info>Update file: app/User.php</info>');
23
-        $filesystem->updateFile('app/User.php', function (string $content) {
23
+        $filesystem->updateFile('app/User.php', function(string $content) {
24 24
             $uses = <<<STRING
25 25
 use Illuminate\\\\Auth\\\\Authenticatable;
26 26
 use Illuminate\\\\Auth\\\\MustVerifyEmail;
@@ -71,7 +71,7 @@  discard block
 block discarded – undo
71 71
 STRING;
72 72
 
73 73
         $output->writeln('<info>Update file: app/Http/Controllers/Auth/ConfirmPasswordController.php</info>');
74
-        $filesystem->updateFile('app/Http/Controllers/Auth/ConfirmPasswordController.php', function (string $content) use ($redirectFunc) {
74
+        $filesystem->updateFile('app/Http/Controllers/Auth/ConfirmPasswordController.php', function(string $content) use ($redirectFunc) {
75 75
             $patterns = [
76 76
                 '/(@var)( string\s*\*\/\s*)(protected \$redirectTo = RouteServiceProvider::HOME;)/',
77 77
             ];
@@ -83,7 +83,7 @@  discard block
 block discarded – undo
83 83
         });
84 84
 
85 85
         $output->writeln('<info>Update file: app/Http/Controllers/Auth/LoginController.php</info>');
86
-        $filesystem->updateFile('app/Http/Controllers/Auth/LoginController.php', function (string $content) use ($redirectFunc) {
86
+        $filesystem->updateFile('app/Http/Controllers/Auth/LoginController.php', function(string $content) use ($redirectFunc) {
87 87
             $patterns = [
88 88
                 '/(@var)( string\s*\*\/\s*)(protected \$redirectTo = RouteServiceProvider::HOME;)/',
89 89
             ];
@@ -95,7 +95,7 @@  discard block
 block discarded – undo
95 95
         });
96 96
 
97 97
         $output->writeln('<info>Update file: app/Http/Controllers/Auth/RegisterController.php</info>');
98
-        $filesystem->updateFile('app/Http/Controllers/Auth/RegisterController.php', function (string $content) use ($redirectFunc) {
98
+        $filesystem->updateFile('app/Http/Controllers/Auth/RegisterController.php', function(string $content) use ($redirectFunc) {
99 99
             $patterns = [
100 100
                 '/(@var)( string\s*\*\/\s*)(protected \$redirectTo = RouteServiceProvider::HOME;)/',
101 101
             ];
@@ -107,7 +107,7 @@  discard block
 block discarded – undo
107 107
         });
108 108
 
109 109
         $output->writeln('<info>Update file: app/Http/Controllers/Auth/ResetPasswordController.php</info>');
110
-        $filesystem->updateFile('app/Http/Controllers/Auth/ResetPasswordController.php', function (string $content) use ($redirectFunc) {
110
+        $filesystem->updateFile('app/Http/Controllers/Auth/ResetPasswordController.php', function(string $content) use ($redirectFunc) {
111 111
             $patterns = [
112 112
                 '/(@var)( string\s*\*\/\s*)(protected \$redirectTo = RouteServiceProvider::HOME;)/',
113 113
             ];
@@ -119,7 +119,7 @@  discard block
 block discarded – undo
119 119
         });
120 120
 
121 121
         $output->writeln('<info>Update file: app/Http/Controllers/Auth/VerificationController.php</info>');
122
-        $filesystem->updateFile('app/Http/Controllers/Auth/VerificationController.php', function (string $content) use ($redirectFunc) {
122
+        $filesystem->updateFile('app/Http/Controllers/Auth/VerificationController.php', function(string $content) use ($redirectFunc) {
123 123
             $patterns = [
124 124
                 '/(@var)( string\s*\*\/\s*)(protected \$redirectTo = RouteServiceProvider::HOME;)/',
125 125
             ];
@@ -131,7 +131,7 @@  discard block
 block discarded – undo
131 131
         });
132 132
 
133 133
         $output->writeln('<info>Update all *.php files</info>');
134
-        $filesystem->updateAllFilesOfType('php', function (string $content) {
134
+        $filesystem->updateAllFilesOfType('php', function(string $content) {
135 135
             $patterns = [
136 136
                 '/\<\?php/',
137 137
             ];
@@ -143,7 +143,7 @@  discard block
 block discarded – undo
143 143
         });
144 144
 
145 145
         $output->writeln('<info>Update all *.stub files</info>');
146
-        $filesystem->updateAllFilesOfType('stub', function (string $content) {
146
+        $filesystem->updateAllFilesOfType('stub', function(string $content) {
147 147
             $patterns = [
148 148
                 '/\<\?php/',
149 149
             ];
Please login to merge, or discard this patch.
src/Tasks/InstallTailwindFrontendPreset.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -37,7 +37,7 @@  discard block
 block discarded – undo
37 37
         $filesystem = new ProjectFilesystem(getcwd() . '/' . $name);
38 38
 
39 39
         $output->writeln('<info>Update file: resources/lang/en/pagination.php</info>');
40
-        $filesystem->updateFile('resources/lang/en/pagination.php', function (string $content) {
40
+        $filesystem->updateFile('resources/lang/en/pagination.php', function(string $content) {
41 41
             $patterns = [
42 42
                 '/(\'next\' => \'Next &raquo;\',\n)/',
43 43
             ];
@@ -49,7 +49,7 @@  discard block
 block discarded – undo
49 49
         });
50 50
 
51 51
         $output->writeln('<info>Update file: .gitignore</info>');
52
-        $filesystem->updateFile('.gitignore', function (string $content) {
52
+        $filesystem->updateFile('.gitignore', function(string $content) {
53 53
             $patterns = [
54 54
                 '/(\/public\/storage\n)/',
55 55
             ];
Please login to merge, or discard this patch.
src/Tasks/InstallTelescope.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -33,7 +33,7 @@
 block discarded – undo
33 33
         $filesystem = new ProjectFilesystem(getcwd() . '/' . $name);
34 34
 
35 35
         $output->writeln('<info>Update file: app/Console/Kernel.php</info>');
36
-        $filesystem->updateFile('app/Console/Kernel.php', function (string $content) {
36
+        $filesystem->updateFile('app/Console/Kernel.php', function(string $content) {
37 37
             $patterns = [
38 38
                 '/\/\/ \$schedule/',
39 39
                 '/inspire/',
Please login to merge, or discard this patch.
src/Tasks/InstallCodeSniffer.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -77,7 +77,7 @@
 block discarded – undo
77 77
         );
78 78
 
79 79
         $output->writeln('<info>Update file: composer.json</info>');
80
-        $filesystem->updateFile('composer.json', function (string $content) {
80
+        $filesystem->updateFile('composer.json', function(string $content) {
81 81
             $refreshScript = <<<STRING
82 82
         "test": "phpunit",
83 83
         "check-style": "phpcs",
Please login to merge, or discard this patch.
src/Tasks/InstallIdeHelper.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -33,7 +33,7 @@  discard block
 block discarded – undo
33 33
         $filesystem = new ProjectFilesystem(getcwd() . '/' . $name);
34 34
 
35 35
         $output->writeln('<info>Update file: composer.json</info>');
36
-        $filesystem->updateFile('composer.json', function (string $content) {
36
+        $filesystem->updateFile('composer.json', function(string $content) {
37 37
             $refreshScript = <<<STRING
38 38
         "refresh": [
39 39
             "@php artisan migrate:fresh --ansi",
@@ -58,7 +58,7 @@  discard block
 block discarded – undo
58 58
         });
59 59
 
60 60
         $output->writeln('<info>Update file: config/ide-helper.php</info>');
61
-        $filesystem->updateFile('config/ide-helper.php', function (string $content) {
61
+        $filesystem->updateFile('config/ide-helper.php', function(string $content) {
62 62
             $patterns = [
63 63
                 '/\'include_fluent\' => false,/',
64 64
                 '/\'include_factory_builders\' => false,/',
@@ -75,7 +75,7 @@  discard block
 block discarded – undo
75 75
             return preg_replace($patterns, $replace, $content);
76 76
         });
77 77
 
78
-        $isSuccessful = $runner->run([$composer . ' update']);
78
+        $isSuccessful = $runner->run([ $composer . ' update' ]);
79 79
 
80 80
         if ($isSuccessful) {
81 81
             $output->writeln('<comment>Ide Helper installed.</comment>');
Please login to merge, or discard this patch.
src/Tasks/NewLaravelApp.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -36,7 +36,7 @@  discard block
 block discarded – undo
36 36
         $filesystem = new ProjectFilesystem(getcwd() . '/' . $name);
37 37
 
38 38
         $output->writeln('<info>Update file: .gitignore</info>');
39
-        $filesystem->updateFile('.gitignore', function (string $content) {
39
+        $filesystem->updateFile('.gitignore', function(string $content) {
40 40
             $patterns = [
41 41
                 '/(\/node_modules)/',
42 42
             ];
@@ -48,7 +48,7 @@  discard block
 block discarded – undo
48 48
         });
49 49
 
50 50
         $output->writeln('<info>Update file: .env</info>');
51
-        $filesystem->updateFile('.env', function (string $content) use ($name) {
51
+        $filesystem->updateFile('.env', function(string $content) use ($name) {
52 52
             $patterns = [
53 53
                 '/APP_URL=http:\/\/localhost/',
54 54
                 '/DB_DATABASE=laravel/',
@@ -66,7 +66,7 @@  discard block
 block discarded – undo
66 66
         });
67 67
 
68 68
         $output->writeln('<info>Update file: .env.example</info>');
69
-        $filesystem->updateFile('.env.example', function (string $content) use ($name) {
69
+        $filesystem->updateFile('.env.example', function(string $content) use ($name) {
70 70
             $patterns = [
71 71
                 '/APP_URL=http:\/\/localhost/',
72 72
                 '/DB_DATABASE=laravel/',
Please login to merge, or discard this patch.
src/Console/LaravelCommand.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -47,7 +47,7 @@
 block discarded – undo
47 47
 
48 48
         $directory = getcwd();
49 49
 
50
-        if (! $input->getOption('force')) {
50
+        if (!$input->getOption('force')) {
51 51
             $this->verifyApplicationDoesntExist($directory);
52 52
         }
53 53
 
Please login to merge, or discard this patch.