@@ -149,7 +149,7 @@ |
||
| 149 | 149 | |
| 150 | 150 | /** |
| 151 | 151 | * Check if an alias already exists in the IOC |
| 152 | - * @param $alias |
|
| 152 | + * @param string $alias |
|
| 153 | 153 | * @return bool |
| 154 | 154 | */ |
| 155 | 155 | private function aliasExists($alias) |
@@ -21,13 +21,13 @@ discard block |
||
| 21 | 21 | $this->registerFormIfHeeded(); |
| 22 | 22 | |
| 23 | 23 | $this->mergeConfigFrom( |
| 24 | - __DIR__ . '/../../config/config.php', |
|
| 24 | + __DIR__.'/../../config/config.php', |
|
| 25 | 25 | 'laravel-form-builder' |
| 26 | 26 | ); |
| 27 | 27 | |
| 28 | 28 | $this->registerFormHelper(); |
| 29 | 29 | |
| 30 | - $this->app->singleton('laravel-form-builder', function ($app) { |
|
| 30 | + $this->app->singleton('laravel-form-builder', function($app) { |
|
| 31 | 31 | |
| 32 | 32 | return new \Kris\LaravelFormBuilder\FormBuilder($app, $app['laravel-form-helper']); |
| 33 | 33 | }); |
@@ -88,7 +88,7 @@ discard block |
||
| 88 | 88 | return $form->setSessionStore($app['session.store']); |
| 89 | 89 | }); |
| 90 | 90 | |
| 91 | - if (! $this->aliasExists('Form')) { |
|
| 91 | + if (!$this->aliasExists('Form')) { |
|
| 92 | 92 | |
| 93 | 93 | AliasLoader::getInstance()->alias( |
| 94 | 94 | 'Form', |
@@ -111,7 +111,7 @@ discard block |
||
| 111 | 111 | return new HtmlBuilder($app['url']); |
| 112 | 112 | }); |
| 113 | 113 | |
| 114 | - if (! $this->aliasExists('Html')) { |
|
| 114 | + if (!$this->aliasExists('Html')) { |
|
| 115 | 115 | |
| 116 | 116 | AliasLoader::getInstance()->alias( |
| 117 | 117 | 'Html', |
@@ -75,7 +75,7 @@ |
||
| 75 | 75 | if ($field->getType() == 'form') |
| 76 | 76 | {
|
| 77 | 77 | |
| 78 | - $validation = Validator::make($this->formHelper->getRequest()->get($field->getName(),[]), $field->getClass()->getRules()); |
|
| 78 | + $validation = Validator::make($this->formHelper->getRequest()->get($field->getName(), []), $field->getClass()->getRules()); |
|
| 79 | 79 | |
| 80 | 80 | if ($validation->fails()) |
| 81 | 81 | {
|