Passed
Branch master (5cfb80)
by CodexShaper
06:26
created
src/Composer/ComposerScripts.php 2 patches
Indentation   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -46,7 +46,7 @@
 block discarded – undo
46 46
         $partials = explode('-', $vendor_name);
47 47
         $camel_case_partials = [];
48 48
         foreach ($partials as $partial) {
49
-           $camel_case_partials[] = ucfirst(strtolower($partial));
49
+            $camel_case_partials[] = ucfirst(strtolower($partial));
50 50
         }
51 51
         $camel_case = implode('_', $camel_case_partials);
52 52
         $snake_case = implode('_', $partials);
Please login to merge, or discard this patch.
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -92,7 +92,7 @@  discard block
 block discarded – undo
92 92
 
93 93
         foreach ($files as $file) {
94 94
             $file = $root.$file;
95
-            if(file_exists($file)) {
95
+            if (file_exists($file)) {
96 96
                 $contents = file_get_contents($file);
97 97
                 $contents = str_replace('wpb_', $snake_case.'_', $contents);
98 98
                 $contents = str_replace('wpb', $vendor_name, $contents);
@@ -113,7 +113,7 @@  discard block
 block discarded – undo
113 113
                 $fileName = basename($file);
114 114
                 $newFileName = str_replace('wpb', $vendor_name, $fileName);
115 115
                 
116
-                if($fileName != $newFileName) {
116
+                if ($fileName != $newFileName) {
117 117
                     rename($file, $dir.'/'.$newFileName);
118 118
                 }
119 119
                 
@@ -127,7 +127,7 @@  discard block
 block discarded – undo
127 127
     protected static function configApp($root, $camel_case)
128 128
     {
129 129
         $file = $root.'/bootstrap/app.php';
130
-        if(file_exists($file)) {
130
+        if (file_exists($file)) {
131 131
             $contents = file_get_contents($file);
132 132
             $contents = str_replace('WPB_APP_ROOT', strtoupper($camel_case).'_APP_ROOT', $contents);
133 133
             file_put_contents(
@@ -141,7 +141,7 @@  discard block
 block discarded – undo
141 141
     protected static function updateComposer($root, $camel_case)
142 142
     {
143 143
         $file = $root.'/composer.json';
144
-        if(file_exists($file)) {
144
+        if (file_exists($file)) {
145 145
             $contents = file_get_contents($file);
146 146
             $contents = str_replace('WPB', $camel_case, $contents);
147 147
             file_put_contents(
Please login to merge, or discard this patch.
src/Exceptions/Handler.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -149,7 +149,7 @@  discard block
 block discarded – undo
149 149
     {
150 150
         $dontReport = array_merge($this->dontReport, $this->internalDontReport);
151 151
 
152
-        return !is_null(Arr::first($dontReport, function ($type) use ($e) {
152
+        return !is_null(Arr::first($dontReport, function($type) use ($e) {
153 153
             return $e instanceof $type;
154 154
         }));
155 155
     }
@@ -370,7 +370,7 @@  discard block
 block discarded – undo
370 370
      */
371 371
     protected function renderExceptionWithWhoops(Throwable $e)
372 372
     {
373
-        return tap(new Whoops(), function ($whoops) {
373
+        return tap(new Whoops(), function($whoops) {
374 374
             $whoops->appendHandler($this->whoopsHandler());
375 375
 
376 376
             $whoops->writeToOutput(false);
@@ -438,7 +438,7 @@  discard block
 block discarded – undo
438 438
     {
439 439
         $paths = collect($this->container['config']['view.paths']);
440 440
 
441
-        View::replaceNamespace('errors', $paths->map(function ($path) {
441
+        View::replaceNamespace('errors', $paths->map(function($path) {
442 442
             return "{$path}/errors";
443 443
         })->push(__DIR__.'/views')->all());
444 444
     }
@@ -514,7 +514,7 @@  discard block
 block discarded – undo
514 514
             'exception' => get_class($e),
515 515
             'file'      => $e->getFile(),
516 516
             'line'      => $e->getLine(),
517
-            'trace'     => collect($e->getTrace())->map(function ($trace) {
517
+            'trace'     => collect($e->getTrace())->map(function($trace) {
518 518
                 return Arr::except($trace, ['args']);
519 519
             })->all(),
520 520
         ] : [
Please login to merge, or discard this patch.
src/Http/Kernel.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -148,7 +148,7 @@
 block discarded – undo
148 148
      */
149 149
     protected function dispatchToRouter()
150 150
     {
151
-        return function ($request) {
151
+        return function($request) {
152 152
             $this->app->instance('request', $request);
153 153
 
154 154
             return $this->router->dispatch($request);
Please login to merge, or discard this patch.
routes/api.php 2 patches
Indentation   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -8,6 +8,6 @@
 block discarded – undo
8 8
  */
9 9
 
10 10
 $router->get('test', function(Request $request){
11
-	echo "API Test";
12
-	die();
11
+    echo "API Test";
12
+    die();
13 13
 });
14 14
\ No newline at end of file
Please login to merge, or discard this patch.
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -7,7 +7,7 @@
 block discarded – undo
7 7
  * You can use either $router object or Route facate to create new route
8 8
  */
9 9
 
10
-$router->get('test', function(Request $request){
10
+$router->get('test', function(Request $request) {
11 11
 	echo "API Test";
12 12
 	die();
13 13
 });
14 14
\ No newline at end of file
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
@@ -7,13 +7,13 @@
 block discarded – undo
7 7
  * You can use either $router object or Route facate to create new route
8 8
  */
9 9
 
10
-$router->get('test', function(){
10
+$router->get('test', function() {
11 11
     echo wpb_view('welcome');
12 12
     die();
13 13
 });
14 14
 
15 15
 
16
-Route::get('route/facade', function(Request $request){
16
+Route::get('route/facade', function(Request $request) {
17 17
     echo "This is a facade route";
18 18
     die();
19 19
 });
20 20
\ No newline at end of file
Please login to merge, or discard this patch.