@@ -8,14 +8,14 @@ |
||
| 8 | 8 | */ |
| 9 | 9 | |
| 10 | 10 | $uri = urldecode( |
| 11 | - parse_url($_SERVER['REQUEST_URI'], PHP_URL_PATH) |
|
| 11 | + parse_url($_SERVER[ 'REQUEST_URI' ], PHP_URL_PATH) |
|
| 12 | 12 | ); |
| 13 | 13 | |
| 14 | 14 | // This file allows us to emulate Apache's "mod_rewrite" functionality from the |
| 15 | 15 | // built-in PHP web server. This provides a convenient way to test a Laravel |
| 16 | 16 | // application without having installed a "real" web server software here. |
| 17 | -if ($uri !== '/' && file_exists(__DIR__.'/public'.$uri)) { |
|
| 17 | +if ($uri !== '/' && file_exists(__DIR__ . '/public' . $uri)) { |
|
| 18 | 18 | return false; |
| 19 | 19 | } |
| 20 | 20 | |
| 21 | -require_once __DIR__.'/public/index.php'; |
|
| 21 | +require_once __DIR__ . '/public/index.php'; |
|
@@ -19,7 +19,7 @@ discard block |
||
| 19 | 19 | | |
| 20 | 20 | */ |
| 21 | 21 | |
| 22 | -require __DIR__.'/../bootstrap/autoload.php'; |
|
| 22 | +require __DIR__ . '/../bootstrap/autoload.php'; |
|
| 23 | 23 | |
| 24 | 24 | /* |
| 25 | 25 | |-------------------------------------------------------------------------- |
@@ -33,7 +33,7 @@ discard block |
||
| 33 | 33 | | |
| 34 | 34 | */ |
| 35 | 35 | |
| 36 | -$app = require_once __DIR__.'/../bootstrap/app.php'; |
|
| 36 | +$app = require_once __DIR__ . '/../bootstrap/app.php'; |
|
| 37 | 37 | |
| 38 | 38 | /* |
| 39 | 39 | |-------------------------------------------------------------------------- |
@@ -112,6 +112,6 @@ |
||
| 112 | 112 | | |
| 113 | 113 | */ |
| 114 | 114 | |
| 115 | - 'attributes' => [], |
|
| 115 | + 'attributes' => [ ], |
|
| 116 | 116 | |
| 117 | 117 | ]; |
@@ -13,6 +13,6 @@ |
||
| 13 | 13 | | |
| 14 | 14 | */ |
| 15 | 15 | |
| 16 | -Artisan::command('inspire', function () { |
|
| 16 | +Artisan::command('inspire', function() { |
|
| 17 | 17 | $this->comment(Inspiring::quote()); |
| 18 | 18 | })->describe('Display an inspiring quote'); |
@@ -13,6 +13,6 @@ |
||
| 13 | 13 | | |
| 14 | 14 | */ |
| 15 | 15 | |
| 16 | -Route::get('/user', function (Request $request) { |
|
| 16 | +Route::get('/user', function(Request $request) { |
|
| 17 | 17 | return $request->user(); |
| 18 | 18 | })->middleware('auth:api'); |
@@ -109,7 +109,7 @@ |
||
| 109 | 109 | | |
| 110 | 110 | */ |
| 111 | 111 | |
| 112 | - 'lottery' => [2, 100], |
|
| 112 | + 'lottery' => [ 2, 100 ], |
|
| 113 | 113 | |
| 114 | 114 | /* |
| 115 | 115 | |-------------------------------------------------------------------------- |
@@ -12,7 +12,7 @@ |
||
| 12 | 12 | */ |
| 13 | 13 | |
| 14 | 14 | $app = new Illuminate\Foundation\Application( |
| 15 | - realpath(__DIR__.'/../') |
|
| 15 | + realpath(__DIR__ . '/../') |
|
| 16 | 16 | ); |
| 17 | 17 | |
| 18 | 18 | /* |
@@ -14,7 +14,7 @@ discard block |
||
| 14 | 14 | | |
| 15 | 15 | */ |
| 16 | 16 | |
| 17 | -require __DIR__.'/../vendor/autoload.php'; |
|
| 17 | +require __DIR__ . '/../vendor/autoload.php'; |
|
| 18 | 18 | |
| 19 | 19 | /* |
| 20 | 20 | |-------------------------------------------------------------------------- |
@@ -27,7 +27,7 @@ discard block |
||
| 27 | 27 | | |
| 28 | 28 | */ |
| 29 | 29 | |
| 30 | -$compiledPath = __DIR__.'/cache/compiled.php'; |
|
| 30 | +$compiledPath = __DIR__ . '/cache/compiled.php'; |
|
| 31 | 31 | |
| 32 | 32 | if (file_exists($compiledPath)) { |
| 33 | 33 | require $compiledPath; |
@@ -51,7 +51,7 @@ discard block |
||
| 51 | 51 | public function render($request, Exception $exception) |
| 52 | 52 | { |
| 53 | 53 | if (!app()->environment('local')) { |
| 54 | - return response()->view('errors.500', [], 500); |
|
| 54 | + return response()->view('errors.500', [ ], 500); |
|
| 55 | 55 | } |
| 56 | 56 | |
| 57 | 57 | return parent::render($request, $exception); |
@@ -67,7 +67,7 @@ discard block |
||
| 67 | 67 | protected function unauthenticated($request, AuthenticationException $exception) |
| 68 | 68 | { |
| 69 | 69 | if ($request->expectsJson()) { |
| 70 | - return response()->json(['error' => 'Unauthenticated.'], 401); |
|
| 70 | + return response()->json([ 'error' => 'Unauthenticated.' ], 401); |
|
| 71 | 71 | } |
| 72 | 72 | |
| 73 | 73 | return redirect()->guest('login'); |