@@ -12,7 +12,7 @@ |
||
| 12 | 12 | */ |
| 13 | 13 | public function up() |
| 14 | 14 | { |
| 15 | - Schema::create('reports', function (Blueprint $table) { |
|
| 15 | + Schema::create('reports', function(Blueprint $table) { |
|
| 16 | 16 | $table->increments('id'); |
| 17 | 17 | $table->string('report_name', 100); |
| 18 | 18 | $table->string('view_name', 100); |
@@ -42,9 +42,9 @@ |
||
| 42 | 42 | /** |
| 43 | 43 | * Check report existance and permission. |
| 44 | 44 | */ |
| 45 | - if (! $report) { |
|
| 45 | + if ( ! $report) { |
|
| 46 | 46 | \ErrorHandler::notFound('report'); |
| 47 | - } elseif (! $skipPermission && ! \Core::users()->can($report->view_name, 'reports')) { |
|
| 47 | + } elseif ( ! $skipPermission && ! \Core::users()->can($report->view_name, 'reports')) { |
|
| 48 | 48 | \ErrorHandler::noPermissions(); |
| 49 | 49 | } |
| 50 | 50 | |
@@ -1,6 +1,6 @@ |
||
| 1 | 1 | <?php |
| 2 | 2 | |
| 3 | -$factory->define(App\Modules\Core\Settings::class, function (Faker\Generator $faker) { |
|
| 3 | +$factory->define(App\Modules\Core\Settings::class, function(Faker\Generator $faker) { |
|
| 4 | 4 | return [ |
| 5 | 5 | 'name' => $faker->randomElement(['Company Name', 'Title', 'Header Image']), |
| 6 | 6 | 'value' => $faker->word(), |
@@ -12,7 +12,7 @@ |
||
| 12 | 12 | */ |
| 13 | 13 | public function up() |
| 14 | 14 | { |
| 15 | - Schema::create('settings', function (Blueprint $table) { |
|
| 15 | + Schema::create('settings', function(Blueprint $table) { |
|
| 16 | 16 | $table->increments('id'); |
| 17 | 17 | $table->string('name', 100); |
| 18 | 18 | $table->string('key', 100)->unique(); |
@@ -83,7 +83,7 @@ |
||
| 83 | 83 | if ($this->cacheConfig && $this->cacheConfig == 'cache') { |
| 84 | 84 | $page = \Request::get('page') !== null ? \Request::get('page') : '1'; |
| 85 | 85 | $cacheKey = $name.$page.\Session::get('locale').serialize($arguments); |
| 86 | - return $this->cache->tags([$this->cacheTag])->rememberForever($cacheKey, function () use ($arguments, $name) { |
|
| 86 | + return $this->cache->tags([$this->cacheTag])->rememberForever($cacheKey, function() use ($arguments, $name) { |
|
| 87 | 87 | return call_user_func_array([$this->repo, $name], $arguments); |
| 88 | 88 | }); |
| 89 | 89 | } elseif ($this->cacheConfig) { |
@@ -79,7 +79,7 @@ discard block |
||
| 79 | 79 | */ |
| 80 | 80 | protected function getRoutes() |
| 81 | 81 | { |
| 82 | - return collect(\Route::getRoutes())->map(function ($route) { |
|
| 82 | + return collect(\Route::getRoutes())->map(function($route) { |
|
| 83 | 83 | if (strpos($route->uri(), 'api/') !== false) { |
| 84 | 84 | return [ |
| 85 | 85 | 'method' => $route->methods()[0], |
@@ -110,7 +110,7 @@ discard block |
||
| 110 | 110 | ]; |
| 111 | 111 | |
| 112 | 112 | |
| 113 | - if (! $skipLoginCheck || ! in_array($method, $skipLoginCheck)) { |
|
| 113 | + if ( ! $skipLoginCheck || ! in_array($method, $skipLoginCheck)) { |
|
| 114 | 114 | $route['headers']['Authorization'] = 'Bearer {token}'; |
| 115 | 115 | } |
| 116 | 116 | } |
@@ -24,7 +24,7 @@ |
||
| 24 | 24 | */ |
| 25 | 25 | public function uploadImageBas64($image, $dir) |
| 26 | 26 | { |
| 27 | - if (! strlen($image)) { |
|
| 27 | + if ( ! strlen($image)) { |
|
| 28 | 28 | return null; |
| 29 | 29 | } |
| 30 | 30 | |
@@ -214,7 +214,7 @@ |
||
| 214 | 214 | $server = []; |
| 215 | 215 | |
| 216 | 216 | foreach ($headers as $headerType => $headerValue) { |
| 217 | - $headerType = 'HTTP_' . $headerType; |
|
| 217 | + $headerType = 'HTTP_'.$headerType; |
|
| 218 | 218 | |
| 219 | 219 | $server[$headerType] = $headerValue; |
| 220 | 220 | } |
@@ -38,7 +38,7 @@ |
||
| 38 | 38 | return $values; |
| 39 | 39 | } |
| 40 | 40 | |
| 41 | - if (! $primaryLocale || ! is_object($values) || ! property_exists($values, $primaryLocale)) { |
|
| 41 | + if ( ! $primaryLocale || ! is_object($values) || ! property_exists($values, $primaryLocale)) { |
|
| 42 | 42 | return $values ? isset($values->$fallbackLocale) ? $values->$fallbackLocale : $values : ''; |
| 43 | 43 | } |
| 44 | 44 | |