@@ -26,7 +26,7 @@ discard block |
||
26 | 26 | } |
27 | 27 | |
28 | 28 | public function findIndexedStatsByIndexKeyDate($index, $keys = null, |
29 | - \DateTime $afterDate = null) |
|
29 | + \DateTime $afterDate = null) |
|
30 | 30 | { |
31 | 31 | $data = $this->findStatsByIndexKeyDate($index, $keys, $afterDate); |
32 | 32 | |
@@ -34,7 +34,7 @@ discard block |
||
34 | 34 | } |
35 | 35 | |
36 | 36 | public function findIndexedUniqueStatsByIndexKeyDate($index, $keys = null, |
37 | - \DateTime $afterDate = null) |
|
37 | + \DateTime $afterDate = null) |
|
38 | 38 | { |
39 | 39 | $query = $this->getFindStatsByIndexKeyDateQuery($index, $keys, |
40 | 40 | $afterDate); |
@@ -45,7 +45,7 @@ discard block |
||
45 | 45 | } |
46 | 46 | |
47 | 47 | public function findIndexedUniqueStatsByIndexKeyDays($index, $keys = null, |
48 | - $days = null) |
|
48 | + $days = null) |
|
49 | 49 | { |
50 | 50 | $query = $this->getFindStatsByIndexKeyDateQuery($index, $keys, null, |
51 | 51 | $days); |
@@ -34,7 +34,7 @@ |
||
34 | 34 | } |
35 | 35 | |
36 | 36 | public function getIndexedUniqueDate($index, $keys = null, |
37 | - \DateTime $afterDate = null) |
|
37 | + \DateTime $afterDate = null) |
|
38 | 38 | { |
39 | 39 | return $this->repo->findIndexedUniqueStatsByIndexKeyDate($index, $keys, |
40 | 40 | $afterDate); |
@@ -15,7 +15,7 @@ |
||
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 | } |
@@ -35,7 +35,7 @@ discard block |
||
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 |
||
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 | } |
@@ -15,7 +15,7 @@ |
||
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 | } |
@@ -46,8 +46,8 @@ |
||
46 | 46 | } |
47 | 47 | |
48 | 48 | public function idCardValidate(ExecutionContextInterface $validator, |
49 | - Constraint $constraint, |
|
50 | - IdCardInterface $idCard) |
|
49 | + Constraint $constraint, |
|
50 | + IdCardInterface $idCard) |
|
51 | 51 | { |
52 | 52 | $event = new IdCardValidateEvent($validator, $constraint, $idCard); |
53 | 53 | $this->dispatcher->dispatch(ValidationEvents::ID_CARD_VALIDATE, $event); |