Test Setup Failed
Branch master (d874c5)
by Lucas
18:59
created
src/LoginCidadao/OpenIDBundle/Controller/SessionManagementController.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -59,7 +59,7 @@
 block discarded – undo
59 59
         }
60 60
 
61 61
         $result = array_unique(
62
-            array_map(function ($value) {
62
+            array_map(function($value) {
63 63
                 if ($value === null) {
64 64
                     return;
65 65
                 }
Please login to merge, or discard this patch.
src/LoginCidadao/ValidationBundle/Validator/Constraints/CEP.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -15,7 +15,7 @@
 block discarded – undo
15 15
 
16 16
     public function validatedBy()
17 17
     {
18
-        return get_class($this) . 'Validator';
18
+        return get_class($this).'Validator';
19 19
     }
20 20
 
21 21
 }
Please login to merge, or discard this patch.
src/LoginCidadao/ValidationBundle/Validator/Constraints/CEPValidator.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -35,7 +35,7 @@  discard block
 block discarded – undo
35 35
 
36 36
     public function validate($value, Constraint $constraint)
37 37
     {
38
-        if (!isset($value) || $value  === null || !strlen(trim($value))) {
38
+        if (!isset($value) || $value === null || !strlen(trim($value))) {
39 39
             return;
40 40
         }
41 41
         if (!self::checkLength($value)) {
@@ -53,9 +53,9 @@  discard block
 block discarded – undo
53 53
         for ($i = 0; $i < $a; $i++) {
54 54
             if ($postal[$i] != '"') {
55 55
                 if (is_numeric($postal[$i])) {
56
-                    $exp .= '[0-'. $postal[$i].']{1}';
56
+                    $exp .= '[0-'.$postal[$i].']{1}';
57 57
                 } else if ($postal[$i] == ' ') {
58
-                    $exp .= "\\". $postal[$i];
58
+                    $exp .= "\\".$postal[$i];
59 59
                 } else {
60 60
                     $exp .= $postal[$i];
61 61
                 }
Please login to merge, or discard this patch.
src/LoginCidadao/ValidationBundle/Validator/Constraints/CPF.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -15,7 +15,7 @@
 block discarded – undo
15 15
 
16 16
     public function validatedBy()
17 17
     {
18
-        return get_class($this) . 'Validator';
18
+        return get_class($this).'Validator';
19 19
     }
20 20
 
21 21
 }
Please login to merge, or discard this patch.
LoginCidadao/ValidationBundle/Validator/Constraints/UsernameValidator.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -28,10 +28,10 @@
 block discarded – undo
28 28
 
29 29
     public function validate($value, Constraint $constraint)
30 30
     {
31
-        if (! isset($value) || $value === null || ! strlen(trim($value))) {
31
+        if (!isset($value) || $value === null || !strlen(trim($value))) {
32 32
             return;
33 33
         }
34
-        if (! self::isUsernameValid($value)) {
34
+        if (!self::isUsernameValid($value)) {
35 35
             $this->context->addViolation($constraint->message);
36 36
         }
37 37
     }
Please login to merge, or discard this patch.