@@ -6,7 +6,7 @@ |
||
6 | 6 | * @author Taylor Otwell <[email protected]> |
7 | 7 | */ |
8 | 8 | $uri = urldecode( |
9 | - parse_url($_SERVER['REQUEST_URI'], PHP_URL_PATH) |
|
9 | + parse_url($_SERVER[ 'REQUEST_URI' ], PHP_URL_PATH) |
|
10 | 10 | ); |
11 | 11 | |
12 | 12 | // This file allows us to emulate Apache's "mod_rewrite" functionality from the |
@@ -38,13 +38,13 @@ discard block |
||
38 | 38 | 'package' => 'package.json', |
39 | 39 | ], |
40 | 40 | 'replacements' => [ |
41 | - 'routes/web' => ['LOWER_NAME', 'STUDLY_NAME'], |
|
42 | - 'routes/api' => ['LOWER_NAME'], |
|
43 | - 'webpack' => ['LOWER_NAME'], |
|
44 | - 'json' => ['LOWER_NAME', 'STUDLY_NAME', 'MODULE_NAMESPACE'], |
|
45 | - 'views/index' => ['LOWER_NAME'], |
|
46 | - 'views/master' => ['LOWER_NAME', 'STUDLY_NAME'], |
|
47 | - 'scaffold/config' => ['STUDLY_NAME'], |
|
41 | + 'routes/web' => [ 'LOWER_NAME', 'STUDLY_NAME' ], |
|
42 | + 'routes/api' => [ 'LOWER_NAME' ], |
|
43 | + 'webpack' => [ 'LOWER_NAME' ], |
|
44 | + 'json' => [ 'LOWER_NAME', 'STUDLY_NAME', 'MODULE_NAMESPACE' ], |
|
45 | + 'views/index' => [ 'LOWER_NAME' ], |
|
46 | + 'views/master' => [ 'LOWER_NAME', 'STUDLY_NAME' ], |
|
47 | + 'scaffold/config' => [ 'STUDLY_NAME' ], |
|
48 | 48 | 'composer' => [ |
49 | 49 | 'LOWER_NAME', |
50 | 50 | 'STUDLY_NAME', |
@@ -97,29 +97,29 @@ discard block |
||
97 | 97 | | Set the generate key to false to not generate that folder |
98 | 98 | */ |
99 | 99 | 'generator' => [ |
100 | - 'config' => ['path' => 'Config', 'generate' => true], |
|
101 | - 'command' => ['path' => 'Console', 'generate' => true], |
|
102 | - 'migration' => ['path' => 'Database/Migrations', 'generate' => true], |
|
103 | - 'seeder' => ['path' => 'Database/Seeders', 'generate' => true], |
|
104 | - 'factory' => ['path' => 'Database/factories', 'generate' => true], |
|
105 | - 'model' => ['path' => 'Entities', 'generate' => true], |
|
106 | - 'controller' => ['path' => 'Http/Controllers', 'generate' => true], |
|
107 | - 'filter' => ['path' => 'Http/Middleware', 'generate' => true], |
|
108 | - 'request' => ['path' => 'Http/Requests', 'generate' => true], |
|
109 | - 'provider' => ['path' => 'Providers', 'generate' => true], |
|
110 | - 'assets' => ['path' => 'Resources/assets', 'generate' => true], |
|
111 | - 'lang' => ['path' => 'Resources/lang', 'generate' => true], |
|
112 | - 'views' => ['path' => 'Resources/views', 'generate' => true], |
|
113 | - 'test' => ['path' => 'Tests', 'generate' => true], |
|
114 | - 'repository' => ['path' => 'Repositories', 'generate' => false], |
|
115 | - 'event' => ['path' => 'Events', 'generate' => false], |
|
116 | - 'listener' => ['path' => 'Listeners', 'generate' => false], |
|
117 | - 'policies' => ['path' => 'Policies', 'generate' => false], |
|
118 | - 'rules' => ['path' => 'Rules', 'generate' => false], |
|
119 | - 'jobs' => ['path' => 'Jobs', 'generate' => false], |
|
120 | - 'emails' => ['path' => 'Emails', 'generate' => false], |
|
121 | - 'notifications' => ['path' => 'Notifications', 'generate' => false], |
|
122 | - 'resource' => ['path' => 'Transformers', 'generate' => false], |
|
100 | + 'config' => [ 'path' => 'Config', 'generate' => true ], |
|
101 | + 'command' => [ 'path' => 'Console', 'generate' => true ], |
|
102 | + 'migration' => [ 'path' => 'Database/Migrations', 'generate' => true ], |
|
103 | + 'seeder' => [ 'path' => 'Database/Seeders', 'generate' => true ], |
|
104 | + 'factory' => [ 'path' => 'Database/factories', 'generate' => true ], |
|
105 | + 'model' => [ 'path' => 'Entities', 'generate' => true ], |
|
106 | + 'controller' => [ 'path' => 'Http/Controllers', 'generate' => true ], |
|
107 | + 'filter' => [ 'path' => 'Http/Middleware', 'generate' => true ], |
|
108 | + 'request' => [ 'path' => 'Http/Requests', 'generate' => true ], |
|
109 | + 'provider' => [ 'path' => 'Providers', 'generate' => true ], |
|
110 | + 'assets' => [ 'path' => 'Resources/assets', 'generate' => true ], |
|
111 | + 'lang' => [ 'path' => 'Resources/lang', 'generate' => true ], |
|
112 | + 'views' => [ 'path' => 'Resources/views', 'generate' => true ], |
|
113 | + 'test' => [ 'path' => 'Tests', 'generate' => true ], |
|
114 | + 'repository' => [ 'path' => 'Repositories', 'generate' => false ], |
|
115 | + 'event' => [ 'path' => 'Events', 'generate' => false ], |
|
116 | + 'listener' => [ 'path' => 'Listeners', 'generate' => false ], |
|
117 | + 'policies' => [ 'path' => 'Policies', 'generate' => false ], |
|
118 | + 'rules' => [ 'path' => 'Rules', 'generate' => false ], |
|
119 | + 'jobs' => [ 'path' => 'Jobs', 'generate' => false ], |
|
120 | + 'emails' => [ 'path' => 'Emails', 'generate' => false ], |
|
121 | + 'notifications' => [ 'path' => 'Notifications', 'generate' => false ], |
|
122 | + 'resource' => [ 'path' => 'Transformers', 'generate' => false ], |
|
123 | 123 | ], |
124 | 124 | ], |
125 | 125 | /* |
@@ -173,8 +173,8 @@ |
||
173 | 173 | | Cast the given "real type" to the given "type". |
174 | 174 | | |
175 | 175 | */ |
176 | - 'type_overrides' => [ |
|
176 | + 'type_overrides' => [ |
|
177 | 177 | 'integer' => 'int', |
178 | 178 | 'boolean' => 'bool', |
179 | - ], |
|
179 | + ], |
|
180 | 180 | ]; |
@@ -78,8 +78,8 @@ |
||
78 | 78 | */ |
79 | 79 | |
80 | 80 | 'extra' => [ |
81 | - 'Eloquent' => ['Illuminate\Database\Eloquent\Builder', 'Illuminate\Database\Query\Builder'], |
|
82 | - 'Session' => ['Illuminate\Session\Store'], |
|
81 | + 'Eloquent' => [ 'Illuminate\Database\Eloquent\Builder', 'Illuminate\Database\Query\Builder' ], |
|
82 | + 'Session' => [ 'Illuminate\Session\Store' ], |
|
83 | 83 | ], |
84 | 84 | |
85 | 85 | 'magic' => [ |
@@ -111,7 +111,7 @@ |
||
111 | 111 | | |
112 | 112 | */ |
113 | 113 | |
114 | - 'lottery' => [2, 100], |
|
114 | + 'lottery' => [ 2, 100 ], |
|
115 | 115 | |
116 | 116 | /* |
117 | 117 | |-------------------------------------------------------------------------- |
@@ -36,7 +36,7 @@ |
||
36 | 36 | 'channels' => [ |
37 | 37 | 'stack' => [ |
38 | 38 | 'driver' => 'stack', |
39 | - 'channels' => ['daily'], |
|
39 | + 'channels' => [ 'daily' ], |
|
40 | 40 | ], |
41 | 41 | |
42 | 42 | 'single' => [ |
@@ -38,7 +38,7 @@ |
||
38 | 38 | final public function up() |
39 | 39 | { |
40 | 40 | if (!Schema::connection($this->connection)->hasTable($this->collection)) { |
41 | - Schema::connection($this->connection)->create($this->collection, function (Blueprint $collection) { |
|
41 | + Schema::connection($this->connection)->create($this->collection, function(Blueprint $collection) { |
|
42 | 42 | $this->migrate($collection); |
43 | 43 | }); |
44 | 44 | } |
@@ -34,7 +34,7 @@ discard block |
||
34 | 34 | |
35 | 35 | $this->resolver->setDefaultConnection($this->getDatabase()); |
36 | 36 | |
37 | - Model::unguarded(function () { |
|
37 | + Model::unguarded(function() { |
|
38 | 38 | foreach ($this->getSeeders() as $seeder) { |
39 | 39 | $seeder = $this->laravel->make($seeder); |
40 | 40 | $seeder->__invoke(); |
@@ -48,6 +48,6 @@ discard block |
||
48 | 48 | { |
49 | 49 | $this->service = $this->laravel->make(BootstrapRegistrarService::class); |
50 | 50 | |
51 | - return $this->service->getSeeders() ?? []; |
|
51 | + return $this->service->getSeeders() ?? [ ]; |
|
52 | 52 | } |
53 | 53 | } |
@@ -59,7 +59,7 @@ discard block |
||
59 | 59 | | This is used to verify the decoded tokens when using RS256 |
60 | 60 | | |
61 | 61 | */ |
62 | - 'authorized_issuers' => [env('AUTH0_DOMAIN')], |
|
62 | + 'authorized_issuers' => [ env('AUTH0_DOMAIN') ], |
|
63 | 63 | |
64 | 64 | /* |
65 | 65 | |-------------------------------------------------------------------------- |
@@ -85,7 +85,7 @@ discard block |
||
85 | 85 | | Token decoding algorithms supported by your API |
86 | 86 | | |
87 | 87 | */ |
88 | - 'supported_algs' => ['RS256'], |
|
88 | + 'supported_algs' => [ 'RS256' ], |
|
89 | 89 | |
90 | 90 | /* |
91 | 91 | |-------------------------------------------------------------------------- |
@@ -42,7 +42,7 @@ discard block |
||
42 | 42 | |
43 | 43 | public function getUserByUserInfo($userInfo) |
44 | 44 | { |
45 | - return $this->upsertUser($userInfo['profile']); |
|
45 | + return $this->upsertUser($userInfo[ 'profile' ]); |
|
46 | 46 | } |
47 | 47 | |
48 | 48 | protected function upsertUser($profile) |
@@ -51,8 +51,8 @@ discard block |
||
51 | 51 | throw new Exception('Missing token information: Auth0 user id is not set'); |
52 | 52 | } |
53 | 53 | $identifier = explode('|', $profile->user_id); |
54 | - $identityProvider = $identifier[0]; |
|
55 | - $id = $identifier[1]; |
|
54 | + $identityProvider = $identifier[ 0 ]; |
|
55 | + $id = $identifier[ 1 ]; |
|
56 | 56 | |
57 | 57 | $user = $this->service->find($id); |
58 | 58 |