Completed
Push — master ( b38101...972d90 )
by Maxime
16:58
created
src/Distilleries/Expendable/Forms/Component/ComponentForm.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -46,11 +46,11 @@  discard block
 block discarded – undo
46 46
     {
47 47
         $allModels = [
48 48
             [
49
-                'path'      => app_path() . DIRECTORY_SEPARATOR,
49
+                'path'      => app_path().DIRECTORY_SEPARATOR,
50 50
                 'namespace' => '{{app}}',
51 51
             ],
52 52
             [
53
-                'path'      => __DIR__ . DIRECTORY_SEPARATOR . '..' . DIRECTORY_SEPARATOR . '..' . DIRECTORY_SEPARATOR . 'Models' . DIRECTORY_SEPARATOR,
53
+                'path'      => __DIR__.DIRECTORY_SEPARATOR.'..'.DIRECTORY_SEPARATOR.'..'.DIRECTORY_SEPARATOR.'Models'.DIRECTORY_SEPARATOR,
54 54
                 'namespace' => 'Distilleries\\Expendable\\Models\\',
55 55
             ],
56 56
         ];
@@ -63,7 +63,7 @@  discard block
 block discarded – undo
63 63
             {
64 64
                 $choice                               = explode('/', $model);
65 65
                 $model                                = preg_replace('/.php/i', '', last($choice));
66
-                $choices[$config['namespace'] . $model] = $model;
66
+                $choices[$config['namespace'].$model] = $model;
67 67
             }
68 68
         }
69 69
 
Please login to merge, or discard this patch.
src/Distilleries/Expendable/Forms/User/UserForm.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -77,7 +77,7 @@
 block discarded – undo
77 77
     protected function getUpdateRules()
78 78
     {
79 79
         $key                           = \Request::get($this->model->getKeyName());
80
-        static::$rules_update['email'] = 'required|email|unique:users,email,' . $key;
80
+        static::$rules_update['email'] = 'required|email|unique:users,email,'.$key;
81 81
 
82 82
         return parent::getUpdateRules();
83 83
     }
Please login to merge, or discard this patch.
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/Models/Translation.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -53,8 +53,8 @@
 block discarded – undo
53 53
 
54 54
     public function scopeByElement($query, Model $model)
55 55
     {
56
-        return $query->where($this->getTable() . '.' . $this->getModelColumn(), '=', $model->getTable())
57
-                     ->where($this->getTable() . '.' . $this->getIdSourceColumn(), '=', $model->getKey());
56
+        return $query->where($this->getTable().'.'.$this->getModelColumn(), '=', $model->getTable())
57
+                     ->where($this->getTable().'.'.$this->getIdSourceColumn(), '=', $model->getKey());
58 58
     }
59 59
 
60 60
 }
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.