Completed
Push — master ( 188ffb...31684b )
by Maxime
02:48
created
src/Distilleries/Expendable/Http/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/Backend/LanguageController.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
     public function getChangeLang($locale = null)
20 20
     {
21
-        session()->put('language',$locale);
21
+        session()->put('language', $locale);
22 22
         app()->setLocale($locale);
23 23
         return redirect()->back();
24 24
     }
Please login to merge, or discard this patch.
Distilleries/Expendable/Http/Controllers/Backend/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'     => 'Http/Datatables/' . $libelle_datatable
85
+                    'name'     => 'Http/Datatables/'.$libelle_datatable
86 86
                 ]);
87 87
             } else if (strpos($state, 'FormStateContract') !== false)
88 88
             {
89 89
 
90 90
                 $this->artisan->call('make:form', [
91 91
                     '--fields' => $request->get('fields_form'),
92
-                    'name'     => 'Http/Forms/' . $libelle_form
92
+                    'name'     => 'Http/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/config/config.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -4,7 +4,7 @@
 block discarded – undo
4 4
     'login_uri'           => 'admin/login',
5 5
     'logout_action'       => 'Distilleries\Expendable\Http\Controllers\Backend\LoginController@getLogout',
6 6
     'admin_base_uri'      => 'admin',
7
-    'config_file_assets'  => base_path() . '/package.json',
7
+    'config_file_assets'  => base_path().'/package.json',
8 8
     'folder_whitelist'    => [
9 9
         'moximanager'
10 10
     ],
Please login to merge, or discard this patch.