Completed
Push — master ( d4da59...bf2e41 )
by Maxime
11s
created
src/Distilleries/Expendable/Forms/Role/RoleForm.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -41,8 +41,8 @@
 block discarded – undo
41 41
 
42 42
     protected function getUpdateRules()
43 43
     {
44
-        $key                           = \Request::get($this->model->getKeyName());
45
-        static::$rules_update['initials'] = 'required|unique:roles,initials' . $key;
44
+        $key = \Request::get($this->model->getKeyName());
45
+        static::$rules_update['initials'] = 'required|unique:roles,initials'.$key;
46 46
 
47 47
         return parent::getUpdateRules();
48 48
     }
Please login to merge, or discard this patch.
src/Distilleries/Expendable/Datatables/BaseDatatable.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -10,15 +10,15 @@
 block discarded – undo
10 10
     // ------------------------------------------------------------------------------------------------
11 11
     public function addTranslationAction($template = 'expendable::admin.form.components.datatable.translations', $route = '')
12 12
     {
13
-        $this->add('translation', function ($model) use ($template, $route) {
13
+        $this->add('translation', function($model) use ($template, $route) {
14 14
 
15 15
             $languages    = Language::withoutCurrentLanguage()->get();
16
-            $translations = Translation::byElement($model)->pluck('id_element','iso')->toArray();
16
+            $translations = Translation::byElement($model)->pluck('id_element', 'iso')->toArray();
17 17
             return view($template, array(
18 18
                 'languages'    => $languages,
19 19
                 'translations' => $translations,
20 20
                 'data'         => $model->toArray(),
21
-                'route'        => !empty($route) ? $route . '@' : $this->getControllerNameForAction() . '@'
21
+                'route'        => !empty($route) ? $route.'@' : $this->getControllerNameForAction().'@'
22 22
             ))->render();
23 23
         });
24 24
 
Please login to merge, or discard this patch.
src/Distilleries/Expendable/Http/Controllers/Admin/LoginController.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -28,7 +28,7 @@  discard block
 block discarded – undo
28 28
     {
29 29
         parent::__construct($layoutManager);
30 30
 
31
-        $this->auth      = $auth;
31
+        $this->auth = $auth;
32 32
 
33 33
     }
34 34
 
@@ -38,7 +38,7 @@  discard block
 block discarded – undo
38 38
 
39 39
     public function getLoginRedirect()
40 40
     {
41
-        return redirect()->action('\\' . self::class . '@getIndex');
41
+        return redirect()->action('\\'.self::class.'@getIndex');
42 42
     }
43 43
 
44 44
     public function getIndex()
@@ -208,7 +208,7 @@  discard block
 block discarded – undo
208 208
         );
209 209
 
210 210
 
211
-        $response = $this->broker()->reset($credentials, function ($user, $password) {
211
+        $response = $this->broker()->reset($credentials, function($user, $password) {
212 212
             $user->password = bcrypt($password);
213 213
             $user->save();
214 214
 
@@ -229,7 +229,7 @@  discard block
 block discarded – undo
229 229
                 return redirect()->back()->with('error', trans($response));
230 230
 
231 231
             case \Password::PASSWORD_RESET:
232
-                return redirect()->to(action('\\' . get_class($this) . '@getIndex'));
232
+                return redirect()->to(action('\\'.get_class($this).'@getIndex'));
233 233
         }
234 234
 
235 235
     }
Please login to merge, or discard this patch.
src/Distilleries/Expendable/Http/Router/Router.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -42,7 +42,7 @@
 block discarded – undo
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)
Please login to merge, or discard this patch.
src/Distilleries/Expendable/Http/Middleware/Secure.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -24,7 +24,7 @@
 block discarded – undo
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
             }
Please login to merge, or discard this patch.
src/Distilleries/Expendable/Http/Middleware/Cache.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -18,8 +18,8 @@
 block discarded – undo
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
 
Please login to merge, or discard this patch.
src/Distilleries/Expendable/Http/Middleware/LanguageDetector.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -28,7 +28,7 @@
 block discarded – undo
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]);
Please login to merge, or discard this patch.
src/Distilleries/Expendable/Fondation/Application.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -30,7 +30,7 @@
 block discarded – undo
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
     }
Please login to merge, or discard this patch.
src/Distilleries/Expendable/ExpendableRouteServiceProvider.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -56,9 +56,9 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
 }
Please login to merge, or discard this patch.