@@ -49,7 +49,7 @@ |
||
| 49 | 49 | } |
| 50 | 50 | |
| 51 | 51 | if (null === $uri && isset($_SERVER['REQUEST_URI'])) { |
| 52 | - $uri = preg_replace('~^' . $this->getView()->basePath() . '~', '', $_SERVER['REQUEST_URI']); |
|
| 52 | + $uri = preg_replace('~^'.$this->getView()->basePath().'~', '', $_SERVER['REQUEST_URI']); |
|
| 53 | 53 | } |
| 54 | 54 | |
| 55 | 55 | if (null === $stripParams) { |
@@ -45,6 +45,6 @@ |
||
| 45 | 45 | if (!$loginSuffixResponseCollection->isEmpty()) { |
| 46 | 46 | $suffix = $loginSuffixResponseCollection->last(); |
| 47 | 47 | } |
| 48 | - return $value . $suffix; |
|
| 48 | + return $value.$suffix; |
|
| 49 | 49 | } |
| 50 | 50 | } |
@@ -44,6 +44,6 @@ |
||
| 44 | 44 | |
| 45 | 45 | parse_str($query, $queryParams); |
| 46 | 46 | $queryParams = array_diff_key($queryParams, array_flip($stripParams)); |
| 47 | - return $uri . (empty($queryParams) ? '' : '?' . http_build_query($queryParams)); |
|
| 47 | + return $uri.(empty($queryParams) ? '' : '?'.http_build_query($queryParams)); |
|
| 48 | 48 | } |
| 49 | 49 | } |
@@ -79,13 +79,13 @@ |
||
| 79 | 79 | |
| 80 | 80 | /* Set locale */ |
| 81 | 81 | $translator = $e->getApplication()->getServiceManager()->get('mvctranslator'); |
| 82 | - $locale = $lang . '_' . strtoupper($lang); |
|
| 82 | + $locale = $lang.'_'.strtoupper($lang); |
|
| 83 | 83 | |
| 84 | 84 | setlocale( |
| 85 | 85 | LC_ALL, |
| 86 | 86 | array( |
| 87 | - $locale . ".utf8", |
|
| 88 | - $locale . ".iso88591", |
|
| 87 | + $locale.".utf8", |
|
| 88 | + $locale.".iso88591", |
|
| 89 | 89 | $locale, |
| 90 | 90 | substr($locale, 0, 2), |
| 91 | 91 | 'de_DE.utf8', |
@@ -67,7 +67,7 @@ |
||
| 67 | 67 | */ |
| 68 | 68 | public function setUseDefaultValidation($bool) |
| 69 | 69 | { |
| 70 | - $this->useDefaultValidation = (bool)$bool; |
|
| 70 | + $this->useDefaultValidation = (bool) $bool; |
|
| 71 | 71 | |
| 72 | 72 | return $this; |
| 73 | 73 | } |
@@ -53,10 +53,10 @@ |
||
| 53 | 53 | public function __construct($status = self::ACTIVE) |
| 54 | 54 | { |
| 55 | 55 | if (!isset(static::$orderMap[$status])) { |
| 56 | - throw new \DomainException('Unknown status: ' . $status); |
|
| 56 | + throw new \DomainException('Unknown status: '.$status); |
|
| 57 | 57 | } |
| 58 | 58 | |
| 59 | - $constant = 'self::' . strtoupper($status); |
|
| 59 | + $constant = 'self::'.strtoupper($status); |
|
| 60 | 60 | $this->name = constant($constant); |
| 61 | 61 | $this->order = $this->getOrder(); |
| 62 | 62 | } |
@@ -31,7 +31,7 @@ |
||
| 31 | 31 | */ |
| 32 | 32 | public function __construct(LoginFilterService $loginFilter) |
| 33 | 33 | { |
| 34 | - $this->loginFilter = $loginFilter;; |
|
| 34 | + $this->loginFilter = $loginFilter; ; |
|
| 35 | 35 | } |
| 36 | 36 | |
| 37 | 37 | /** |
@@ -56,7 +56,7 @@ |
||
| 56 | 56 | |
| 57 | 57 | protected function attachDefaultListeners() |
| 58 | 58 | { |
| 59 | - $this->getEventManager()->attach(static::EVENT_REMOVE_ITEMS, function (EventInterface $event) { |
|
| 59 | + $this->getEventManager()->attach(static::EVENT_REMOVE_ITEMS, function(EventInterface $event) { |
|
| 60 | 60 | $user = $event->getParam('user'); |
| 61 | 61 | foreach ($this->getLists() as $list) { |
| 62 | 62 | foreach ($list->getEntities($user) as $entity) { |
@@ -135,7 +135,7 @@ |
||
| 135 | 135 | return array( |
| 136 | 136 | 'year' => strval($xml->year), |
| 137 | 137 | 'month'=> isset($xml->month) ? strval($xml->month) : '01', |
| 138 | - 'day' => isset($xml->day) ? strval($xml->day) : '01', |
|
| 138 | + 'day' => isset($xml->day) ? strval($xml->day) : '01', |
|
| 139 | 139 | ); |
| 140 | 140 | } |
| 141 | 141 | } |