Test Failed
Push — master ( d0fa8a...b17d3c )
by Sergi Tur
07:31
created
src/Traits/LaravelConfigFile.php 3 patches
Doc Comments   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -115,10 +115,10 @@
 block discarded – undo
115 115
     /**
116 116
      * Insert file into file using mountpoint.
117 117
      *
118
-     * @param $mountpoint
118
+     * @param string $mountpoint
119 119
      * @param $fileToInsert
120 120
      *
121
-     * @return mixed
121
+     * @return integer|null
122 122
      */
123 123
     private function addFileIntoMountPoint($mountpoint, $fileToInsert, $outputFile = null)
124 124
     {
Please login to merge, or discard this patch.
Braces   +3 added lines, -1 removed lines patch added patch discarded remove patch
@@ -169,7 +169,9 @@
 block discarded – undo
169 169
      */
170 170
     protected function service($file, $outputFile = null)
171 171
     {
172
-        if (!file_exists($file)) throw new FileNotFoundException($file);
172
+        if (!file_exists($file)) {
173
+         throw new FileNotFoundException($file);
174
+        }
173 175
         if ($this->installConfigFile() == -1) {
174 176
             return;
175 177
         }
Please login to merge, or discard this patch.
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -214,7 +214,7 @@
 block discarded – undo
214 214
      */
215 215
     protected function installConfigFileWithBash()
216 216
     {
217
-        passthru(str_replace(" ", "\ ", __DIR__).'/../bash_scripts/iluminar.sh '. str_replace(" ", "\ ", $this->laravel_config_file) .' '
217
+        passthru(str_replace(" ", "\ ", __DIR__).'/../bash_scripts/iluminar.sh '.str_replace(" ", "\ ", $this->laravel_config_file).' '
218 218
             . str_replace(" ", "\ ", $this->laravel_services_file));
219 219
     }
220 220
 
Please login to merge, or discard this patch.
src/Console/GithubInitCommand.php 1 patch
Spacing   +17 added lines, -17 removed lines patch added patch discarded remove patch
@@ -76,7 +76,7 @@  discard block
 block discarded – undo
76 76
         $this->runGitAdd();
77 77
         $this->runGitCommit();
78 78
         $this->runGitCreateRepo();
79
-        $this->runGitRemoteAddOrigin($this->getRepoURL($input,$output));
79
+        $this->runGitRemoteAddOrigin($this->getRepoURL($input, $output));
80 80
         $this->runGitPull();
81 81
         $this->runGitPush();
82 82
     }
@@ -91,7 +91,7 @@  discard block
 block discarded – undo
91 91
      */
92 92
     public function getRepoURL(InputInterface $input, OutputInterface $output)
93 93
     {
94
-        return '[email protected]:' . $this->gitHubUsername($input,$output) . '/' . $this->repoName($input) . '.git';
94
+        return '[email protected]:'.$this->gitHubUsername($input, $output).'/'.$this->repoName($input).'.git';
95 95
     }
96 96
 
97 97
     /**
@@ -129,7 +129,7 @@  discard block
 block discarded – undo
129 129
     {
130 130
         $username = $this->parser->getGitHubUsername();
131 131
         if (is_null($username)) {
132
-            $this->showErrorRunLlumInitFirst($output,'username');
132
+            $this->showErrorRunLlumInitFirst($output, 'username');
133 133
         }
134 134
         return $username;
135 135
     }
@@ -137,24 +137,24 @@  discard block
 block discarded – undo
137 137
     /**
138 138
      * Run git init command.
139 139
      */
140
-    protected function runGitInit(){
141
-        $this->showMessageRunningCommand($this->output,'git init');
140
+    protected function runGitInit() {
141
+        $this->showMessageRunningCommand($this->output, 'git init');
142 142
         passthru('git init');
143 143
     }
144 144
 
145 145
     /**
146 146
      * Run git add command.
147 147
      */
148
-    protected function runGitAdd(){
149
-        $this->showMessageRunningCommand($this->output,'git add .');
148
+    protected function runGitAdd() {
149
+        $this->showMessageRunningCommand($this->output, 'git add .');
150 150
         passthru('git add .');
151 151
     }
152 152
 
153 153
     /**
154 154
      * Run git commit command.
155 155
      */
156
-    protected function runGitCommit(){
157
-        $this->showMessageRunningCommand($this->output,'git commit -a -m "Initial version"');
156
+    protected function runGitCommit() {
157
+        $this->showMessageRunningCommand($this->output, 'git commit -a -m "Initial version"');
158 158
         passthru('git commit -a -m "Initial version"');
159 159
     }
160 160
 
@@ -163,7 +163,7 @@  discard block
 block discarded – undo
163 163
      */
164 164
     protected function runGitCreateRepo()
165 165
     {
166
-        $this->showMessageRunningCommand($this->output,'llum github:repo');
166
+        $this->showMessageRunningCommand($this->output, 'llum github:repo');
167 167
         passthru('llum github:repo');
168 168
     }
169 169
 
@@ -172,24 +172,24 @@  discard block
 block discarded – undo
172 172
      *
173 173
      * @param $url
174 174
      */
175
-    protected function runGitRemoteAddOrigin($url){
176
-        $this->showMessageRunningCommand($this->output,'git remote add origin ' . $url);
177
-        passthru('git remote add origin ' . $url);
175
+    protected function runGitRemoteAddOrigin($url) {
176
+        $this->showMessageRunningCommand($this->output, 'git remote add origin '.$url);
177
+        passthru('git remote add origin '.$url);
178 178
     }
179 179
 
180 180
     /**
181 181
      * Run git pull.
182 182
      */
183
-    protected function runGitPull(){
184
-        $this->showMessageRunningCommand($this->output,'git pull origin master');
183
+    protected function runGitPull() {
184
+        $this->showMessageRunningCommand($this->output, 'git pull origin master');
185 185
         passthru('git pull origin master');
186 186
     }
187 187
 
188 188
     /**
189 189
      * Run git push.
190 190
      */
191
-    protected function runGitPush(){
192
-        $this->showMessageRunningCommand($this->output,'git push origin master');
191
+    protected function runGitPush() {
192
+        $this->showMessageRunningCommand($this->output, 'git push origin master');
193 193
         passthru('git push origin master');
194 194
     }
195 195
 
Please login to merge, or discard this patch.
src/Console/InitCommand.php 1 patch
Spacing   +8 added lines, -8 removed lines patch added patch discarded remove patch
@@ -80,7 +80,7 @@  discard block
 block discarded – undo
80 80
      * @return string
81 81
      */
82 82
     protected function getStubPath() {
83
-        return __DIR__ . '/stubs/llumrc.stub';
83
+        return __DIR__.'/stubs/llumrc.stub';
84 84
     }
85 85
 
86 86
 
@@ -105,7 +105,7 @@  discard block
 block discarded – undo
105 105
     public function init(InputInterface $input, OutputInterface $output)
106 106
     {
107 107
         try {
108
-            $this->executeWizard($input,$output);
108
+            $this->executeWizard($input, $output);
109 109
             $this->filesystem->overwrite(
110 110
                 (new LlumRCFile())->path(),
111 111
                 $this->compiler->compile(
@@ -122,10 +122,10 @@  discard block
 block discarded – undo
122 122
      * @param InputInterface $input
123 123
      * @param OutputInterface $output
124 124
      */
125
-    protected function executeWizard(InputInterface $input, OutputInterface $output){
125
+    protected function executeWizard(InputInterface $input, OutputInterface $output) {
126 126
 
127
-        $this->askGithubUsername($input,$output);
128
-        $this->askGithubToken($input,$output);
127
+        $this->askGithubUsername($input, $output);
128
+        $this->askGithubToken($input, $output);
129 129
 
130 130
         $this->data = [
131 131
             "GITHUB_USERNAME" => $this->github_username,
@@ -141,7 +141,7 @@  discard block
 block discarded – undo
141 141
     public function askGithubUsername(InputInterface $input, OutputInterface $output)
142 142
     {
143 143
         $defaultusername = $this->defaultUsername();
144
-        $question = new Question('<info>Please enter your github username (' . $defaultusername . ') ? </info>', $defaultusername);
144
+        $question = new Question('<info>Please enter your github username ('.$defaultusername.') ? </info>', $defaultusername);
145 145
         $this->github_username = $this->getHelper('question')->ask($input, $output, $question);
146 146
     }
147 147
 
@@ -161,9 +161,9 @@  discard block
 block discarded – undo
161 161
     {
162 162
         $question = new ConfirmationQuestion('<info>Do you want to use our assistant to obtain token via Github API (Y/n)? </info>', true);
163 163
         if ($this->getHelper('question')->ask($input, $output, $question)) {
164
-            $this->github_token =$this->api->getPersonalToken(
164
+            $this->github_token = $this->api->getPersonalToken(
165 165
                 $this->github_username,
166
-                $this->askGithubPassword($input,$output));
166
+                $this->askGithubPassword($input, $output));
167 167
         }
168 168
     }
169 169
 
Please login to merge, or discard this patch.
src/config/packages.php 1 patch
Spacing   +22 added lines, -22 removed lines patch added patch discarded remove patch
@@ -13,68 +13,68 @@  discard block
 block discarded – undo
13 13
 
14 14
     'AdminLTE' => [
15 15
         'name'      => 'acacha/admin-lte-template-laravel',
16
-        'providers' => ['Acacha\AdminLTETemplateLaravel\Providers\AdminLTETemplateServiceProvider::class'],
17
-        'aliases'   => ['AdminLTE' => 'Acacha\AdminLTETemplateLaravel\Facades\AdminLTE::class'],
16
+        'providers' => [ 'Acacha\AdminLTETemplateLaravel\Providers\AdminLTETemplateServiceProvider::class' ],
17
+        'aliases'   => [ 'AdminLTE' => 'Acacha\AdminLTETemplateLaravel\Facades\AdminLTE::class' ],
18 18
         'after'     => 'php artisan adminlte-laravel:publish --force',
19 19
     ],
20 20
 
21 21
     'AdminLTEDontForce' => [
22 22
         'name'      => 'acacha/admin-lte-template-laravel',
23
-        'providers' => ['Acacha\AdminLTETemplateLaravel\Providers\AdminLTETemplateServiceProvider::class'],
24
-        'aliases'   => ['AdminLTE' => 'Acacha\AdminLTETemplateLaravel\Facades\AdminLTE::class'],
23
+        'providers' => [ 'Acacha\AdminLTETemplateLaravel\Providers\AdminLTETemplateServiceProvider::class' ],
24
+        'aliases'   => [ 'AdminLTE' => 'Acacha\AdminLTETemplateLaravel\Facades\AdminLTE::class' ],
25 25
         'after'     => 'php artisan adminlte-laravel:publish',
26
-        'aliases'   => ['AdminLTE' => 'Acacha\AdminLTETemplateLaravel\Facades\AdminLTE::class'],
26
+        'aliases'   => [ 'AdminLTE' => 'Acacha\AdminLTETemplateLaravel\Facades\AdminLTE::class' ],
27 27
         'after'     => 'php artisan adminlte-laravel:publish',
28 28
     ],
29 29
 
30 30
     'AdminLTEVendorPublish' => [
31 31
         'name'      => 'acacha/admin-lte-template-laravel',
32
-        'providers' => ['Acacha\AdminLTETemplateLaravel\Providers\AdminLTETemplateServiceProvider::class'],
33
-        'aliases'   => ['AdminLTE' => 'Acacha\AdminLTETemplateLaravel\Facades\AdminLTE::class'],
32
+        'providers' => [ 'Acacha\AdminLTETemplateLaravel\Providers\AdminLTETemplateServiceProvider::class' ],
33
+        'aliases'   => [ 'AdminLTE' => 'Acacha\AdminLTETemplateLaravel\Facades\AdminLTE::class' ],
34 34
         'after'     => 'php artisan vendor:publish --tag=adminlte --force',
35 35
     ],
36 36
 
37 37
     'AdminLTEVendorPublishDontForce' => [
38 38
         'name'      => 'acacha/admin-lte-template-laravel',
39
-        'providers' => ['Acacha\AdminLTETemplateLaravel\Providers\AdminLTETemplateServiceProvider::class'],
40
-        'aliases'   => ['AdminLTE' => 'Acacha\AdminLTETemplateLaravel\Facades\AdminLTE::class'],
39
+        'providers' => [ 'Acacha\AdminLTETemplateLaravel\Providers\AdminLTETemplateServiceProvider::class' ],
40
+        'aliases'   => [ 'AdminLTE' => 'Acacha\AdminLTETemplateLaravel\Facades\AdminLTE::class' ],
41 41
         'after'     => 'php artisan vendor:publish --tag=adminlte',
42 42
     ],
43 43
 
44 44
     'LaravelDebugbar' => [
45 45
         'name'      => 'barryvdh/laravel-debugbar',
46
-        'providers' => ['Barryvdh\Debugbar\ServiceProvider::class'],
47
-        'aliases'   => ['Debugbar' => 'Barryvdh\Debugbar\Facade::class'],
46
+        'providers' => [ 'Barryvdh\Debugbar\ServiceProvider::class' ],
47
+        'aliases'   => [ 'Debugbar' => 'Barryvdh\Debugbar\Facade::class' ],
48 48
         'after'     => 'php artisan vendor:publish --provider="Barryvdh\Debugbar\ServiceProvider"',
49 49
     ],
50 50
 
51 51
     'LaravelIdeHelper' => [
52 52
         'name'      => 'barryvdh/laravel-ide-helper',
53
-        'providers' => ['Barryvdh\LaravelIdeHelper\IdeHelperServiceProvider::class'],
53
+        'providers' => [ 'Barryvdh\LaravelIdeHelper\IdeHelperServiceProvider::class' ],
54 54
         'after'     => 'php artisan ide-helper:generate',
55 55
     ],
56 56
 
57 57
     'Socialite' => [
58 58
         'name'      => 'laravel/socialite',
59
-        'providers' => ['Laravel\Socialite\SocialiteServiceProvider::class'],
60
-        'aliases'   => ['Socialite' => 'Laravel\Socialite\Facades\Socialite::class'],
59
+        'providers' => [ 'Laravel\Socialite\SocialiteServiceProvider::class' ],
60
+        'aliases'   => [ 'Socialite' => 'Laravel\Socialite\Facades\Socialite::class' ],
61 61
     ],
62 62
 
63 63
     'LaravelPassport' => [
64 64
         'name'      => 'laravel/passport',
65
-        'providers' => ['Laravel\Passport\PassportServiceProvider::class'],
65
+        'providers' => [ 'Laravel\Passport\PassportServiceProvider::class' ],
66 66
         'after'     => 'php artisan migrate;php artisan passport:install',
67 67
     ],
68 68
 
69 69
     'Passport' => [
70 70
         'name'      => 'laravel/passport',
71
-        'providers' => ['Laravel\Passport\PassportServiceProvider::class'],
71
+        'providers' => [ 'Laravel\Passport\PassportServiceProvider::class' ],
72 72
         'after'     => 'php artisan migrate;php artisan passport:install',
73 73
     ],
74 74
 
75 75
     'Menu' => [
76 76
         'name'      => 'spatie/laravel-menu',
77
-        'providers' => ['Spatie\Menu\Laravel\MenuServiceProvider::class'],
77
+        'providers' => [ 'Spatie\Menu\Laravel\MenuServiceProvider::class' ],
78 78
         'aliases'   => [
79 79
             'Menu' => 'Spatie\Menu\Laravel\MenuFacade::class',
80 80
             'Link' => 'Spatie\Menu\Laravel\Link::class',
@@ -84,7 +84,7 @@  discard block
 block discarded – undo
84 84
 
85 85
     'laravel-menu' => [
86 86
         'name'      => 'spatie/laravel-menu',
87
-        'providers' => ['Spatie\Menu\Laravel\MenuServiceProvider::class'],
87
+        'providers' => [ 'Spatie\Menu\Laravel\MenuServiceProvider::class' ],
88 88
         'aliases'   => [
89 89
             'Menu' => 'Spatie\Menu\Laravel\MenuFacade::class',
90 90
             'Link' => 'Spatie\Menu\Laravel\Link::class',
@@ -94,23 +94,23 @@  discard block
 block discarded – undo
94 94
 
95 95
     'l5-repository' => [
96 96
         'name'      => 'prettus/l5-repository',
97
-        'providers' => ['Prettus\Repository\Providers\RepositoryServiceProvider::class']
97
+        'providers' => [ 'Prettus\Repository\Providers\RepositoryServiceProvider::class' ]
98 98
     ],
99 99
 
100 100
     'acacha-l5-repository' => [
101 101
         'name'      => 'acacha/l5-repository',
102
-        'providers' => ['Prettus\Repository\Providers\RepositoryServiceProvider::class']
102
+        'providers' => [ 'Prettus\Repository\Providers\RepositoryServiceProvider::class' ]
103 103
     ],
104 104
 
105 105
     'laravel-social' => [
106 106
         'name'      => 'acacha/laravel-social',
107
-        'providers' => ['Acacha\LaravelSocial\Providers\LaravelSocialServiceProvider::class'],
107
+        'providers' => [ 'Acacha\LaravelSocial\Providers\LaravelSocialServiceProvider::class' ],
108 108
         'after'     => 'php artisan make:social',
109 109
     ],
110 110
 
111 111
     'LaravelSocial' => [
112 112
         'name'      => 'acacha/laravel-social',
113
-        'providers' => ['Acacha\LaravelSocial\Providers\LaravelSocialServiceProvider::class'],
113
+        'providers' => [ 'Acacha\LaravelSocial\Providers\LaravelSocialServiceProvider::class' ],
114 114
         'after'     => 'php artisan make:social',
115 115
     ],
116 116
 ];
Please login to merge, or discard this patch.