@@ -227,6 +227,6 @@ |
||
| 227 | 227 | */ |
| 228 | 228 | protected function getStub() |
| 229 | 229 | { |
| 230 | - return __DIR__ . '/Lib/stubs/' . $this->getTemplate() . '.stub'; |
|
| 230 | + return __DIR__.'/Lib/stubs/'.$this->getTemplate().'.stub'; |
|
| 231 | 231 | } |
| 232 | 232 | } |
| 233 | 233 | \ No newline at end of file |
@@ -8,7 +8,7 @@ discard block |
||
| 8 | 8 | $model = last($model); |
| 9 | 9 | $model = preg_replace('/\.php/i', '', $model); |
| 10 | 10 | |
| 11 | - return '\\' . $model; |
|
| 11 | + return '\\'.$model; |
|
| 12 | 12 | |
| 13 | 13 | } |
| 14 | 14 | |
@@ -20,7 +20,7 @@ discard block |
||
| 20 | 20 | { |
| 21 | 21 | $state = preg_replace('/Contracts/i', 'States', $state); |
| 22 | 22 | $state = preg_replace('/Contract/i', 'Trait', $state); |
| 23 | - $result .= 'use ' . $state . ';' . "\n"; |
|
| 23 | + $result .= 'use '.$state.';'."\n"; |
|
| 24 | 24 | } |
| 25 | 25 | |
| 26 | 26 | return $result; |
@@ -29,7 +29,7 @@ discard block |
||
| 29 | 29 | |
| 30 | 30 | public function getImplementation($states) |
| 31 | 31 | { |
| 32 | - $result = 'implements ' . join(', ', $states); |
|
| 32 | + $result = 'implements '.join(', ', $states); |
|
| 33 | 33 | |
| 34 | 34 | return $result; |
| 35 | 35 | |
@@ -18,7 +18,7 @@ discard block |
||
| 18 | 18 | |
| 19 | 19 | $this->{$this->column_nb_of_try_name} += 1; |
| 20 | 20 | \DB::table($this->getTable()) |
| 21 | - ->where($this->getKeyName(),$this->getKey()) |
|
| 21 | + ->where($this->getKeyName(), $this->getKey()) |
|
| 22 | 22 | ->increment($this->column_nb_of_try_name); |
| 23 | 23 | return $this; |
| 24 | 24 | |
@@ -28,8 +28,8 @@ discard block |
||
| 28 | 28 | { |
| 29 | 29 | |
| 30 | 30 | \DB::table($this->getTable()) |
| 31 | - ->where($this->getKeyName(),$this->getKey()) |
|
| 32 | - ->decrement($this->column_nb_of_try_name,$this->{$this->column_nb_of_try_name}); |
|
| 31 | + ->where($this->getKeyName(), $this->getKey()) |
|
| 32 | + ->decrement($this->column_nb_of_try_name, $this->{$this->column_nb_of_try_name}); |
|
| 33 | 33 | |
| 34 | 34 | $this->{$this->column_nb_of_try_name} = 0; |
| 35 | 35 | return $this; |
@@ -41,8 +41,8 @@ discard block |
||
| 41 | 41 | $this->{$this->column_nb_of_try_name} = config($this->config_key_security_lock) + 1; |
| 42 | 42 | |
| 43 | 43 | \DB::table($this->getTable()) |
| 44 | - ->where($this->getKeyName(),$this->getKey()) |
|
| 45 | - ->increment($this->column_nb_of_try_name,$this->{$this->column_nb_of_try_name} ); |
|
| 44 | + ->where($this->getKeyName(), $this->getKey()) |
|
| 45 | + ->increment($this->column_nb_of_try_name, $this->{$this->column_nb_of_try_name} ); |
|
| 46 | 46 | |
| 47 | 47 | return $this; |
| 48 | 48 | } |
@@ -42,7 +42,7 @@ |
||
| 42 | 42 | // First, we will check to see if a controller prefix has been registered in |
| 43 | 43 | // the route group. If it has, we will need to prefix it before trying to |
| 44 | 44 | // reflect into the class instance and pull out the method for routing. |
| 45 | - if (! empty($this->groupStack)) { |
|
| 45 | + if (!empty($this->groupStack)) { |
|
| 46 | 46 | $prepended = $this->prependGroupUses($controller); |
| 47 | 47 | } |
| 48 | 48 | $routable = (new ControllerInspector) |
@@ -24,7 +24,7 @@ |
||
| 24 | 24 | public function handle($request, Closure $next) |
| 25 | 25 | { |
| 26 | 26 | |
| 27 | - if (! $request->isSecure() and env('SECURE_COOKIE', false)) { |
|
| 27 | + if (!$request->isSecure() and env('SECURE_COOKIE', false)) { |
|
| 28 | 28 | if (strpos($request->getRequestUri(), '/storage/') === false) { |
| 29 | 29 | return redirect()->secure($request->getRequestUri()); |
| 30 | 30 | } |
@@ -18,8 +18,8 @@ |
||
| 18 | 18 | if (config('cache.enabled') === true) { |
| 19 | 19 | $url = $request->url(); |
| 20 | 20 | |
| 21 | - $key = md5($url . json_encode($request->query())); |
|
| 22 | - $value = \Cache::remember($key, config('cache.minutes'), function () use ($next, $request) { |
|
| 21 | + $key = md5($url.json_encode($request->query())); |
|
| 22 | + $value = \Cache::remember($key, config('cache.minutes'), function() use ($next, $request) { |
|
| 23 | 23 | return $next($request); |
| 24 | 24 | }); |
| 25 | 25 | |
@@ -28,7 +28,7 @@ |
||
| 28 | 28 | preg_match_all('/(\W|^)([a-z]{2})([^a-z]|$)/six', $request->server->get('HTTP_ACCEPT_LANGUAGE'), $m, PREG_PATTERN_ORDER); |
| 29 | 29 | |
| 30 | 30 | $user_langs = $m[2]; |
| 31 | - if (! empty($user_langs[0])) { |
|
| 31 | + if (!empty($user_langs[0])) { |
|
| 32 | 32 | $total = Language::where('iso', '=', $user_langs[0])->count(); |
| 33 | 33 | if ($total > 0) { |
| 34 | 34 | return redirect()->to('/'.$user_langs[0]); |
@@ -30,7 +30,7 @@ |
||
| 30 | 30 | */ |
| 31 | 31 | public function storagePath() |
| 32 | 32 | { |
| 33 | - $path = env('STORAGE_PATH', $this->basePath . DIRECTORY_SEPARATOR . 'storage'); |
|
| 33 | + $path = env('STORAGE_PATH', $this->basePath.DIRECTORY_SEPARATOR.'storage'); |
|
| 34 | 34 | |
| 35 | 35 | return $this->storagePath ?: $path; |
| 36 | 36 | } |
@@ -56,9 +56,9 @@ discard block |
||
| 56 | 56 | \Route::group([ |
| 57 | 57 | 'middleware' => 'web', |
| 58 | 58 | 'namespace' => $this->namespace, |
| 59 | - ], function ($router) { |
|
| 59 | + ], function($router) { |
|
| 60 | 60 | |
| 61 | - require __DIR__ . '/../routes/web.php'; |
|
| 61 | + require __DIR__.'/../routes/web.php'; |
|
| 62 | 62 | }); |
| 63 | 63 | } |
| 64 | 64 | |
@@ -75,8 +75,8 @@ discard block |
||
| 75 | 75 | 'middleware' => 'api', |
| 76 | 76 | 'namespace' => $this->namespace, |
| 77 | 77 | 'prefix' => 'api', |
| 78 | - ], function ($router) { |
|
| 79 | - require __DIR__ . '/../routes/api.php'; |
|
| 78 | + ], function($router) { |
|
| 79 | + require __DIR__.'/../routes/api.php'; |
|
| 80 | 80 | }); |
| 81 | 81 | } |
| 82 | 82 | } |