@@ -2,8 +2,6 @@ |
||
| 2 | 2 | |
| 3 | 3 | use Distilleries\Expendable\Exporter\CsvExporter; |
| 4 | 4 | use Distilleries\Expendable\Exporter\ExcelExporter; |
| 5 | -use Distilleries\Expendable\Exporter\PdfExporter; |
|
| 6 | -use Distilleries\Expendable\Http\Router\Router; |
|
| 7 | 5 | use Distilleries\Expendable\Importer\CsvImporter; |
| 8 | 6 | use Distilleries\Expendable\Importer\XlsImporter; |
| 9 | 7 | use Distilleries\Expendable\Layouts\LayoutManager; |
@@ -10,15 +10,15 @@ |
||
| 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 | |
@@ -28,7 +28,7 @@ discard block |
||
| 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 |
||
| 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() |
@@ -208,7 +208,7 @@ discard block |
||
| 208 | 208 | ); |
| 209 | 209 | |
| 210 | 210 | |
| 211 | - $response = $this->broker()->reset($credentials, function ($user, $password) { |
|
| 211 | + $response = $this->broker()->reset($credentials, function($user, $password) { |
|
| 212 | 212 | $user->password = bcrypt($password); |
| 213 | 213 | $user->save(); |
| 214 | 214 | |
@@ -229,7 +229,7 @@ discard block |
||
| 229 | 229 | return redirect()->back()->with('error', trans($response)); |
| 230 | 230 | |
| 231 | 231 | case \Password::PASSWORD_RESET: |
| 232 | - return redirect()->to(action('\\' . get_class($this) . '@getIndex')); |
|
| 232 | + return redirect()->to(action('\\'.get_class($this).'@getIndex')); |
|
| 233 | 233 | } |
| 234 | 234 | |
| 235 | 235 | } |
@@ -42,7 +42,7 @@ |
||
| 42 | 42 | // First, we will check to see if a controller prefix has been registered in |
| 43 | 43 | // the route group. If it has, we will need to prefix it before trying to |
| 44 | 44 | // reflect into the class instance and pull out the method for routing. |
| 45 | - if (! empty($this->groupStack)) { |
|
| 45 | + if (!empty($this->groupStack)) { |
|
| 46 | 46 | $prepended = $this->prependGroupUses($controller); |
| 47 | 47 | } |
| 48 | 48 | $routable = (new ControllerInspector) |
@@ -57,7 +57,7 @@ discard block |
||
| 57 | 57 | } |
| 58 | 58 | |
| 59 | 59 | |
| 60 | - protected function registerRouter(){ |
|
| 60 | + protected function registerRouter() { |
|
| 61 | 61 | |
| 62 | 62 | $this->app['router'] = $this->app->share(function($app) |
| 63 | 63 | { |
@@ -81,9 +81,9 @@ discard block |
||
| 81 | 81 | \Route::group([ |
| 82 | 82 | 'middleware' => 'web', |
| 83 | 83 | 'namespace' => $this->namespace, |
| 84 | - ], function ($router) { |
|
| 84 | + ], function($router) { |
|
| 85 | 85 | |
| 86 | - require __DIR__ . '/../routes/web.php'; |
|
| 86 | + require __DIR__.'/../routes/web.php'; |
|
| 87 | 87 | }); |
| 88 | 88 | } |
| 89 | 89 | |
@@ -100,8 +100,8 @@ discard block |
||
| 100 | 100 | 'middleware' => 'api', |
| 101 | 101 | 'namespace' => $this->namespace, |
| 102 | 102 | 'prefix' => 'api', |
| 103 | - ], function ($router) { |
|
| 104 | - require __DIR__ . '/../routes/api.php'; |
|
| 103 | + ], function($router) { |
|
| 104 | + require __DIR__.'/../routes/api.php'; |
|
| 105 | 105 | }); |
| 106 | 106 | } |
| 107 | 107 | } |