@@ -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 | |
@@ -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 | |
@@ -47,7 +47,7 @@ discard block |
||
| 47 | 47 | */ |
| 48 | 48 | public function setTypeOfApplication($typeOfApplication) |
| 49 | 49 | { |
| 50 | - $this->typeOfApplication=$typeOfApplication; |
|
| 50 | + $this->typeOfApplication = $typeOfApplication; |
|
| 51 | 51 | return $this; |
| 52 | 52 | } |
| 53 | 53 | |
@@ -63,7 +63,7 @@ discard block |
||
| 63 | 63 | |
| 64 | 64 | public function setPreferredJob($preferredJob) |
| 65 | 65 | { |
| 66 | - $this->preferredJob=$preferredJob; |
|
| 66 | + $this->preferredJob = $preferredJob; |
|
| 67 | 67 | return $this; |
| 68 | 68 | } |
| 69 | 69 | |
@@ -74,7 +74,7 @@ discard block |
||
| 74 | 74 | |
| 75 | 75 | public function setWillingnessToTravel($willingnessToTravel) |
| 76 | 76 | { |
| 77 | - $this->willingnessToTravel=$willingnessToTravel; |
|
| 77 | + $this->willingnessToTravel = $willingnessToTravel; |
|
| 78 | 78 | return $this; |
| 79 | 79 | } |
| 80 | 80 | |
@@ -14,7 +14,7 @@ |
||
| 14 | 14 | |
| 15 | 15 | class JsonPaginationQueryFactory implements FactoryInterface |
| 16 | 16 | { |
| 17 | - public function createService (\Zend\ServiceManager\ServiceLocatorInterface $serviceLocator) |
|
| 17 | + public function createService(\Zend\ServiceManager\ServiceLocatorInterface $serviceLocator) |
|
| 18 | 18 | { |
| 19 | 19 | $services = $serviceLocator->getServiceLocator(); |
| 20 | 20 | $auth = $services->get('AuthenticationService'); |
@@ -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(); |