@@ -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 | |
@@ -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) { |
@@ -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 | |
@@ -22,7 +22,7 @@ |
||
| 22 | 22 | */ |
| 23 | 23 | public function saveMany(array $data) |
| 24 | 24 | { |
| 25 | - \DB::transaction(function () use ($data) { |
|
| 25 | + \DB::transaction(function() use ($data) { |
|
| 26 | 26 | foreach ($data as $value) { |
| 27 | 27 | $this->save($value); |
| 28 | 28 | } |
@@ -63,7 +63,7 @@ |
||
| 63 | 63 | return \Response::json(['errors' => [$errors]], $exception->getStatusCode()); |
| 64 | 64 | } elseif ($exception instanceof \Illuminate\Validation\ValidationException) { |
| 65 | 65 | return \Response::json(['errors' => $exception->errors()], 422); |
| 66 | - } elseif (! $exception instanceof \Symfony\Component\ErrorHandler\Error\FatalError) { |
|
| 66 | + } elseif ( ! $exception instanceof \Symfony\Component\ErrorHandler\Error\FatalError) { |
|
| 67 | 67 | return parent::render($request, $exception); |
| 68 | 68 | } |
| 69 | 69 | } |