@@ -17,7 +17,7 @@ |
||
17 | 17 | */ |
18 | 18 | public function toArray($request) |
19 | 19 | { |
20 | - if (! $this->resource) { |
|
20 | + if ( ! $this->resource) { |
|
21 | 21 | return []; |
22 | 22 | } |
23 | 23 |
@@ -13,7 +13,7 @@ |
||
13 | 13 | | |
14 | 14 | */ |
15 | 15 | |
16 | -Route::group(['prefix' => 'roles'], function () { |
|
16 | +Route::group(['prefix' => 'roles'], function() { |
|
17 | 17 | |
18 | 18 | Route::get('/', 'RoleController@index'); |
19 | 19 | Route::get('/{id}', 'RoleController@find'); |
@@ -47,7 +47,7 @@ |
||
47 | 47 | |
48 | 48 | if ($timezone && $timezone !== $user->timezone) { |
49 | 49 | $user->timezone = $timezone; |
50 | - $update = true; |
|
50 | + $update = true; |
|
51 | 51 | } |
52 | 52 | |
53 | 53 | if ($update) { |
@@ -1,6 +1,6 @@ |
||
1 | 1 | <?php |
2 | 2 | |
3 | -$factory->define(App\Modules\Core\Setting::class, function (Faker\Generator $faker) { |
|
3 | +$factory->define(App\Modules\Core\Setting::class, function(Faker\Generator $faker) { |
|
4 | 4 | return [ |
5 | 5 | 'name' => $faker->randomElement(['Company Name', 'Title', 'Header Image']), |
6 | 6 | 'value' => $faker->word(), |
@@ -83,7 +83,7 @@ discard block |
||
83 | 83 | */ |
84 | 84 | protected function getRoutes() |
85 | 85 | { |
86 | - return collect(\Route::getRoutes())->map(function ($route) { |
|
86 | + return collect(\Route::getRoutes())->map(function($route) { |
|
87 | 87 | if (strpos($route->uri(), 'api/') !== false) { |
88 | 88 | return [ |
89 | 89 | 'method' => $route->methods()[0], |
@@ -114,7 +114,7 @@ discard block |
||
114 | 114 | ]; |
115 | 115 | |
116 | 116 | |
117 | - if (! $skipLoginCheck || ! in_array($method, $skipLoginCheck)) { |
|
117 | + if ( ! $skipLoginCheck || ! in_array($method, $skipLoginCheck)) { |
|
118 | 118 | $route['headers']['Authorization'] = 'Bearer {token}'; |
119 | 119 | } |
120 | 120 | } |
@@ -162,7 +162,7 @@ discard block |
||
162 | 162 | if (count($parameters)) { |
163 | 163 | $className = optional($reflectionMethod->getParameters()[0]->getType())->getName(); |
164 | 164 | if ($className) { |
165 | - $reflectionClass = new \ReflectionClass($className); |
|
165 | + $reflectionClass = new \ReflectionClass($className); |
|
166 | 166 | |
167 | 167 | if ($reflectionClass->hasMethod('rules')) { |
168 | 168 | $reflectionMethod = $reflectionClass->getMethod('rules'); |
@@ -1,6 +1,6 @@ |
||
1 | 1 | <?php |
2 | 2 | |
3 | -$factory->define(App\Modules\Roles\Role::class, function (Faker\Generator $faker) { |
|
3 | +$factory->define(App\Modules\Roles\Role::class, function(Faker\Generator $faker) { |
|
4 | 4 | return [ |
5 | 5 | 'name' => $faker->unique->word(), |
6 | 6 | 'created_at' => $faker->dateTimeBetween('-1 years', 'now'), |
@@ -13,7 +13,7 @@ |
||
13 | 13 | */ |
14 | 14 | public function up() |
15 | 15 | { |
16 | - Schema::create('oauth_refresh_tokens', function (Blueprint $table) { |
|
16 | + Schema::create('oauth_refresh_tokens', function(Blueprint $table) { |
|
17 | 17 | $table->string('id', 100)->primary(); |
18 | 18 | $table->string('access_token_id', 100); |
19 | 19 | $table->boolean('revoked'); |
@@ -1,6 +1,6 @@ |
||
1 | 1 | <?php |
2 | 2 | |
3 | -$factory->define(App\Modules\Permissions\Permission::class, function (Faker\Generator $faker) { |
|
3 | +$factory->define(App\Modules\Permissions\Permission::class, function(Faker\Generator $faker) { |
|
4 | 4 | return [ |
5 | 5 | 'name' => $faker->randomElement(['save', 'delete', 'find', 'paginate']), |
6 | 6 | 'model' => $faker->randomElement(['users', 'roles', 'settings', 'notifications']), |
@@ -17,7 +17,7 @@ |
||
17 | 17 | */ |
18 | 18 | public function toArray($request) |
19 | 19 | { |
20 | - if (! $this->resource) { |
|
20 | + if ( ! $this->resource) { |
|
21 | 21 | return []; |
22 | 22 | } |
23 | 23 |