Completed
Push — master ( dc5ba7...de7bc1 )
by Maxime
113:57 queued 110:40
created
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.
src/views/form/partial/tag.blade.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -14,7 +14,7 @@  discard block
 block discarded – undo
14 14
                 @if ($showField)
15 15
                     @if (isset($noEdit) and $noEdit === true)
16 16
                         <?php
17
-                        if (! empty($options['default_value'])) {
17
+                        if (!empty($options['default_value'])) {
18 18
                             $options['default_value'] = is_string($options['default_value']) ? explode(',', $options['default_value']) : $options['default_value'];
19 19
                         }
20 20
                         ?>
@@ -24,7 +24,7 @@  discard block
 block discarded – undo
24 24
                             @endforeach
25 25
                         @endif
26 26
                     @else
27
-                        <?php $options['class'] = isset($options['class']) ? $options['class'] . ' tags ' : ' tags '; ?>
27
+                        <?php $options['class'] = isset($options['class']) ? $options['class'].' tags ' : ' tags '; ?>
28 28
                         {!! Form::input($type, $name, $options['default_value'], $options['attr']) !!}
29 29
                     @endif
30 30
                 @endif
Please login to merge, or discard this patch.
src/views/form/partial/tinymce.blade.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -10,7 +10,7 @@
 block discarded – undo
10 10
         @endif
11 11
 
12 12
         <div class="col-md-8">
13
-            <?php $options['attr']['class'] .= ' ' . $id; ?>
13
+            <?php $options['attr']['class'] .= ' '.$id; ?>
14 14
             @if ($showField)
15 15
                 @if (isset($noEdit) && ($noEdit === true))
16 16
                     {!! $options['default_value'] !!}
Please login to merge, or discard this patch.
src/Distilleries/FormBuilder/FormValidator.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -76,7 +76,7 @@  discard block
 block discarded – undo
76 76
                 if ($field->getType() == 'form')
77 77
                 {
78 78
 
79
-                    $validation = Validator::make($this->formHelper->getRequest()->get($field->getName(),[]), $field->getClass()->getRules());
79
+                    $validation = Validator::make($this->formHelper->getRequest()->get($field->getName(), []), $field->getClass()->getRules());
80 80
 
81 81
                     if ($validation->fails())
82 82
                     {
@@ -90,7 +90,7 @@  discard block
 block discarded – undo
90 90
 
91 91
             $validation = Validator::make($this->formHelper->getRequest()->all(), $this->getRules());
92 92
 
93
-            $validation->after(function ($validator) {
93
+            $validation->after(function($validator) {
94 94
                 $this->afterValidate($validator, $this->formHelper->getRequest()->all());
95 95
             });
96 96
 
Please login to merge, or discard this patch.
src/Distilleries/FormBuilder/FormBuilderServiceProvider.php 1 patch
Spacing   +13 added lines, -13 removed lines patch added patch discarded remove patch
@@ -15,13 +15,13 @@  discard block
 block discarded – undo
15 15
     {
16 16
         parent::boot();
17 17
 
18
-        $this->loadViewsFrom(__DIR__ . '/../../views', 'form-builder');
19
-        $this->loadTranslationsFrom(__DIR__ . '/../../lang', 'form-builder');
18
+        $this->loadViewsFrom(__DIR__.'/../../views', 'form-builder');
19
+        $this->loadTranslationsFrom(__DIR__.'/../../lang', 'form-builder');
20 20
 
21
-        $this->publishes([__DIR__ . '/../../config/config.php' => config_path('form-builder.php')]);
22
-        $this->publishes([__DIR__ . '/../../views' => base_path('resources/views/vendor/form-builder')], 'views');
21
+        $this->publishes([__DIR__.'/../../config/config.php' => config_path('form-builder.php')]);
22
+        $this->publishes([__DIR__.'/../../views' => base_path('resources/views/vendor/form-builder')], 'views');
23 23
 
24
-        $this->mergeConfigFrom(__DIR__ . '/../../config/config.php', 'form-builder');
24
+        $this->mergeConfigFrom(__DIR__.'/../../config/config.php', 'form-builder');
25 25
         $this->registerCloudinaryConfig();
26 26
     }
27 27
 
@@ -32,11 +32,11 @@  discard block
 block discarded – undo
32 32
         $this->registerHtmlIfNeeded();
33 33
         $this->registerFormIfHeeded();
34 34
 
35
-        $this->mergeConfigFrom(__DIR__ . '/../../config/config.php', 'laravel-form-builder');
35
+        $this->mergeConfigFrom(__DIR__.'/../../config/config.php', 'laravel-form-builder');
36 36
 
37 37
         $this->registerFormHelper();
38 38
 
39
-        $this->app->singleton('laravel-form-builder', function ($app) {
39
+        $this->app->singleton('laravel-form-builder', function($app) {
40 40
             return new FormBuilder($app, $app['laravel-form-helper']);
41 41
         });
42 42
 
@@ -47,7 +47,7 @@  discard block
 block discarded – undo
47 47
 
48 48
     protected function registerFormHelper()
49 49
     {
50
-        $this->app->singleton('laravel-form-helper', function ($app) {
50
+        $this->app->singleton('laravel-form-helper', function($app) {
51 51
             $config = $app['config']->get('form-builder');
52 52
             return new FormHelper($app['view'], $app['request'], $config);
53 53
         });
@@ -57,8 +57,8 @@  discard block
 block discarded – undo
57 57
 
58 58
     private function registerHtmlIfNeeded()
59 59
     {
60
-        if (! $this->app->offsetExists('html')) {
61
-            $this->app->singleton('html', function ($app) {
60
+        if (!$this->app->offsetExists('html')) {
61
+            $this->app->singleton('html', function($app) {
62 62
                 return new LaravelHtml($app['url'], $app['view']);
63 63
             });
64 64
 
@@ -68,8 +68,8 @@  discard block
 block discarded – undo
68 68
 
69 69
     private function registerFormIfHeeded()
70 70
     {
71
-        if (! $this->app->offsetExists('form')) {
72
-            $this->app->singleton('form', function ($app) {
71
+        if (!$this->app->offsetExists('form')) {
72
+            $this->app->singleton('form', function($app) {
73 73
                 $form = new LaravelForm($app['html'], $app['url'], $app['view'], $app['session.store']->token());
74 74
                 return $form->setSessionStore($app['session.store']);
75 75
             });
@@ -89,7 +89,7 @@  discard block
 block discarded – undo
89 89
 
90 90
     private function registerAliasIfNotExists($alias, $class)
91 91
     {
92
-        if (! array_key_exists($alias, AliasLoader::getInstance()->getAliases())) {
92
+        if (!array_key_exists($alias, AliasLoader::getInstance()->getAliases())) {
93 93
             AliasLoader::getInstance()->alias($alias, $class);
94 94
         }
95 95
     }
Please login to merge, or discard this patch.