@@ -94,7 +94,7 @@ |
||
| 94 | 94 | |
| 95 | 95 | $view = $e->getApplication()->getServiceManager()->get('ViewManager')->getView(); |
| 96 | 96 | $view->addRenderingStrategy(array($strategy, 'selectRenderer'), 10); |
| 97 | - $view->addResponseStrategy(array($strategy, 'injectResponse'), 10); |
|
| 97 | + $view->addResponseStrategy(array($strategy, 'injectResponse'), 10); |
|
| 98 | 98 | |
| 99 | 99 | } |
| 100 | 100 | } |
@@ -58,7 +58,7 @@ |
||
| 58 | 58 | } |
| 59 | 59 | |
| 60 | 60 | |
| 61 | - $dm = $eventArgs->getDocumentManager(); |
|
| 61 | + $dm = $eventArgs->getDocumentManager(); |
|
| 62 | 62 | $uow = $dm->getUnitOfWork(); |
| 63 | 63 | $changeset = $uow->getDocumentChangeset($document); |
| 64 | 64 | $filter = $this->getKeywordsFilter(); |
@@ -42,8 +42,8 @@ |
||
| 42 | 42 | $document->preUpdate($prePersist); |
| 43 | 43 | |
| 44 | 44 | if (!$prePersist) { |
| 45 | - $dm = $eventArgs->getDocumentManager(); |
|
| 46 | - $uow = $dm->getUnitOfWork(); |
|
| 45 | + $dm = $eventArgs->getDocumentManager(); |
|
| 46 | + $uow = $dm->getUnitOfWork(); |
|
| 47 | 47 | $uow->recomputeSingleDocumentChangeSet($dm->getClassMetadata(get_class($document)), $document); |
| 48 | 48 | } |
| 49 | 49 | |
@@ -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 | |