Completed
Push — master ( 1d2285...c11be3 )
by Sergi Tur
40:25 queued 10:23
created
src/Console/MakeRoute.php 1 patch
Spacing   +15 added lines, -15 removed lines patch added patch discarded remove patch
@@ -99,7 +99,7 @@  discard block
 block discarded – undo
99 99
         $tmpfile = $this->createTmpFileWithRoute();
100 100
         $path = $this->getPath($tmpfile);
101 101
         add_file_into_file($this->mountpoint(), $path, $dstFile = $this->destinationFile());
102
-        $this->info('Route ' . undot_path($link) . ' added to ' .  $dstFile . '.');
102
+        $this->info('Route '.undot_path($link).' added to '.$dstFile.'.');
103 103
         $this->postActions();
104 104
     }
105 105
 
@@ -169,7 +169,7 @@  discard block
 block discarded – undo
169 169
         $link = $this->removeTrailingSlashIfExists($link);
170 170
         $link = $this->removeDuplicatedTrailingSlashes($link);
171 171
         foreach (Route::getRoutes() as $value) {
172
-            if (in_array(strtoupper($this->option('method')), array_merge($value->methods(), ['ANY'])) &&
172
+            if (in_array(strtoupper($this->option('method')), array_merge($value->methods(), [ 'ANY' ])) &&
173 173
                 $value->uri() === $link) {
174 174
                 return true;
175 175
             }
@@ -210,7 +210,7 @@  discard block
 block discarded – undo
210 210
      */
211 211
     protected function apiRouteExists($link)
212 212
     {
213
-        return $this->webRouteExists('api/v1/' . $link);
213
+        return $this->webRouteExists('api/v1/'.$link);
214 214
     }
215 215
 
216 216
     /**
@@ -233,7 +233,7 @@  discard block
 block discarded – undo
233 233
      */
234 234
     protected function getPath($tmpfile)
235 235
     {
236
-        return stream_get_meta_data($tmpfile)['uri'];
236
+        return stream_get_meta_data($tmpfile)[ 'uri' ];
237 237
     }
238 238
 
239 239
     /**
@@ -244,8 +244,8 @@  discard block
 block discarded – undo
244 244
     protected function getRouteCode()
245 245
     {
246 246
         $type = $this->option('type');
247
-        $class = isset(static::$lookup[$type])
248
-            ? static::$lookup[$type]
247
+        $class = isset(static::$lookup[ $type ])
248
+            ? static::$lookup[ $type ]
249 249
             : RegularRoute::class;
250 250
         /** @var GeneratesCode $route */
251 251
         $route = new $class($this->compiler, $this->filesystem);
@@ -281,7 +281,7 @@  discard block
 block discarded – undo
281 281
             return $this->argument('action');
282 282
         }
283 283
         if (strtolower($this->option('type')) != 'regular') {
284
-            return $this->argument('link') . 'Controller';
284
+            return $this->argument('link').'Controller';
285 285
         }
286 286
         return $this->argument('link');
287 287
     }
@@ -300,7 +300,7 @@  discard block
 block discarded – undo
300 300
      */
301 301
     protected function validateMethod()
302 302
     {
303
-        if (! in_array(strtoupper($this->option('method')), $methods = array_merge(Router::$verbs, ['ANY']))) {
303
+        if (!in_array(strtoupper($this->option('method')), $methods = array_merge(Router::$verbs, [ 'ANY' ]))) {
304 304
             throw new MethodNotAllowedException($methods);
305 305
         }
306 306
     }
@@ -310,7 +310,7 @@  discard block
 block discarded – undo
310 310
      */
311 311
     protected function validateType()
312 312
     {
313
-        if (! in_array(strtolower($this->option('type')), ['regular','controller','resource'])) {
313
+        if (!in_array(strtolower($this->option('type')), [ 'regular', 'controller', 'resource' ])) {
314 314
             throw new RouteTypeNotValid();
315 315
         }
316 316
     }
@@ -347,7 +347,7 @@  discard block
 block discarded – undo
347 347
             'link' => $link = undot_path($this->argument('link')),
348 348
             'name' => ucfirst($link),
349 349
         ]);
350
-        $this->info('Menu entry ' . $link .' added to config/menu.php file.');
350
+        $this->info('Menu entry '.$link.' added to config/menu.php file.');
351 351
     }
352 352
 
353 353
     /**
@@ -389,7 +389,7 @@  discard block
 block discarded – undo
389 389
         Artisan::call('make:view', [
390 390
             'name' => $name
391 391
         ]);
392
-        $this->info('View ' . undot_path($name) .'.blade.php created.');
392
+        $this->info('View '.undot_path($name).'.blade.php created.');
393 393
     }
394 394
 
395 395
     /**
@@ -401,7 +401,7 @@  discard block
 block discarded – undo
401 401
             'name' => $controller = $this->controllerWithoutMethod($this->action())
402 402
         ]);
403 403
         $this->addMethodToController($controller, $this->controllerMethod($this->action()));
404
-        $this->info('Controller ' . $controller .' created.');
404
+        $this->info('Controller '.$controller.' created.');
405 405
         $this->createView($this->argument('link'));
406 406
     }
407 407
 
@@ -414,7 +414,7 @@  discard block
 block discarded – undo
414 414
             'name' => $controller = $this->controllerWithoutMethod($this->action()),
415 415
             '--resource' => true
416 416
         ]);
417
-        $this->info('Resource Controller ' . $controller .' created.');
417
+        $this->info('Resource Controller '.$controller.' created.');
418 418
         $this->createView($this->argument('link'));
419 419
     }
420 420
 
@@ -428,7 +428,7 @@  discard block
 block discarded – undo
428 428
     {
429 429
         $tmpfile = $this->createTmpFileWithMethod($controllerMethod);
430 430
         $path = $this->getPath($tmpfile);
431
-        add_file_into_file('\/\/', $path, app_path('Http/Controllers/' . $controller . '.php'));
431
+        add_file_into_file('\/\/', $path, app_path('Http/Controllers/'.$controller.'.php'));
432 432
     }
433 433
 
434 434
     /**
@@ -468,6 +468,6 @@  discard block
 block discarded – undo
468 468
      */
469 469
     protected function getMethodStubPath()
470 470
     {
471
-        return __DIR__ . '/stubs/method.stub';
471
+        return __DIR__.'/stubs/method.stub';
472 472
     }
473 473
 }
Please login to merge, or discard this patch.
src/Console/MakeV.php 1 patch
Spacing   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -37,7 +37,7 @@  discard block
 block discarded – undo
37 37
      */
38 38
     public function handle()
39 39
     {
40
-        $this->info('Running command ' . $command = $this->command());
40
+        $this->info('Running command '.$command = $this->command());
41 41
         passthru($command);
42 42
     }
43 43
 
@@ -48,11 +48,11 @@  discard block
 block discarded – undo
48 48
      */
49 49
     protected function command()
50 50
     {
51
-        $api = $this->option('api') ? ' --api '  : '';
52
-        $action = $this->argument('action') ? ' ' . $this->argument('action') . ' ' : '';
53
-        return 'php artisan make:route ' . $this->argument('link') . $action . ' --type=' . $this->option('type') .
54
-            ' --method=' . $this->option('method') .
55
-            $api .
51
+        $api = $this->option('api') ? ' --api ' : '';
52
+        $action = $this->argument('action') ? ' '.$this->argument('action').' ' : '';
53
+        return 'php artisan make:route '.$this->argument('link').$action.' --type='.$this->option('type').
54
+            ' --method='.$this->option('method').
55
+            $api.
56 56
             ' -a --menu';
57 57
     }
58 58
 }
Please login to merge, or discard this patch.
src/Http/routes.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -5,7 +5,7 @@
 block discarded – undo
5 5
  * but take into account we have to add 'web' middleware group here because Laravel by defaults add this middleware in
6 6
  * RouteServiceProvider
7 7
  */
8
-Route::group(['middleware' => 'web'], function () {
8
+Route::group([ 'middleware' => 'web' ], function() {
9 9
     Route::auth();
10 10
 
11 11
     Route::get('/home', 'HomeController@index');
Please login to merge, or discard this patch.
routes/web.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -11,11 +11,11 @@
 block discarded – undo
11 11
 |
12 12
 */
13 13
 
14
-Route::get('/', function () {
14
+Route::get('/', function() {
15 15
     return view('welcome');
16 16
 });
17 17
 
18
-Route::group(['middleware' => 'auth'], function () {
18
+Route::group([ 'middleware' => 'auth' ], function() {
19 19
     //    Route::get('/link1', function ()    {
20 20
 //        // Uses Auth Middleware
21 21
 //    });
Please login to merge, or discard this patch.
src/Console/MakeVC.php 1 patch
Spacing   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -37,7 +37,7 @@  discard block
 block discarded – undo
37 37
      */
38 38
     public function handle()
39 39
     {
40
-        $this->info('Running command ' . $command = $this->command());
40
+        $this->info('Running command '.$command = $this->command());
41 41
         passthru($command);
42 42
     }
43 43
 
@@ -48,11 +48,11 @@  discard block
 block discarded – undo
48 48
      */
49 49
     protected function command()
50 50
     {
51
-        $api = $this->option('api') ? ' --api '  : '';
52
-        $action = $this->argument('action') ? ' ' . $this->argument('action') . ' ' : '';
53
-        return 'php artisan make:route ' . $this->argument('link') . $action . ' --type=' . $this->option('type') .
54
-            ' --method=' . $this->option('method') .
55
-            $api .
51
+        $api = $this->option('api') ? ' --api ' : '';
52
+        $action = $this->argument('action') ? ' '.$this->argument('action').' ' : '';
53
+        return 'php artisan make:route '.$this->argument('link').$action.' --type='.$this->option('type').
54
+            ' --method='.$this->option('method').
55
+            $api.
56 56
             ' -a --menu';
57 57
     }
58 58
 }
Please login to merge, or discard this patch.
public/plugins/ssp.php 1 patch
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -29,11 +29,11 @@
 block discarded – undo
29 29
 // parameter represents the DataTables column identifier. In this case simple
30 30
 // indexes
31 31
 $columns = array(
32
-    array( 'db' => 'id',         'dt' => 0 ),
33
-    array( 'db' => 'firstname',  'dt' => 1 ),
34
-    array( 'db' => 'surname',    'dt' => 2 ),
35
-    array( 'db' => 'zip',        'dt' => 3 ),
36
-    array( 'db' => 'country',    'dt' => 4 )
32
+    array('db' => 'id', 'dt' => 0),
33
+    array('db' => 'firstname', 'dt' => 1),
34
+    array('db' => 'surname', 'dt' => 2),
35
+    array('db' => 'zip', 'dt' => 3),
36
+    array('db' => 'country', 'dt' => 4)
37 37
 );
38 38
 
39 39
 // SQL server connection information
Please login to merge, or discard this patch.
public/plugins/posteddata.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -32,12 +32,12 @@
 block discarded – undo
32 32
         }
33 33
 
34 34
         if (get_magic_quotes_gpc()) {
35
-            $value = htmlspecialchars(stripslashes((string)$value));
35
+            $value = htmlspecialchars(stripslashes((string) $value));
36 36
         } else {
37
-            $value = htmlspecialchars((string)$value);
37
+            $value = htmlspecialchars((string) $value);
38 38
         } ?>
39 39
 		<tr>
40
-			<th style="vertical-align: top"><?php echo htmlspecialchars((string)$key); ?></th>
40
+			<th style="vertical-align: top"><?php echo htmlspecialchars((string) $key); ?></th>
41 41
 			<td><pre class="samples"><?php echo $value; ?></pre></td>
42 42
 		</tr>
43 43
 	<?php
Please login to merge, or discard this patch.
config/menu.php 1 patch
Spacing   +7 added lines, -7 removed lines patch added patch discarded remove patch
@@ -10,23 +10,23 @@
 block discarded – undo
10 10
 //        ->url('http://www.google.com', 'Google');
11 11
 //});
12 12
 
13
-Menu::macro('adminlteSubmenu', function ($submenuName) {
14
-    return Menu::new()->prepend('<a href="#"><span> ' . $submenuName . '</span> <i class="fa fa-angle-left pull-right"></i></a>')
13
+Menu::macro('adminlteSubmenu', function($submenuName) {
14
+    return Menu::new()->prepend('<a href="#"><span> '.$submenuName.'</span> <i class="fa fa-angle-left pull-right"></i></a>')
15 15
         ->addParentClass('treeview')->addClass('treeview-menu');
16 16
 });
17
-Menu::macro('adminlteMenu', function () {
17
+Menu::macro('adminlteMenu', function() {
18 18
     return Menu::new()
19 19
         ->addClass('sidebar-menu');
20 20
 });
21
-Menu::macro('adminlteSeparator', function ($title) {
21
+Menu::macro('adminlteSeparator', function($title) {
22 22
     return Html::raw($title)->addParentClass('header');
23 23
 });
24 24
 
25
-Menu::macro('adminlteDefaultMenu', function ($content) {
26
-    return Html::raw('<i class="fa fa-link"></i><span>' . $content . '</span>')->html();
25
+Menu::macro('adminlteDefaultMenu', function($content) {
26
+    return Html::raw('<i class="fa fa-link"></i><span>'.$content.'</span>')->html();
27 27
 });
28 28
 
29
-Menu::macro('sidebar', function () {
29
+Menu::macro('sidebar', function() {
30 30
     return Menu::adminlteMenu()
31 31
         ->add(Html::raw('HEADER')->addParentClass('header'))
32 32
         ->action('HomeController@index', '<i class="fa fa-home"></i><span>Home</span>')
Please login to merge, or discard this patch.
routes/api.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -13,11 +13,11 @@
 block discarded – undo
13 13
 |
14 14
 */
15 15
 
16
-Route::middleware('auth:api')->get('/user', function (Request $request) {
16
+Route::middleware('auth:api')->get('/user', function(Request $request) {
17 17
     return $request->user();
18 18
 });
19 19
 
20
-Route::group(['prefix' => 'v1','middleware' => 'auth:api'], function () {
20
+Route::group([ 'prefix' => 'v1', 'middleware' => 'auth:api' ], function() {
21 21
     //    Route::resource('task', 'TasksController');
22 22
 
23 23
     //Please do not remove this if you want adminlte:route and adminlte:link commands to works correctly.
Please login to merge, or discard this patch.