@@ -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 | } |
@@ -106,7 +106,7 @@ discard block |
||
106 | 106 | } |
107 | 107 | |
108 | 108 | $router = $e->getRouter(); |
109 | - $basePath=$router->getBaseUrl(); |
|
109 | + $basePath = $router->getBaseUrl(); |
|
110 | 110 | |
111 | 111 | |
112 | 112 | if (preg_match('~^' . $basePath . '/([a-z]{2})(?:/|$)~', $e->getRequest()->getRequestUri(), $match)) { |
@@ -181,7 +181,7 @@ discard block |
||
181 | 181 | $headers = $e->getRequest()->getHeaders(); |
182 | 182 | if ($headers->has('Accept-Language')) { |
183 | 183 | $locales = $headers->get('Accept-Language')->getPrioritized(); |
184 | - $localeFound=false; |
|
184 | + $localeFound = false; |
|
185 | 185 | foreach ($locales as $locale) { |
186 | 186 | if (array_key_exists($locale->type, $this->availableLanguages)) { |
187 | 187 | $lang = $locale->type; |
@@ -42,12 +42,12 @@ |
||
42 | 42 | |
43 | 43 | public function attachShared(SharedEventManagerInterface $events) |
44 | 44 | { |
45 | - $events->attach('*', NotificationEvent::EVENT_NOTIFICATION_ADD, array($this,'add'), 1); |
|
46 | - $events->attach('Zend\Mvc\Application', MvcEvent::EVENT_DISPATCH, array($this,'renderJSON'), -240); |
|
47 | - $events->attach('Zend\Mvc\Application', MvcEvent::EVENT_DISPATCH, array($this,'renderHTML'), -250); |
|
45 | + $events->attach('*', NotificationEvent::EVENT_NOTIFICATION_ADD, array($this, 'add'), 1); |
|
46 | + $events->attach('Zend\Mvc\Application', MvcEvent::EVENT_DISPATCH, array($this, 'renderJSON'), -240); |
|
47 | + $events->attach('Zend\Mvc\Application', MvcEvent::EVENT_DISPATCH, array($this, 'renderHTML'), -250); |
|
48 | 48 | // Sometimes the Dispatch-Event is not reached, for instance with a route-direct |
49 | 49 | // but also for Events, that are happening after the Dispatch |
50 | - $events->attach('Zend\Mvc\Application', MvcEvent::EVENT_FINISH, array($this,'renderHTML'), -250); |
|
50 | + $events->attach('Zend\Mvc\Application', MvcEvent::EVENT_FINISH, array($this, 'renderHTML'), -250); |
|
51 | 51 | return $this; |
52 | 52 | } |
53 | 53 |
@@ -143,11 +143,11 @@ |
||
143 | 143 | if ($value === null) { |
144 | 144 | continue; |
145 | 145 | } |
146 | - if (! is_array($value)) { |
|
146 | + if (!is_array($value)) { |
|
147 | 147 | if ($key === null) { |
148 | 148 | $result[$nextIndex] = $value; |
149 | 149 | } else { |
150 | - if (! is_object($value) || method_exists($value, "__toString")) { |
|
150 | + if (!is_object($value) || method_exists($value, "__toString")) { |
|
151 | 151 | $result[$nextIndex] = $value; |
152 | 152 | } |
153 | 153 | } |
@@ -80,7 +80,7 @@ discard block |
||
80 | 80 | $self = $this; |
81 | 81 | |
82 | 82 | $this->addInitializer( |
83 | - function ($instance) use ($self) { |
|
83 | + function($instance) use ($self) { |
|
84 | 84 | if ($instance instanceof TranslatorAwareInterface) { |
85 | 85 | $translator = $self->getServiceLocator()->get('translator'); |
86 | 86 | $instance->setTranslator($translator); |
@@ -93,7 +93,7 @@ discard block |
||
93 | 93 | false |
94 | 94 | ); |
95 | 95 | $this->addInitializer( |
96 | - function ($instance) { |
|
96 | + function($instance) { |
|
97 | 97 | if (method_exists($instance, 'init')) { |
98 | 98 | $instance->init(); |
99 | 99 | } |
@@ -32,7 +32,7 @@ |
||
32 | 32 | $configArray = isset($configArray['paginator_manager']) ? $configArray['paginator_manager'] : array(); |
33 | 33 | $config = new PaginatorServiceConfig($configArray); |
34 | 34 | |
35 | - $service = new PaginatorService($config); |
|
35 | + $service = new PaginatorService($config); |
|
36 | 36 | |
37 | 37 | return $service; |
38 | 38 | } |
@@ -45,10 +45,10 @@ |
||
45 | 45 | |
46 | 46 | public function __call($method, $params) |
47 | 47 | { |
48 | - $type = substr($method, 0, 3); |
|
48 | + $type = substr($method, 0, 3); |
|
49 | 49 | |
50 | 50 | if ('get' == $type || 'set' == $type) { |
51 | - $filter = function ($match) { |
|
51 | + $filter = function($match) { |
|
52 | 52 | return '_' . strtolower($match[0]); |
53 | 53 | }; |
54 | 54 | $key = lcfirst(substr($method, 3)); |
@@ -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 |