Completed
Push — master ( 0da9d4...b286ff )
by Adrian
04:05
created
src/Element/Input/Select.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -71,7 +71,7 @@  discard block
 block discarded – undo
71 71
             $this->getName(),
72 72
             'callback',
73 73
             array(
74
-                Callback::OPTION_CALLBACK => array( $this, 'filterValue' )
74
+                Callback::OPTION_CALLBACK => array($this, 'filterValue')
75 75
             )
76 76
         );
77 77
     }
@@ -86,7 +86,7 @@  discard block
 block discarded – undo
86 86
      */
87 87
     function filterValue($value, $valueIdentifier = null)
88 88
     {
89
-        if ( ! $value) {
89
+        if (!$value) {
90 90
             return null;
91 91
         }
92 92
         $allowedValues = array_keys($this->getOptions());
Please login to merge, or discard this patch.
src/Traits/HasDataTrait.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -9,7 +9,7 @@
 block discarded – undo
9 9
 
10 10
     protected function ensureData()
11 11
     {
12
-        if ( ! isset($this[Specs::DATA])) {
12
+        if (!isset($this[Specs::DATA])) {
13 13
             $this[Specs::DATA] = new DataContainer();
14 14
         }
15 15
     }
Please login to merge, or discard this patch.
src/Traits/HasFiltersTrait.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -42,12 +42,12 @@
 block discarded – undo
42 42
     protected function prepareFiltrator(InputFilter $input)
43 43
     {
44 44
         $filters = $this->getFilters();
45
-        if ( ! $filters || ! is_array($filters)) {
45
+        if (!$filters || !is_array($filters)) {
46 46
             return;
47 47
         }
48 48
         $filtrator = $input->getFiltrator();
49 49
         foreach ($filters as $filter) {
50
-            $params = is_array($filter) ? $filter : array( $filter );
50
+            $params = is_array($filter) ? $filter : array($filter);
51 51
             if (isset($params[0])) {
52 52
                 $filtrator->add($this->getName(), $params[0], @$params[1], @$params[2], @$params[3]);
53 53
             }
Please login to merge, or discard this patch.
src/Traits/HasValidationRulesTrait.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -41,7 +41,7 @@
 block discarded – undo
41 41
     protected function prepareValidator(InputFilter $input)
42 42
     {
43 43
         $validationRules = $this->getValidationRules();
44
-        if ( ! $validationRules || ! is_array($validationRules)) {
44
+        if (!$validationRules || !is_array($validationRules)) {
45 45
             return;
46 46
         }
47 47
         $validator = $input->getValidator();
Please login to merge, or discard this patch.