@@ -89,11 +89,11 @@ discard block |
||
89 | 89 | $config = $this->serviceManager->get('Config'); |
90 | 90 | $appConfig = $this->serviceManager->get('ApplicationConfig'); |
91 | 91 | foreach ($appConfig['modules'] as $module) { |
92 | - $this->config[$module] = array_key_exists($module, $config)?$config[$module]:array(); |
|
92 | + $this->config[$module] = array_key_exists($module, $config) ? $config[$module] : array(); |
|
93 | 93 | } |
94 | 94 | } |
95 | 95 | if (isset($namespace)) { |
96 | - return array_key_exists($namespace, $this->config)?$this->config[$namespace]: array(); |
|
96 | + return array_key_exists($namespace, $this->config) ? $this->config[$namespace] : array(); |
|
97 | 97 | } |
98 | 98 | return $this->config; |
99 | 99 | } |
@@ -106,7 +106,7 @@ discard block |
||
106 | 106 | } |
107 | 107 | if (!empty($this->map[$key])) { |
108 | 108 | $module = $this->getNamespace(); |
109 | - return isset($this->map[$key][$module])?$this->map[$key][$module]:array(); |
|
109 | + return isset($this->map[$key][$module]) ? $this->map[$key][$module] : array(); |
|
110 | 110 | } |
111 | 111 | return array(); |
112 | 112 | } |
@@ -92,8 +92,8 @@ |
||
92 | 92 | */ |
93 | 93 | protected function authetificate() |
94 | 94 | { |
95 | - $auth = array_key_exists('user', $this->config)?$this->config['user']:''; |
|
96 | - $pass = array_key_exists('pass', $this->config)?$this->config['pass']:''; |
|
95 | + $auth = array_key_exists('user', $this->config) ? $this->config['user'] : ''; |
|
96 | + $pass = array_key_exists('pass', $this->config) ? $this->config['pass'] : ''; |
|
97 | 97 | return $this->setAuth($auth, $pass); |
98 | 98 | } |
99 | 99 |
@@ -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 |
@@ -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 |