Completed
Branch master (37b207)
by Helmut
10:03 queued 16s
created
src/Providers/Laravel.php 1 patch
Indentation   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -13,7 +13,7 @@
 block discarded – undo
13 13
      */
14 14
     public function register()
15 15
     {
16
- 		$this->app->bind('Helmut\Forms\Request', 'Helmut\Forms\Requests\Laravel');
16
+            $this->app->bind('Helmut\Forms\Request', 'Helmut\Forms\Requests\Laravel');
17 17
     }
18 18
 
19 19
 }
20 20
\ No newline at end of file
Please login to merge, or discard this patch.
src/Fields/Dropdown/Dropdown.php 1 patch
Braces   +9 added lines, -3 removed lines patch added patch discarded remove patch
@@ -37,12 +37,16 @@  discard block
 block discarded – undo
37 37
 
38 38
     public function setValuesFromDefaults($defaults)
39 39
     {
40
-        if (count($defaults)) $this->value = array_shift($defaults);
40
+        if (count($defaults)) {
41
+            $this->value = array_shift($defaults);
42
+        }
41 43
     }
42 44
 
43 45
     public function setValuesFromModel($model)
44 46
     {
45
-        if (property_exists($model, $this->name)) $this->value = $model->{$this->name};
47
+        if (property_exists($model, $this->name)) {
48
+            $this->value = $model->{$this->name};
49
+        }
46 50
     }   
47 51
 
48 52
     public function setValuesFromRequest($request)
@@ -52,7 +56,9 @@  discard block
 block discarded – undo
52 56
 
53 57
     public function fillModelWithValues($model)
54 58
     {
55
-        if (property_exists($model, $this->name)) $model->{$this->name} = $this->value;
59
+        if (property_exists($model, $this->name)) {
60
+            $model->{$this->name} = $this->value;
61
+        }
56 62
     }   
57 63
 
58 64
     public function validateRequired()
Please login to merge, or discard this patch.
src/Fields/Text/Text.php 1 patch
Braces   +9 added lines, -3 removed lines patch added patch discarded remove patch
@@ -32,12 +32,16 @@  discard block
 block discarded – undo
32 32
 
33 33
     public function setValuesFromDefaults($defaults)
34 34
     {
35
-        if (count($defaults)) $this->value = array_shift($defaults);
35
+        if (count($defaults)) {
36
+            $this->value = array_shift($defaults);
37
+        }
36 38
     }
37 39
 
38 40
     public function setValuesFromModel($model)
39 41
     {
40
-        if (property_exists($model, $this->name)) $this->value = $model->{$this->name};
42
+        if (property_exists($model, $this->name)) {
43
+            $this->value = $model->{$this->name};
44
+        }
41 45
     }
42 46
 
43 47
     public function setValuesFromRequest($request)
@@ -47,7 +51,9 @@  discard block
 block discarded – undo
47 51
 
48 52
     public function fillModelWithValues($model)
49 53
     {
50
-        if (property_exists($model, $this->name)) $model->{$this->name} = $this->value;
54
+        if (property_exists($model, $this->name)) {
55
+            $model->{$this->name} = $this->value;
56
+        }
51 57
     }   
52 58
 
53 59
     public function validateRequired()
Please login to merge, or discard this patch.
src/Fields/Number/lang/es.php 1 patch
Indentation   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -1,7 +1,7 @@
 block discarded – undo
1 1
 <?php 
2 2
 
3 3
 return [
4
-	'validate_min' => 'El tamaño de [field] debe ser de al menos [min].',
5
-	'validate_max' => 'El campo [field] no debe ser mayor a [max].',
6
-	'validate_between' => 'El campo [field] tiene que estar entre [min] - [max].',
4
+    'validate_min' => 'El tamaño de [field] debe ser de al menos [min].',
5
+    'validate_max' => 'El campo [field] no debe ser mayor a [max].',
6
+    'validate_between' => 'El campo [field] tiene que estar entre [min] - [max].',
7 7
 ];
8 8
\ No newline at end of file
Please login to merge, or discard this patch.
src/Fields/Number/lang/en.php 1 patch
Indentation   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -1,7 +1,7 @@
 block discarded – undo
1 1
 <?php 
2 2
 
3 3
 return [
4
-	'validate_min' => 'The [field] field must be a minimum of [min].',
5
-	'validate_max' => 'The [field] field must be a maximum of [min].',
6
-	'validate_between' => 'The [field] field must be between [min] and [max].',
4
+    'validate_min' => 'The [field] field must be a minimum of [min].',
5
+    'validate_max' => 'The [field] field must be a maximum of [min].',
6
+    'validate_between' => 'The [field] field must be between [min] and [max].',
7 7
 ];
8 8
\ No newline at end of file
Please login to merge, or discard this patch.
src/Fields/Number/Number.php 1 patch
Braces   +9 added lines, -3 removed lines patch added patch discarded remove patch
@@ -32,12 +32,16 @@  discard block
 block discarded – undo
32 32
 
33 33
     public function setValuesFromDefaults($defaults)
34 34
     {
35
-        if (count($this->defaults)) $this->value = array_shift($this->defaults);
35
+        if (count($this->defaults)) {
36
+            $this->value = array_shift($this->defaults);
37
+        }
36 38
     }
37 39
 
38 40
     public function setValuesFromModel($model)
39 41
     {
40
-        if (property_exists($model, $this->name)) $this->value = $model->{$this->name};
42
+        if (property_exists($model, $this->name)) {
43
+            $this->value = $model->{$this->name};
44
+        }
41 45
     }
42 46
 
43 47
     public function setValuesFromRequest($request)
@@ -47,7 +51,9 @@  discard block
 block discarded – undo
47 51
 
48 52
     public function fillModelWithValues($model)
49 53
     {
50
-        if (property_exists($model, $this->name)) $model->{$this->name} = $this->value;
54
+        if (property_exists($model, $this->name)) {
55
+            $model->{$this->name} = $this->value;
56
+        }
51 57
     }   
52 58
 
53 59
     public function validate()
Please login to merge, or discard this patch.
src/Fields/ParagraphText/ParagraphText.php 1 patch
Braces   +9 added lines, -3 removed lines patch added patch discarded remove patch
@@ -25,12 +25,16 @@  discard block
 block discarded – undo
25 25
 
26 26
     public function setValuesFromDefaults($defaults)
27 27
     {
28
-        if (count($defaults)) $this->value = array_shift($defaults);
28
+        if (count($defaults)) {
29
+            $this->value = array_shift($defaults);
30
+        }
29 31
     }
30 32
 
31 33
     public function setValuesFromModel($model)
32 34
     {
33
-        if (property_exists($model, $this->name)) $this->value = $model->{$this->name};
35
+        if (property_exists($model, $this->name)) {
36
+            $this->value = $model->{$this->name};
37
+        }
34 38
     }
35 39
 
36 40
     public function setValuesFromRequest($request)
@@ -40,7 +44,9 @@  discard block
 block discarded – undo
40 44
 
41 45
     public function fillModelWithValues($model)
42 46
     {
43
-        if (property_exists($model, $this->name)) $model->{$this->name} = $this->value;
47
+        if (property_exists($model, $this->name)) {
48
+            $model->{$this->name} = $this->value;
49
+        }
44 50
     }   
45 51
 
46 52
     public function validateRequired()
Please login to merge, or discard this patch.
src/Fields/Name/lang/es.php 1 patch
Indentation   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -1,6 +1,6 @@
 block discarded – undo
1 1
 <?php 
2 2
 
3 3
 return [
4
-	'placeholder_first' => 'Nombre',
5
-	'placeholder_surname' => 'Apellido',
4
+    'placeholder_first' => 'Nombre',
5
+    'placeholder_surname' => 'Apellido',
6 6
 ];
7 7
\ No newline at end of file
Please login to merge, or discard this patch.
src/Fields/Name/lang/en.php 1 patch
Indentation   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -1,6 +1,6 @@
 block discarded – undo
1 1
 <?php 
2 2
 
3 3
 return [
4
-	'placeholder_first' => 'First',
5
-	'placeholder_surname' => 'Surname',
4
+    'placeholder_first' => 'First',
5
+    'placeholder_surname' => 'Surname',
6 6
 ];
7 7
\ No newline at end of file
Please login to merge, or discard this patch.