Completed
Push — master ( 50b64d...4c6e5d )
by Maxime
13:07 queued 09:29
created
src/Distilleries/Expendable/Forms/Language/LanguageForm.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -44,7 +44,7 @@
 block discarded – undo
44 44
     protected function getUpdateRules()
45 45
     {
46 46
         $key                  = \Request::get($this->model->getKeyName());
47
-        static::$rules['iso'] = 'required|unique:languages,iso,' . $key;
47
+        static::$rules['iso'] = 'required|unique:languages,iso,'.$key;
48 48
 
49 49
         return parent::getUpdateRules();
50 50
     }
Please login to merge, or discard this patch.
src/Distilleries/Expendable/Models/StatusTrait.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -45,7 +45,7 @@
 block discarded – undo
45 45
      */
46 46
     public function getQualifiedStatusColumn()
47 47
     {
48
-        return $this->getTable() . '.' . $this->getStatusColumn();
48
+        return $this->getTable().'.'.$this->getStatusColumn();
49 49
     }
50 50
 
51 51
     /**
Please login to merge, or discard this patch.
src/Distilleries/Expendable/Models/Language.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -14,11 +14,11 @@
 block discarded – undo
14 14
 
15 15
     public function scopeWithoutCurrentLanguage($query)
16 16
     {
17
-        return $query->where($this->getTable().'.iso','<>',app()->getLocale());
17
+        return $query->where($this->getTable().'.iso', '<>', app()->getLocale());
18 18
     }
19 19
 
20 20
     public function scopeWithTranslationElement($query)
21 21
     {
22
-        return $query->where($this->getTable().'.iso','<>',app()->getLocale());
22
+        return $query->where($this->getTable().'.iso', '<>', app()->getLocale());
23 23
     }
24 24
 }
25 25
\ No newline at end of file
Please login to merge, or discard this patch.
src/Distilleries/Expendable/Listeners/BaseListener.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -20,7 +20,7 @@
 block discarded – undo
20 20
     {
21 21
         foreach ($this->events as $name => $event)
22 22
         {
23
-            Event::listen($name, get_class($this) . '@' . $event['action'], $event['priority']);
23
+            Event::listen($name, get_class($this).'@'.$event['action'], $event['priority']);
24 24
         }
25 25
 
26 26
     }
Please login to merge, or discard this patch.
src/Distilleries/Expendable/Helpers/StaticLabel.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -61,7 +61,7 @@
 block discarded – undo
61 61
 
62 62
         foreach ($dataActions as $action)
63 63
         {
64
-            $dataResult[$action] = trans('expendable::mail.' . $action);
64
+            $dataResult[$action] = trans('expendable::mail.'.$action);
65 65
         }
66 66
 
67 67
         return self::getLabel($dataResult, $id);
Please login to merge, or discard this patch.
src/Distilleries/Expendable/Console/ComponentMakeCommand.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -227,6 +227,6 @@
 block discarded – undo
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
Please login to merge, or discard this patch.
src/Distilleries/Expendable/Console/Lib/Generators/ComponentGenerator.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -8,7 +8,7 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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
 
Please login to merge, or discard this patch.
src/Distilleries/Expendable/Http/Controllers/Admin/ComponentController.php 1 patch
Spacing   +7 added lines, -7 removed lines patch added patch discarded remove patch
@@ -28,7 +28,7 @@  discard block
 block discarded – undo
28 28
 
29 29
     public function getIndex()
30 30
     {
31
-        return redirect()->to(action('\\' . get_class($this) . '@getEdit'));
31
+        return redirect()->to(action('\\'.get_class($this).'@getEdit'));
32 32
     }
33 33
 
34 34
 
@@ -70,9 +70,9 @@  discard block
 block discarded – undo
70 70
         }
71 71
 
72 72
         $libelle            = $request->get('libelle');
73
-        $libelle_form       = $libelle . 'Form';
74
-        $libelle_datatable  = $libelle . 'Datatable';
75
-        $libelle_controller = $libelle . 'Controller';
73
+        $libelle_form       = $libelle.'Form';
74
+        $libelle_datatable  = $libelle.'Datatable';
75
+        $libelle_controller = $libelle.'Controller';
76 76
         $model              = $request->get('models');
77 77
         $states             = $request->get('state');
78 78
 
@@ -82,14 +82,14 @@  discard block
 block discarded – undo
82 82
             {
83 83
                 $this->artisan->call('datatable:make', [
84 84
                     '--fields' => $request->get('colon_datatable'),
85
-                    'name'     => 'Datatables/' . $libelle_datatable
85
+                    'name'     => 'Datatables/'.$libelle_datatable
86 86
                 ]);
87 87
             } else if (strpos($state, 'FormStateContract') !== false)
88 88
             {
89 89
 
90 90
                 $this->artisan->call('form:make', [
91 91
                     '--fields' => $request->get('fields_form'),
92
-                    'name'     => 'Forms/' . $libelle_form
92
+                    'name'     => 'Forms/'.$libelle_form
93 93
                 ]);
94 94
             }
95 95
         }
@@ -99,7 +99,7 @@  discard block
 block discarded – undo
99 99
             '--model'     => $model,
100 100
             '--datatable' => $libelle_datatable,
101 101
             '--form'      => $libelle_form,
102
-            'name'        => 'Http/Controllers/Admin/' . $libelle_controller
102
+            'name'        => 'Http/Controllers/Admin/'.$libelle_controller
103 103
         ]);
104 104
 
105 105
         return redirect()->back()->with(Message::MESSAGE, [trans('expendable::success.generated')]);
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()
@@ -211,7 +211,7 @@  discard block
 block discarded – undo
211 211
 
212 212
         $broker = $this->getBroker();
213 213
 
214
-        $response = \Password::broker($broker)->reset($credentials, function ($user, $password) {
214
+        $response = \Password::broker($broker)->reset($credentials, function($user, $password) {
215 215
             $user->password = bcrypt($password);
216 216
             $user->save();
217 217
 
@@ -232,7 +232,7 @@  discard block
 block discarded – undo
232 232
                 return redirect()->back()->with('error', trans($response));
233 233
 
234 234
             case \Password::PASSWORD_RESET:
235
-                return redirect()->to(action('\\' . get_class($this) . '@getIndex'));
235
+                return redirect()->to(action('\\'.get_class($this).'@getIndex'));
236 236
         }
237 237
 
238 238
     }
Please login to merge, or discard this patch.