Completed
Push — master ( d68ab4...0c873a )
by Anılcan
01:29
created
src/Form.php 2 patches
Unused Use Statements   -1 removed lines patch added patch discarded remove patch
@@ -2,7 +2,6 @@
 block discarded – undo
2 2
 
3 3
 namespace AnilcanCakir\Former;
4 4
 
5
-use AnilcanCakir\Former\Contracts\Form\Factory;
6 5
 use AnilcanCakir\Former\Fields\Field;
7 6
 use Illuminate\Database\Eloquent\Model;
8 7
 
Please login to merge, or discard this patch.
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -13,7 +13,7 @@
 block discarded – undo
13 13
      *
14 14
      * @var Field[]
15 15
      */
16
-    protected $fields = [];
16
+    protected $fields = [ ];
17 17
 
18 18
     /**
19 19
      * The form model.
Please login to merge, or discard this patch.
src/FormerServiceProvider.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -57,8 +57,8 @@
 block discarded – undo
57 57
      */
58 58
     protected function registerFactories()
59 59
     {
60
-        $this->app->singleton(Factory::class, function ($app) {
61
-            return new FormFactory($app['view'], $app['translator'], $app['config']);
60
+        $this->app->singleton(Factory::class, function($app) {
61
+            return new FormFactory($app[ 'view' ], $app[ 'translator' ], $app[ 'config' ]);
62 62
         });
63 63
     }
64 64
 }
Please login to merge, or discard this patch.
src/FormFactory.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -58,7 +58,7 @@
 block discarded – undo
58 58
      * @param array $messages
59 59
      * @return Form
60 60
      */
61
-    public function make(array $rules, Model $model = null, array $attributes = [], array $messages = [])
61
+    public function make(array $rules, Model $model = null, array $attributes = [ ], array $messages = [ ])
62 62
     {
63 63
         $form = new Form();
64 64
 
Please login to merge, or discard this patch.