@@ -77,7 +77,7 @@ |
||
| 77 | 77 | } |
| 78 | 78 | $resolver = $e->getApplication()->getServiceManager()->get('ViewResolver'); |
| 79 | 79 | |
| 80 | - $template = $viewModel->getTemplate() . '.ajax'; |
|
| 80 | + $template = $viewModel->getTemplate().'.ajax'; |
|
| 81 | 81 | if ($resolver->resolve($template)) { |
| 82 | 82 | $viewModel->setTemplate($template); |
| 83 | 83 | } else { |
@@ -51,7 +51,7 @@ |
||
| 51 | 51 | if (!empty($capture)) { |
| 52 | 52 | if ($viewModel->isAppend()) { |
| 53 | 53 | $oldResult = $viewModel->{$capture}; |
| 54 | - $viewModel->setVariable($capture, $oldResult . $result); |
|
| 54 | + $viewModel->setVariable($capture, $oldResult.$result); |
|
| 55 | 55 | } else { |
| 56 | 56 | $viewModel->setVariable($capture, $result); |
| 57 | 57 | } |
@@ -149,7 +149,7 @@ discard block |
||
| 149 | 149 | $target->__invoke($data); |
| 150 | 150 | $className = get_class($this->entity); |
| 151 | 151 | // @TODO, have to be abstract |
| 152 | - $snapShotMetaClassName = '\\' . $className . 'SnapshotMeta'; |
|
| 152 | + $snapShotMetaClassName = '\\'.$className.'SnapshotMeta'; |
|
| 153 | 153 | $meta = new $snapShotMetaClassName; |
| 154 | 154 | $meta->setEntity($target); |
| 155 | 155 | $meta->setSourceId($this->entity->id); |
@@ -177,7 +177,7 @@ discard block |
||
| 177 | 177 | if (empty($dataHead) || empty($targetClass)) { |
| 178 | 178 | return null; |
| 179 | 179 | } |
| 180 | - $repositorySnapshotMeta = $this->getRepositories()->getRepository($targetClass . "Meta"); |
|
| 180 | + $repositorySnapshotMeta = $this->getRepositories()->getRepository($targetClass."Meta"); |
|
| 181 | 181 | $snapshot = $repositorySnapshotMeta->findSnapshot($this->entity); |
| 182 | 182 | // an snapshot has to be so simple that there is no need for a special hydrator |
| 183 | 183 | $hydrator = new EntityHydrator(); |
@@ -247,8 +247,8 @@ discard block |
||
| 247 | 247 | // the snapshotgenerator is a service defined by the name of the entity |
| 248 | 248 | // this is the highest means, all subsequent means just add what is not set |
| 249 | 249 | $className = get_class($this->entity); |
| 250 | - if ($serviceLocator->has('snapshotgenerator' . $className)) { |
|
| 251 | - $generator = $this->serviceLocator->get('snapshotgenerator' . $className); |
|
| 250 | + if ($serviceLocator->has('snapshotgenerator'.$className)) { |
|
| 251 | + $generator = $this->serviceLocator->get('snapshotgenerator'.$className); |
|
| 252 | 252 | if (is_array($generator)) { |
| 253 | 253 | $this->options = ArrayUtils::merge($generator, $this->options); |
| 254 | 254 | $generator = null; |
@@ -348,13 +348,13 @@ discard block |
||
| 348 | 348 | } |
| 349 | 349 | } else { |
| 350 | 350 | if ($array1[$key] != $array2[$key]) { |
| 351 | - $result[$key] = array( $array1[$key], $array2[$key]); |
|
| 351 | + $result[$key] = array($array1[$key], $array2[$key]); |
|
| 352 | 352 | } |
| 353 | 353 | } |
| 354 | 354 | if (!empty($subResult)) { |
| 355 | 355 | foreach ($subResult as $subKey => $subValue) { |
| 356 | 356 | if (!empty($subKey) && is_string($subKey)) { |
| 357 | - $result[$key . '.' . $subKey] = $subValue; |
|
| 357 | + $result[$key.'.'.$subKey] = $subValue; |
|
| 358 | 358 | } |
| 359 | 359 | } |
| 360 | 360 | } |
@@ -28,7 +28,7 @@ |
||
| 28 | 28 | public function indexAction() |
| 29 | 29 | { |
| 30 | 30 | $view = $this->params('view'); |
| 31 | - $view = 'content/' . $view; |
|
| 31 | + $view = 'content/'.$view; |
|
| 32 | 32 | |
| 33 | 33 | $viewModel = new ViewModel(); |
| 34 | 34 | $viewModel->setTemplate($view); |
@@ -39,7 +39,7 @@ discard block |
||
| 39 | 39 | throw new \InvalidArgumentException( |
| 40 | 40 | sprintf( |
| 41 | 41 | 'Expect an array or an instance of \Traversable, but received %s', |
| 42 | - is_object($variables) ? 'instance of ' . get_class($variables) : 'skalar' |
|
| 42 | + is_object($variables) ? 'instance of '.get_class($variables) : 'skalar' |
|
| 43 | 43 | ) |
| 44 | 44 | ); |
| 45 | 45 | } |
@@ -69,7 +69,7 @@ discard block |
||
| 69 | 69 | throw new \InvalidArgumentException( |
| 70 | 70 | sprintf( |
| 71 | 71 | 'Expect an array or an instance of \Traversable, but received %s', |
| 72 | - is_object($callbacks) ? 'instance of ' . get_class($callbacks) : 'skalar' |
|
| 72 | + is_object($callbacks) ? 'instance of '.get_class($callbacks) : 'skalar' |
|
| 73 | 73 | ) |
| 74 | 74 | ); |
| 75 | 75 | } |
@@ -141,6 +141,6 @@ discard block |
||
| 141 | 141 | |
| 142 | 142 | protected function getNamePattern($name) |
| 143 | 143 | { |
| 144 | - return '~##' . preg_quote($name) . '##~is'; |
|
| 144 | + return '~##'.preg_quote($name).'##~is'; |
|
| 145 | 145 | } |
| 146 | 146 | } |
@@ -26,7 +26,7 @@ |
||
| 26 | 26 | throw new \InvalidArgumentException( |
| 27 | 27 | sprintf( |
| 28 | 28 | 'Expected $options to be an array or \Traversable, but received %s', |
| 29 | - (is_object($options) ? 'instance of ' . get_class($options) : 'skalar') |
|
| 29 | + (is_object($options) ? 'instance of '.get_class($options) : 'skalar') |
|
| 30 | 30 | ) |
| 31 | 31 | ); |
| 32 | 32 | } |
@@ -69,7 +69,7 @@ |
||
| 69 | 69 | $recipients->add($match[1]); |
| 70 | 70 | } |
| 71 | 71 | } else { |
| 72 | - trigger_error('invalid address format ("' . $recipient . '") in mails.develop.override_recipient', E_USER_WARNING); |
|
| 72 | + trigger_error('invalid address format ("'.$recipient.'") in mails.develop.override_recipient', E_USER_WARNING); |
|
| 73 | 73 | } |
| 74 | 74 | } |
| 75 | 75 | return $recipients; |
@@ -29,7 +29,7 @@ |
||
| 29 | 29 | */ |
| 30 | 30 | public function getUri() |
| 31 | 31 | { |
| 32 | - return '/file/Auth.UserImage/' . $this->id; |
|
| 32 | + return '/file/Auth.UserImage/'.$this->id; |
|
| 33 | 33 | } |
| 34 | 34 | |
| 35 | 35 | /** |
@@ -9,7 +9,7 @@ |
||
| 9 | 9 | |
| 10 | 10 | public function filter($value) |
| 11 | 11 | { |
| 12 | - $weird = sha1(md5($value) . md5(strrev($value))); |
|
| 12 | + $weird = sha1(md5($value).md5(strrev($value))); |
|
| 13 | 13 | return $weird; |
| 14 | 14 | } |
| 15 | 15 | } |