Completed
Push — master ( a5f4f4...0576d5 )
by Askupa
02:00
created
components/number/controller.php 2 patches
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -25,8 +25,8 @@  discard block
 block discarded – undo
25 25
             'required'      => false,
26 26
             'readonly'      => false,
27 27
             'default'       => null,
28
-            'filter'        => array( $this, 'filter' ),
29
-            'validation'    => array( $this, 'validation' )
28
+            'filter'        => array($this, 'filter'),
29
+            'validation'    => array($this, 'validation')
30 30
         );
31 31
     }
32 32
     
@@ -35,17 +35,17 @@  discard block
 block discarded – undo
35 35
         return floatval($v);
36 36
     }
37 37
     
38
-    public function validation($v,&$e)
38
+    public function validation($v, &$e)
39 39
     {
40 40
         $max = $this->max;
41 41
         $min = $this->min;
42 42
         
43
-        if(null !== $max && $v > $max)
43
+        if (null !== $max && $v > $max)
44 44
         {
45 45
             $e = "must be less than {$max}";
46 46
         }
47 47
 
48
-        if(null !== $min && $v < $min) 
48
+        if (null !== $min && $v < $min) 
49 49
         {
50 50
             $e = "must be greater than {$min}";
51 51
         }
Please login to merge, or discard this patch.
Indentation   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -8,9 +8,9 @@
 block discarded – undo
8 8
 class Component_number
9 9
 extends AbstractComponent
10 10
 implements ValueComponentInterface, 
11
-           DisableableComponentInterface,
12
-           FilterableComponentInterface,
13
-           ValidatableComponentInterface
11
+            DisableableComponentInterface,
12
+            FilterableComponentInterface,
13
+            ValidatableComponentInterface
14 14
 {
15 15
     public $component_type = 'number';
16 16
     
Please login to merge, or discard this patch.
components/textarea/controller.php 1 patch
Indentation   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -8,9 +8,9 @@
 block discarded – undo
8 8
 class Component_textarea
9 9
 extends AbstractComponent
10 10
 implements ValueComponentInterface, 
11
-           DisableableComponentInterface,
12
-           FilterableComponentInterface,
13
-           ValidatableComponentInterface
11
+            DisableableComponentInterface,
12
+            FilterableComponentInterface,
13
+            ValidatableComponentInterface
14 14
 {
15 15
     public $component_type = 'textarea';
16 16
     
Please login to merge, or discard this patch.
components/text/controller.php 1 patch
Indentation   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -8,9 +8,9 @@
 block discarded – undo
8 8
 class Component_text
9 9
 extends AbstractComponent
10 10
 implements ValueComponentInterface, 
11
-           DisableableComponentInterface,
12
-           FilterableComponentInterface,
13
-           ValidatableComponentInterface
11
+            DisableableComponentInterface,
12
+            FilterableComponentInterface,
13
+            ValidatableComponentInterface
14 14
 {
15 15
     public $component_type = 'text';
16 16
     
Please login to merge, or discard this patch.
components/radio/controller.php 1 patch
Indentation   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -8,7 +8,7 @@
 block discarded – undo
8 8
 class Component_radio
9 9
 extends AbstractComponent
10 10
 implements ValueComponentInterface, 
11
-           DisableableComponentInterface
11
+            DisableableComponentInterface
12 12
 {
13 13
     public $component_type = 'radio';
14 14
     
Please login to merge, or discard this patch.