@@ -45,7 +45,7 @@ |
||
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 | /** |
@@ -14,11 +14,11 @@ |
||
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 |
@@ -20,7 +20,7 @@ |
||
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 | } |
@@ -61,7 +61,7 @@ |
||
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); |
@@ -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 |
@@ -28,7 +28,7 @@ discard block |
||
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 |
||
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 |
||
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 |
||
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')]); |
@@ -26,7 +26,7 @@ discard block |
||
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 |
||
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 |
@@ -18,7 +18,7 @@ |
||
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 |