@@ -40,7 +40,7 @@ |
||
40 | 40 | { |
41 | 41 | const FULL = 'full'; |
42 | 42 | const LONG = 'long'; |
43 | - const MEDIUM= 'medium'; |
|
43 | + const MEDIUM = 'medium'; |
|
44 | 44 | const SHORT = 'short'; |
45 | 45 | const NONE = 'none'; |
46 | 46 |
@@ -25,13 +25,13 @@ |
||
25 | 25 | // calculate EndDate - StartDate = X Years. |
26 | 26 | // eg. 4.2 Years |
27 | 27 | |
28 | - $days=0; |
|
28 | + $days = 0; |
|
29 | 29 | foreach ($array as $obj) { |
30 | 30 | $date1 = new \DateTime($obj->endDate); |
31 | 31 | $date2 = new \DateTime($obj->startDate); |
32 | 32 | $interval = $date1->diff($date2); |
33 | - $days+=abs($interval->format('%R%a')); |
|
33 | + $days += abs($interval->format('%R%a')); |
|
34 | 34 | } |
35 | - return round($days/365, 1); |
|
35 | + return round($days / 365, 1); |
|
36 | 36 | } |
37 | 37 | } |
@@ -22,7 +22,7 @@ |
||
22 | 22 | */ |
23 | 23 | public function __invoke($gender) |
24 | 24 | { |
25 | - $return=""; |
|
25 | + $return = ""; |
|
26 | 26 | switch ($gender) { |
27 | 27 | case "male": |
28 | 28 | $return = "Mr."; |
@@ -33,7 +33,7 @@ discard block |
||
33 | 33 | */ |
34 | 34 | public function setName($name) |
35 | 35 | { |
36 | - $this->name=$name; |
|
36 | + $this->name = $name; |
|
37 | 37 | } |
38 | 38 | |
39 | 39 | /** |
@@ -51,7 +51,7 @@ discard block |
||
51 | 51 | */ |
52 | 52 | public function setLevel($level) |
53 | 53 | { |
54 | - $this->level=$level; |
|
54 | + $this->level = $level; |
|
55 | 55 | } |
56 | 56 | |
57 | 57 | /** |
@@ -78,7 +78,7 @@ |
||
78 | 78 | */ |
79 | 79 | public function setCurrentIndicator($currentIndicator) |
80 | 80 | { |
81 | - $this->currentIndicator=$currentIndicator; |
|
81 | + $this->currentIndicator = $currentIndicator; |
|
82 | 82 | return $this; |
83 | 83 | } |
84 | 84 |
@@ -26,7 +26,7 @@ |
||
26 | 26 | $client->setMethod('GET'); |
27 | 27 | // more countries 'country' => 'DE,CH,AT' |
28 | 28 | // with countryCode 'zoom' => 2 |
29 | - $plz = 0 < (int) $par?1:0; |
|
29 | + $plz = 0 < (int) $par ? 1 : 0; |
|
30 | 30 | $client->setParameterGet(array('q' => $par, 'country' => 'DE', 'plz' => $plz, 'zoom' => 1)); |
31 | 31 | $response = $client->send(); |
32 | 32 | $result = $response->getBody(); |
@@ -66,7 +66,7 @@ |
||
66 | 66 | 'role' => 'admin', |
67 | 67 | 'login' => $username, |
68 | 68 | 'credential' => $credential, |
69 | - 'info' => [ 'email' => $email ] |
|
69 | + 'info' => ['email' => $email] |
|
70 | 70 | ); |
71 | 71 | |
72 | 72 | $result = $collection->insert($document); |
@@ -21,7 +21,7 @@ |
||
21 | 21 | */ |
22 | 22 | class MongoDbConnectionString extends AbstractValidator |
23 | 23 | { |
24 | - const INVALID = 'invalidConnectionString'; |
|
24 | + const INVALID = 'invalidConnectionString'; |
|
25 | 25 | |
26 | 26 | /** |
27 | 27 | * Options |
@@ -198,7 +198,7 @@ |
||
198 | 198 | * |
199 | 199 | * @return UserInterface $user |
200 | 200 | */ |
201 | - public function getUser() ; |
|
201 | + public function getUser(); |
|
202 | 202 | |
203 | 203 | /** |
204 | 204 | * Gets the link to the application form |