@@ -40,10 +40,10 @@ |
||
40 | 40 | |
41 | 41 | //default sorting |
42 | 42 | if (!isset($params['sort'])) { |
43 | - $params['sort']="-date"; |
|
43 | + $params['sort'] = "-date"; |
|
44 | 44 | } |
45 | 45 | $params->count = 5; |
46 | - $params->pageRange=5; |
|
46 | + $params->pageRange = 5; |
|
47 | 47 | |
48 | 48 | $this->paginationParams()->setParams('Applications\Index', $params); |
49 | 49 |
@@ -60,11 +60,11 @@ discard block |
||
60 | 60 | |
61 | 61 | protected $viewHelper; |
62 | 62 | |
63 | - /** |
|
64 | - * @param ContainerInterface $container |
|
65 | - * |
|
66 | - * @return ApplyController |
|
67 | - */ |
|
63 | + /** |
|
64 | + * @param ContainerInterface $container |
|
65 | + * |
|
66 | + * @return ApplyController |
|
67 | + */ |
|
68 | 68 | static public function factory(ContainerInterface $container) |
69 | 69 | { |
70 | 70 | $ob = new self(); |
@@ -72,24 +72,24 @@ discard block |
||
72 | 72 | return $ob; |
73 | 73 | } |
74 | 74 | |
75 | - public function setContainer( ContainerInterface $container ) |
|
76 | - { |
|
77 | - $this->config = $container->get('Config'); |
|
78 | - $this->imageCacheManager = $container->get('Organizations\ImageFileCache\Manager'); |
|
79 | - $this->validator = $container->get('ValidatorManager'); |
|
80 | - $this->repositories = $container->get('repositories'); |
|
81 | - $this->appEvents = $container->get('Applications/Events'); |
|
82 | - $this->viewHelper = $container->get('ViewHelperManager'); |
|
83 | - } |
|
75 | + public function setContainer( ContainerInterface $container ) |
|
76 | + { |
|
77 | + $this->config = $container->get('Config'); |
|
78 | + $this->imageCacheManager = $container->get('Organizations\ImageFileCache\Manager'); |
|
79 | + $this->validator = $container->get('ValidatorManager'); |
|
80 | + $this->repositories = $container->get('repositories'); |
|
81 | + $this->appEvents = $container->get('Applications/Events'); |
|
82 | + $this->viewHelper = $container->get('ViewHelperManager'); |
|
83 | + } |
|
84 | 84 | |
85 | 85 | |
86 | - public function attachDefaultListeners() |
|
87 | - { |
|
88 | - parent::attachDefaultListeners(); |
|
89 | - $events = $this->getEventManager(); |
|
90 | - $events->attach(MvcEvent::EVENT_DISPATCH, array($this, 'preDispatch'), 10); |
|
91 | - return $this; |
|
92 | - } |
|
86 | + public function attachDefaultListeners() |
|
87 | + { |
|
88 | + parent::attachDefaultListeners(); |
|
89 | + $events = $this->getEventManager(); |
|
90 | + $events->attach(MvcEvent::EVENT_DISPATCH, array($this, 'preDispatch'), 10); |
|
91 | + return $this; |
|
92 | + } |
|
93 | 93 | |
94 | 94 | public function preDispatch(MvcEvent $e) |
95 | 95 | { |
@@ -266,7 +266,7 @@ discard block |
||
266 | 266 | ->getHybridAuth(); |
267 | 267 | /* @var $authProfile \Hybrid_User_Profile */ |
268 | 268 | $authProfile = $hybridAuth->authenticate($network) |
269 | - ->getUserProfile(); |
|
269 | + ->getUserProfile(); |
|
270 | 270 | |
271 | 271 | /* @var \Auth\Entity\SocialProfiles\AbstractProfile $profile */ |
272 | 272 | $profile = $this->plugin('Auth/SocialProfiles')->fetch($network); |
@@ -319,7 +319,7 @@ discard block |
||
319 | 319 | } |
320 | 320 | |
321 | 321 | return $this->redirect() |
322 | - ->toRoute('lang/apply', ['applyId' => $job->getApplyId()], $urlOptions); |
|
322 | + ->toRoute('lang/apply', ['applyId' => $job->getApplyId()], $urlOptions); |
|
323 | 323 | } |
324 | 324 | |
325 | 325 | public function processPreviewAction() |
@@ -329,11 +329,11 @@ discard block |
||
329 | 329 | |
330 | 330 | public function processAction() |
331 | 331 | { |
332 | - $params = $this->params(); |
|
332 | + $params = $this->params(); |
|
333 | 333 | $formName = $params->fromQuery('form'); |
334 | 334 | $form = $this->formContainer->getForm($formName); |
335 | 335 | $postData = $form->getOption('use_post_array') ? $params->fromPost() : array(); |
336 | - //@TODO: [ZF3] option use_files_array is false by default |
|
336 | + //@TODO: [ZF3] option use_files_array is false by default |
|
337 | 337 | //$filesData = $form->getOption('use_files_array') ? $params->fromFiles() : array(); |
338 | 338 | $form->setData(array_merge($postData,$_FILES)); |
339 | 339 | |
@@ -363,9 +363,9 @@ discard block |
||
363 | 363 | |
364 | 364 | return new JsonModel( |
365 | 365 | array( |
366 | - 'valid' => $form->isValid(), |
|
367 | - 'content' => $content, |
|
368 | - 'isApplicationValid' => $this->checkApplication($application) |
|
366 | + 'valid' => $form->isValid(), |
|
367 | + 'content' => $content, |
|
368 | + 'isApplicationValid' => $this->checkApplication($application) |
|
369 | 369 | ) |
370 | 370 | ); |
371 | 371 | } |
@@ -72,7 +72,7 @@ discard block |
||
72 | 72 | return $ob; |
73 | 73 | } |
74 | 74 | |
75 | - public function setContainer( ContainerInterface $container ) |
|
75 | + public function setContainer(ContainerInterface $container) |
|
76 | 76 | { |
77 | 77 | $this->config = $container->get('Config'); |
78 | 78 | $this->imageCacheManager = $container->get('Organizations\ImageFileCache\Manager'); |
@@ -125,7 +125,7 @@ discard block |
||
125 | 125 | throw new \RuntimeException('Invalid application id.'); |
126 | 126 | } |
127 | 127 | |
128 | - $action = 'process'; |
|
128 | + $action = 'process'; |
|
129 | 129 | |
130 | 130 | $routeMatch->setParam('action', $action); |
131 | 131 | } else { |
@@ -209,14 +209,14 @@ discard block |
||
209 | 209 | |
210 | 210 | $container->setEntity($application); |
211 | 211 | $this->configureContainer($container); |
212 | - $this->formContainer = $container; |
|
212 | + $this->formContainer = $container; |
|
213 | 213 | } |
214 | 214 | |
215 | 215 | public function jobNotFoundAction() |
216 | 216 | { |
217 | 217 | $this->response->setStatusCode(410); |
218 | 218 | $model = new ViewModel( |
219 | - [ 'content' => /*@translate*/ 'Invalid apply id'] |
|
219 | + ['content' => /*@translate*/ 'Invalid apply id'] |
|
220 | 220 | ); |
221 | 221 | $model->setTemplate('applications/error/not-found'); |
222 | 222 | return $model; |
@@ -335,7 +335,7 @@ discard block |
||
335 | 335 | $postData = $form->getOption('use_post_array') ? $params->fromPost() : array(); |
336 | 336 | //@TODO: [ZF3] option use_files_array is false by default |
337 | 337 | //$filesData = $form->getOption('use_files_array') ? $params->fromFiles() : array(); |
338 | - $form->setData(array_merge($postData,$_FILES)); |
|
338 | + $form->setData(array_merge($postData, $_FILES)); |
|
339 | 339 | |
340 | 340 | if (!$form->isValid()) { |
341 | 341 | return new JsonModel( |
@@ -397,13 +397,13 @@ discard block |
||
397 | 397 | } |
398 | 398 | |
399 | 399 | if ('previewmail' == $this->params()->fromQuery('do')) { |
400 | - $this->mailer('Applications/CarbonCopy', [ 'application' => $application], true); |
|
400 | + $this->mailer('Applications/CarbonCopy', ['application' => $application], true); |
|
401 | 401 | $this->notification()->success(/*@translate*/ 'Mail has been send'); |
402 | 402 | return new JsonModel(); |
403 | 403 | } |
404 | 404 | |
405 | 405 | if ('sendmail' == $this->params()->fromQuery('do')) { |
406 | - $jobEntity = $application->getJob(); |
|
406 | + $jobEntity = $application->getJob(); |
|
407 | 407 | |
408 | 408 | $mailData = array( |
409 | 409 | 'application' => $application, |
@@ -434,8 +434,8 @@ discard block |
||
434 | 434 | |
435 | 435 | $repositories->store($application); |
436 | 436 | |
437 | - $events = $this->appEvents; |
|
438 | - $events->trigger(ApplicationEvent::EVENT_APPLICATION_POST_CREATE, $this, [ 'application' => $application ]); |
|
437 | + $events = $this->appEvents; |
|
438 | + $events->trigger(ApplicationEvent::EVENT_APPLICATION_POST_CREATE, $this, ['application' => $application]); |
|
439 | 439 | |
440 | 440 | $model = new ViewModel( |
441 | 441 | array( |
@@ -157,7 +157,7 @@ discard block |
||
157 | 157 | |
158 | 158 | $table = new Table( |
159 | 159 | array('columnWidths' => array(40, 40, 40), |
160 | - 'decorator' => 'ascii') |
|
160 | + 'decorator' => 'ascii') |
|
161 | 161 | ); |
162 | 162 | |
163 | 163 | $table->appendRow(array('Module', 'Name', 'Description')); |
@@ -238,8 +238,8 @@ discard block |
||
238 | 238 | $attachments = $app->getAttachments(); |
239 | 239 | foreach ($attachments as $attachment) { |
240 | 240 | $attachment->getPermissions() |
241 | - ->clear() |
|
242 | - ->inherit($permissions); |
|
241 | + ->clear() |
|
242 | + ->inherit($permissions); |
|
243 | 243 | } |
244 | 244 | $contact = $app->getContact(); |
245 | 245 | if ($contact) { |
@@ -247,8 +247,8 @@ discard block |
||
247 | 247 | |
248 | 248 | if ($image) { |
249 | 249 | $image->getPermissions() |
250 | - ->clear() |
|
251 | - ->inherit($permissions); |
|
250 | + ->clear() |
|
251 | + ->inherit($permissions); |
|
252 | 252 | } |
253 | 253 | } |
254 | 254 | } |
@@ -97,7 +97,7 @@ discard block |
||
97 | 97 | |
98 | 98 | echo "Generate keywords for $count applications ...\n"; |
99 | 99 | |
100 | - $progress = new ProgressBar($count); |
|
100 | + $progress = new ProgressBar($count); |
|
101 | 101 | |
102 | 102 | /** @var \Core\Repository\Filter\PropertyToKeywords $filter */ |
103 | 103 | $filter = $this->filterManager->get('Core/Repository/PropertyToKeywords'); |
@@ -105,7 +105,7 @@ discard block |
||
105 | 105 | |
106 | 106 | /** @var \Applications\Entity\Application $application */ |
107 | 107 | foreach ($applications as $application) { |
108 | - $progress->update($i++, 'Application ' . $i . ' / ' . $count); |
|
108 | + $progress->update($i++, 'Application '.$i.' / '.$count); |
|
109 | 109 | $keywords = $filter->filter($application); |
110 | 110 | |
111 | 111 | $application->setKeywords($keywords); |
@@ -131,13 +131,13 @@ discard block |
||
131 | 131 | { |
132 | 132 | $applications = $this->fetchApplications(); |
133 | 133 | $count = count($applications); |
134 | - $i=0; |
|
135 | - echo "Calculate rating for " . $count . " applications ...\n"; |
|
134 | + $i = 0; |
|
135 | + echo "Calculate rating for ".$count." applications ...\n"; |
|
136 | 136 | |
137 | 137 | $progress = new ProgressBar($count); |
138 | 138 | /** @var \Applications\Entity\Application $application */ |
139 | 139 | foreach ($applications as $application) { |
140 | - $progress->update($i++, 'Application ' . $i . ' / ' . $count); |
|
140 | + $progress->update($i++, 'Application '.$i.' / '.$count); |
|
141 | 141 | $application->getRating(/* recalculate */ true); |
142 | 142 | } |
143 | 143 | $progress->update($i, 'Write to database...'); |
@@ -164,14 +164,14 @@ discard block |
||
164 | 164 | $documentManager = $this->documentManager; |
165 | 165 | |
166 | 166 | $count = count($applications); |
167 | - $i=0; |
|
167 | + $i = 0; |
|
168 | 168 | |
169 | - echo $count . " applications in Draft Mode and older than " . $days . " days will be deleted\n"; |
|
169 | + echo $count." applications in Draft Mode and older than ".$days." days will be deleted\n"; |
|
170 | 170 | |
171 | 171 | $progress = new ProgressBar($count); |
172 | 172 | |
173 | 173 | foreach ($applications as $application) { |
174 | - $progress->update($i++, 'Application ' . $i . ' / ' . $count); |
|
174 | + $progress->update($i++, 'Application '.$i.' / '.$count); |
|
175 | 175 | try { |
176 | 176 | $documentManager->remove($application); |
177 | 177 | } catch (\Exception $e) { |
@@ -198,17 +198,17 @@ discard block |
||
198 | 198 | |
199 | 199 | $table->appendRow(array('Module', 'Name', 'Description')); |
200 | 200 | |
201 | - $offset=strlen(getcwd())+1; |
|
202 | - $links=""; |
|
203 | - $github='https://github.com/cross-solution/YAWIK/blob/master/'; |
|
201 | + $offset = strlen(getcwd()) + 1; |
|
202 | + $links = ""; |
|
203 | + $github = 'https://github.com/cross-solution/YAWIK/blob/master/'; |
|
204 | 204 | |
205 | 205 | foreach ($config['view_manager']['template_map'] as $key => $absolute_filename) { |
206 | 206 | // strip the application_root plus an additional slash |
207 | - $filename=substr(realpath($absolute_filename), $offset); |
|
207 | + $filename = substr(realpath($absolute_filename), $offset); |
|
208 | 208 | if (preg_match('~module/([^/]+)~', $filename, $match)) { |
209 | - $module=$match[1]; |
|
209 | + $module = $match[1]; |
|
210 | 210 | } else { |
211 | - $module="not found ($key)"; |
|
211 | + $module = "not found ($key)"; |
|
212 | 212 | } |
213 | 213 | |
214 | 214 | $viewModel = new ViewModel(); |
@@ -217,17 +217,17 @@ discard block |
||
217 | 217 | $row = new Row(); |
218 | 218 | $row->appendColumn(new Column($module)); |
219 | 219 | if ($filename) { |
220 | - $row->appendColumn(new Column('`' . $key . '`_')); |
|
221 | - $links.='.. _'. $key .': '. $github.$filename .PHP_EOL; |
|
220 | + $row->appendColumn(new Column('`'.$key.'`_')); |
|
221 | + $links .= '.. _'.$key.': '.$github.$filename.PHP_EOL; |
|
222 | 222 | } else { |
223 | 223 | $row->appendColumn(new Column("WRONG CONFIGURATION")); |
224 | 224 | } |
225 | - $comment=""; |
|
225 | + $comment = ""; |
|
226 | 226 | if (file_exists($absolute_filename)) { |
227 | - $src=file_get_contents($absolute_filename); |
|
228 | - $comment="file exists"; |
|
227 | + $src = file_get_contents($absolute_filename); |
|
228 | + $comment = "file exists"; |
|
229 | 229 | if (preg_match("/{{rtd:\s*(.*)}}/", $src, $match)) { |
230 | - $comment=$match['1']; |
|
230 | + $comment = $match['1']; |
|
231 | 231 | } |
232 | 232 | } |
233 | 233 | $row->appendColumn(new Column($comment)); |
@@ -244,7 +244,7 @@ discard block |
||
244 | 244 | { |
245 | 245 | echo "Loading applications... "; |
246 | 246 | |
247 | - $filter = \Zend\Json\Json::decode($this->params('filter', '{}'), \Zend\Json\Json::TYPE_ARRAY); |
|
247 | + $filter = \Zend\Json\Json::decode($this->params('filter', '{}'), \Zend\Json\Json::TYPE_ARRAY); |
|
248 | 248 | $filter['$or'] = array( |
249 | 249 | array('attachments' => array('$exists' => 1)), |
250 | 250 | array('contact.image' => array('$exists' => 1)), |
@@ -258,7 +258,7 @@ discard block |
||
258 | 258 | return; |
259 | 259 | } |
260 | 260 | $progress = new ProgressBar($count); |
261 | - $i=0; |
|
261 | + $i = 0; |
|
262 | 262 | |
263 | 263 | foreach ($applications as $app) { |
264 | 264 | $progress->update($i++, "Process $i / $count"); |
@@ -42,7 +42,7 @@ |
||
42 | 42 | { |
43 | 43 | /* @var \Doctrine\ODM\MongoDB\Query\Builder $qb */ |
44 | 44 | $qb = $this->repository->createQueryBuilder(); |
45 | - $qb->field('title')->equals(new \MongoRegex('/' . addslashes($q) . '/i')); |
|
45 | + $qb->field('title')->equals(new \MongoRegex('/'.addslashes($q).'/i')); |
|
46 | 46 | $cursor = $qb->getQuery()->execute(); |
47 | 47 | |
48 | 48 | $adapter = new DoctrineMongoCursor($cursor); |
@@ -45,24 +45,24 @@ |
||
45 | 45 | 'log' => array( |
46 | 46 | 'Core/Log' => array( |
47 | 47 | 'writers' => array( |
48 | - array( |
|
49 | - 'name' => 'stream', |
|
48 | + array( |
|
49 | + 'name' => 'stream', |
|
50 | 50 | 'priority' => 1000, |
51 | 51 | 'options' => array( |
52 | - 'stream' => getcwd().'/var/log/yawik.log', |
|
52 | + 'stream' => getcwd().'/var/log/yawik.log', |
|
53 | + ), |
|
53 | 54 | ), |
54 | - ), |
|
55 | 55 | ), |
56 | 56 | ), |
57 | 57 | 'Log/Core/Mail' => array( |
58 | 58 | 'writers' => array( |
59 | - array( |
|
60 | - 'name' => 'stream', |
|
59 | + array( |
|
60 | + 'name' => 'stream', |
|
61 | 61 | 'priority' => 1000, |
62 | 62 | 'options' => array( |
63 | - 'stream' => getcwd().'/var/log/mails.log', |
|
63 | + 'stream' => getcwd().'/var/log/mails.log', |
|
64 | + ), |
|
64 | 65 | ), |
65 | - ), |
|
66 | 66 | ), |
67 | 67 | ), |
68 | 68 | ), |
@@ -22,7 +22,7 @@ discard block |
||
22 | 22 | use Core\Service\Tracy; |
23 | 23 | use Zend\I18n\Translator\Resources; |
24 | 24 | |
25 | -$doctrineConfig = include __DIR__ . '/doctrine.config.php'; |
|
25 | +$doctrineConfig = include __DIR__.'/doctrine.config.php'; |
|
26 | 26 | |
27 | 27 | |
28 | 28 | return array( |
@@ -30,7 +30,7 @@ discard block |
||
30 | 30 | 'doctrine' => $doctrineConfig, |
31 | 31 | |
32 | 32 | 'options' => [ |
33 | - 'Core/MailServiceOptions' => [ 'class' => '\Core\Options\MailServiceOptions' ], |
|
33 | + 'Core/MailServiceOptions' => ['class' => '\Core\Options\MailServiceOptions'], |
|
34 | 34 | ], |
35 | 35 | |
36 | 36 | 'Core' => array( |
@@ -265,19 +265,19 @@ discard block |
||
265 | 265 | 'modules/Core/jsonEntityHydrator' => 'Core\Entity\Hydrator\JsonEntityHydratorFactory', |
266 | 266 | 'Core/EntityHydrator' => 'Core\Entity\Hydrator\EntityHydratorFactory', |
267 | 267 | 'Core/Options' => 'Core\Factory\ModuleOptionsFactory', |
268 | - 'Core/DoctrineMongoODM/RepositoryEvents' => [\Core\Repository\DoctrineMongoODM\Event\RepositoryEventsSubscriber::class,'factory'], |
|
269 | - 'DefaultListeners' => ['Core\Listener\DefaultListener','factory'], |
|
270 | - 'templateProviderStrategy' => ['Core\Form\Hydrator\Strategy\TemplateProviderStrategy','factory'], |
|
271 | - 'Core/Listener/DeferredListenerAggregate' => [\Core\Listener\DeferredListenerAggregate::class,'factory'], |
|
268 | + 'Core/DoctrineMongoODM/RepositoryEvents' => [\Core\Repository\DoctrineMongoODM\Event\RepositoryEventsSubscriber::class, 'factory'], |
|
269 | + 'DefaultListeners' => ['Core\Listener\DefaultListener', 'factory'], |
|
270 | + 'templateProviderStrategy' => ['Core\Form\Hydrator\Strategy\TemplateProviderStrategy', 'factory'], |
|
271 | + 'Core/Listener/DeferredListenerAggregate' => [\Core\Listener\DeferredListenerAggregate::class, 'factory'], |
|
272 | 272 | 'Core/Listener/CreatePaginator' => 'Core\Listener\CreatePaginatorListener::factory', |
273 | 273 | 'Core/Locale' => 'Core\I18n\LocaleFactory', |
274 | 274 | \Core\Listener\AjaxRouteListener::class => \Core\Factory\Listener\AjaxRouteListenerFactory::class, |
275 | 275 | \Core\Listener\DeleteImageSetListener::class => \Core\Factory\Listener\DeleteImageSetListenerFactory::class, |
276 | 276 | 'Imagine' => \Core\Factory\Service\ImagineFactory::class, |
277 | - 'Core/Listener/Notification' => [\Core\Listener\NotificationListener::class,'factory'], |
|
278 | - 'Tracy' => [Tracy::class,'factory'], |
|
277 | + 'Core/Listener/Notification' => [\Core\Listener\NotificationListener::class, 'factory'], |
|
278 | + 'Tracy' => [Tracy::class, 'factory'], |
|
279 | 279 | Service\EntityEraser\DefaultEntityLoaderListener::class => Service\EntityEraser\DefaultEntityLoaderListenerFactory::class, |
280 | - ClearCacheService::class => [ClearCacheService::class,'factory'] |
|
280 | + ClearCacheService::class => [ClearCacheService::class, 'factory'] |
|
281 | 281 | ), |
282 | 282 | 'abstract_factories' => array( |
283 | 283 | 'Core\Factory\OptionsAbstractFactory', |
@@ -300,7 +300,7 @@ discard block |
||
300 | 300 | 'translation_file_patterns' => array( |
301 | 301 | [ |
302 | 302 | 'type' => 'gettext', |
303 | - 'base_dir' => __DIR__ . '/../language', |
|
303 | + 'base_dir' => __DIR__.'/../language', |
|
304 | 304 | 'pattern' => '%s.mo', |
305 | 305 | ], |
306 | 306 | [ |
@@ -345,8 +345,8 @@ discard block |
||
345 | 345 | 'Core/File' => FileControllerFactory::class, |
346 | 346 | 'Core/Content' => LazyControllerFactory::class, |
347 | 347 | Controller\Console\PurgeController::class => Controller\Console\PurgeControllerFactory::class, |
348 | - AssetsInstallController::class => [AssetsInstallController::class,'factory'], |
|
349 | - ClearCacheController::class => [ClearCacheController::class,'factory'], |
|
348 | + AssetsInstallController::class => [AssetsInstallController::class, 'factory'], |
|
349 | + ClearCacheController::class => [ClearCacheController::class, 'factory'], |
|
350 | 350 | |
351 | 351 | ], |
352 | 352 | ), |
@@ -359,9 +359,9 @@ discard block |
||
359 | 359 | 'Core/SearchForm' => 'Core\Factory\Controller\Plugin\SearchFormFactory', |
360 | 360 | 'listquery' => 'Core\Controller\Plugin\ListQuery::factory', |
361 | 361 | 'mail' => 'Core\Controller\Plugin\Mail::factory', |
362 | - 'Core/Mailer' => ['Core\Controller\Plugin\Mailer','factory'], |
|
363 | - 'Core/CreatePaginator' => [\Core\Controller\Plugin\CreatePaginator::class,'factory'], |
|
364 | - 'Core/PaginatorService' => [\Core\Controller\Plugin\CreatePaginatorService::class,'factory'], |
|
362 | + 'Core/Mailer' => ['Core\Controller\Plugin\Mailer', 'factory'], |
|
363 | + 'Core/CreatePaginator' => [\Core\Controller\Plugin\CreatePaginator::class, 'factory'], |
|
364 | + 'Core/PaginatorService' => [\Core\Controller\Plugin\CreatePaginatorService::class, 'factory'], |
|
365 | 365 | Controller\Plugin\EntityEraser::class => Controller\Plugin\EntityEraserFactory::class, |
366 | 366 | ), |
367 | 367 | 'invokables' => array( |
@@ -392,32 +392,32 @@ discard block |
||
392 | 392 | 'exception_template' => 'error/index', |
393 | 393 | // Map template to files. Speeds up the lookup through the template stack. |
394 | 394 | 'template_map' => array( |
395 | - 'noscript-notice' => __DIR__ . '/../view/layout/_noscript-notice.phtml', |
|
396 | - 'layout/layout' => __DIR__ . '/../view/layout/layout.phtml', |
|
397 | - 'error/404' => __DIR__ . '/../view/error/404.phtml', |
|
398 | - 'error/403' => __DIR__ . '/../view/error/403.phtml', |
|
399 | - 'error/index' => __DIR__ . '/../view/error/index.phtml', |
|
400 | - 'main-navigation' => __DIR__ . '/../view/partial/main-navigation.phtml', |
|
401 | - 'pagination-control' => __DIR__ . '/../view/partial/pagination-control.phtml', |
|
402 | - 'core/loading-popup' => __DIR__ . '/../view/partial/loading-popup.phtml', |
|
403 | - 'core/notifications' => __DIR__ . '/../view/partial/notifications.phtml', |
|
404 | - 'form/core/buttons' => __DIR__ . '/../view/form/buttons.phtml', |
|
405 | - 'core/social-buttons' => __DIR__ . '/../view/partial/social-buttons.phtml', |
|
406 | - 'form/core/privacy' => __DIR__ . '/../view/form/privacy.phtml', |
|
407 | - 'core/form/permissions-fieldset' => __DIR__ . '/../view/form/permissions-fieldset.phtml', |
|
408 | - 'core/form/permissions-collection' => __DIR__ . '/../view/form/permissions-collection.phtml', |
|
409 | - 'core/form/container-view' => __DIR__ . '/../view/form/container.view.phtml', |
|
410 | - 'core/form/tree-manage.view' => __DIR__ . '/../view/form/tree-manage.view.phtml', |
|
411 | - 'core/form/tree-manage.form' => __DIR__ . '/../view/form/tree-manage.form.phtml', |
|
412 | - 'core/form/tree-add-item' => __DIR__ . '/../view/form/tree-add-item.phtml', |
|
413 | - 'mail/header' => __DIR__ . '/../view/mail/header.phtml', |
|
414 | - 'mail/footer' => __DIR__ . '/../view/mail/footer.phtml', |
|
415 | - 'mail/footer.en' => __DIR__ . '/../view/mail/footer.en.phtml', |
|
395 | + 'noscript-notice' => __DIR__.'/../view/layout/_noscript-notice.phtml', |
|
396 | + 'layout/layout' => __DIR__.'/../view/layout/layout.phtml', |
|
397 | + 'error/404' => __DIR__.'/../view/error/404.phtml', |
|
398 | + 'error/403' => __DIR__.'/../view/error/403.phtml', |
|
399 | + 'error/index' => __DIR__.'/../view/error/index.phtml', |
|
400 | + 'main-navigation' => __DIR__.'/../view/partial/main-navigation.phtml', |
|
401 | + 'pagination-control' => __DIR__.'/../view/partial/pagination-control.phtml', |
|
402 | + 'core/loading-popup' => __DIR__.'/../view/partial/loading-popup.phtml', |
|
403 | + 'core/notifications' => __DIR__.'/../view/partial/notifications.phtml', |
|
404 | + 'form/core/buttons' => __DIR__.'/../view/form/buttons.phtml', |
|
405 | + 'core/social-buttons' => __DIR__.'/../view/partial/social-buttons.phtml', |
|
406 | + 'form/core/privacy' => __DIR__.'/../view/form/privacy.phtml', |
|
407 | + 'core/form/permissions-fieldset' => __DIR__.'/../view/form/permissions-fieldset.phtml', |
|
408 | + 'core/form/permissions-collection' => __DIR__.'/../view/form/permissions-collection.phtml', |
|
409 | + 'core/form/container-view' => __DIR__.'/../view/form/container.view.phtml', |
|
410 | + 'core/form/tree-manage.view' => __DIR__.'/../view/form/tree-manage.view.phtml', |
|
411 | + 'core/form/tree-manage.form' => __DIR__.'/../view/form/tree-manage.form.phtml', |
|
412 | + 'core/form/tree-add-item' => __DIR__.'/../view/form/tree-add-item.phtml', |
|
413 | + 'mail/header' => __DIR__.'/../view/mail/header.phtml', |
|
414 | + 'mail/footer' => __DIR__.'/../view/mail/footer.phtml', |
|
415 | + 'mail/footer.en' => __DIR__.'/../view/mail/footer.en.phtml', |
|
416 | 416 | //'startpage' => __DIR__ . '/../view/layout/startpage.phtml', |
417 | 417 | ), |
418 | 418 | // Where to look for view templates not mapped above |
419 | 419 | 'template_path_stack' => array( |
420 | - __DIR__ . '/../view', |
|
420 | + __DIR__.'/../view', |
|
421 | 421 | ), |
422 | 422 | ), |
423 | 423 | 'view_helpers' => array( |
@@ -26,11 +26,11 @@ |
||
26 | 26 | // 'driver' => 'odm_default', |
27 | 27 | // |
28 | 28 | // 'generate_proxies' => true, |
29 | - 'proxy_dir' => getcwd().'/var/cache/DoctrineMongoODMModule/Proxy', |
|
29 | + 'proxy_dir' => getcwd().'/var/cache/DoctrineMongoODMModule/Proxy', |
|
30 | 30 | // 'proxy_namespace' => 'DoctrineMongoODMModule\Proxy', |
31 | 31 | // |
32 | 32 | // 'generate_hydrators' => true, |
33 | - 'hydrator_dir' => getcwd().'/var/cache/DoctrineMongoODMModule/Hydrator', |
|
33 | + 'hydrator_dir' => getcwd().'/var/cache/DoctrineMongoODMModule/Hydrator', |
|
34 | 34 | // 'hydrator_namespace' => 'DoctrineMongoODMModule\Hydrator', |
35 | 35 | // |
36 | 36 | // 'default_db' => '', |
@@ -57,7 +57,7 @@ |
||
57 | 57 | protected function checkObjectType($object) |
58 | 58 | { |
59 | 59 | if (!$object instanceof $this->objectType) { |
60 | - throw new \InvalidArgumentException('Wrapped entity must be of type ' . $this->objectType); |
|
60 | + throw new \InvalidArgumentException('Wrapped entity must be of type '.$this->objectType); |
|
61 | 61 | } |
62 | 62 | } |
63 | 63 | } |
@@ -43,7 +43,7 @@ |
||
43 | 43 | * @var array |
44 | 44 | */ |
45 | 45 | protected $images = [ |
46 | - ImageSetInterface::THUMBNAIL => [100,100], |
|
46 | + ImageSetInterface::THUMBNAIL => [100, 100], |
|
47 | 47 | ]; |
48 | 48 | |
49 | 49 | /** |
@@ -133,7 +133,7 @@ discard block |
||
133 | 133 | 'attributes', |
134 | 134 | 'options', |
135 | 135 | 'label' => 'options', |
136 | - 'required' => ['key' => ['attributes','*'], 'value' => 'required', 'if' => true], |
|
136 | + 'required' => ['key' => ['attributes', '*'], 'value' => 'required', 'if' => true], |
|
137 | 137 | 'type', |
138 | 138 | ] |
139 | 139 | ); |
@@ -252,7 +252,7 @@ discard block |
||
252 | 252 | $value = $source[$key]; |
253 | 253 | } |
254 | 254 | |
255 | - $tmpTarget =& $target; |
|
255 | + $tmpTarget = & $target; |
|
256 | 256 | foreach ($targetKeys as $targetKey) { |
257 | 257 | if ('*' == $targetKey) { |
258 | 258 | $targetKey = $key; |
@@ -260,7 +260,7 @@ discard block |
||
260 | 260 | if (!isset($tmpTarget[$targetKey])) { |
261 | 261 | $tmpTarget[$targetKey] = []; |
262 | 262 | } |
263 | - $tmpTarget =& $tmpTarget[$targetKey]; |
|
263 | + $tmpTarget = & $tmpTarget[$targetKey]; |
|
264 | 264 | } |
265 | 265 | |
266 | 266 | $tmpTarget = $value; |