Completed
Push — master ( 1b00cc...60d51f )
by Maxime
06:38
created
src/Distilleries/FormBuilder/FormBuilderServiceProvider.php 2 patches
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -149,7 +149,7 @@
 block discarded – undo
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)
Please login to merge, or discard this patch.
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -21,13 +21,13 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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',
Please login to merge, or discard this patch.
src/Distilleries/FormBuilder/FormValidator.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -75,7 +75,7 @@
 block discarded – undo
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
                     {
Please login to merge, or discard this patch.
src/views/form/partial/form.blade.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -1,6 +1,6 @@
 block discarded – undo
1 1
 <?php
2 2
 
3
-if(empty($formOptions['url'])){
3
+if (empty($formOptions['url'])) {
4 4
     $formOptions['url'] = config('app.url').'/'.request()->path();
5 5
 }
6 6
 
Please login to merge, or discard this patch.