Completed
Push — master ( c0d96b...f1fd23 )
by Maxime
07:29
created
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/PermissionController.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -26,7 +26,7 @@  discard block
 block discarded – undo
26 26
 
27 27
     public function getIndex()
28 28
     {
29
-        return redirect()->to(action('\\' . get_class($this) . '@getEdit'));
29
+        return redirect()->to(action('\\'.get_class($this).'@getEdit'));
30 30
     }
31 31
 
32 32
     // ------------------------------------------------------------------------------------------------
@@ -58,7 +58,7 @@  discard block
 block discarded – undo
58 58
         }
59 59
 
60 60
 
61
-        return redirect()->to(action('\\' . get_class($this) . '@getIndex'));
61
+        return redirect()->to(action('\\'.get_class($this).'@getIndex'));
62 62
 
63 63
     }
64 64
 }
65 65
\ No newline at end of file
Please login to merge, or discard this patch.
src/Distilleries/Expendable/Http/Controllers/Admin/Base/ErrorController.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -18,7 +18,7 @@
 block discarded – undo
18 18
 
19 19
 
20 20
         $this->layoutManager->add([
21
-            'class_layout'=>$class . '-full-page',
21
+            'class_layout'=>$class.'-full-page',
22 22
             'content'=>$content,
23 23
         ]);
24 24
 
Please login to merge, or discard this patch.
src/Distilleries/Expendable/Models/LockableTrait.php 1 patch
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -18,7 +18,7 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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
     }
Please login to merge, or discard this patch.
src/Distilleries/Expendable/Http/Middleware/XSS.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -13,7 +13,7 @@
 block discarded – undo
13 13
 
14 14
         $input = $request->all();
15 15
 
16
-        array_walk_recursive($input, function (&$input) {
16
+        array_walk_recursive($input, function(&$input) {
17 17
 
18 18
             $input = (new Security)->xss_clean($input);
19 19
 
Please login to merge, or discard this patch.