@@ -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); |
@@ -119,7 +119,7 @@ discard block |
||
119 | 119 | |
120 | 120 | |
121 | 121 | |
122 | - $format=$this->params()->fromQuery('format'); |
|
122 | + $format = $this->params()->fromQuery('format'); |
|
123 | 123 | |
124 | 124 | if ($application->isDraft()) { |
125 | 125 | $list = false; |
@@ -247,7 +247,7 @@ discard block |
||
247 | 247 | && ($network = $this->params()->fromQuery('network')) |
248 | 248 | && ($data = $this->params()->fromPost('data')) |
249 | 249 | ) { |
250 | - $profileClass = '\\Auth\\Entity\\SocialProfiles\\' . $network; |
|
250 | + $profileClass = '\\Auth\\Entity\\SocialProfiles\\'.$network; |
|
251 | 251 | $profile = new $profileClass(); |
252 | 252 | $profile->setData(\Zend\Json\Json::decode($data, \Zend\Json\Json::TYPE_ARRAY)); |
253 | 253 | } else { |
@@ -366,7 +366,7 @@ discard block |
||
366 | 366 | |
367 | 367 | $this->acl($application, 'forward'); |
368 | 368 | |
369 | - $translator = $services->get('translator'); |
|
369 | + $translator = $services->get('translator'); |
|
370 | 370 | |
371 | 371 | if (!$emailAddress) { |
372 | 372 | throw new \InvalidArgumentException('An email address must be supplied.'); |
@@ -407,7 +407,7 @@ discard block |
||
407 | 407 | { |
408 | 408 | $id = $this->params('id'); |
409 | 409 | $services = $this->serviceLocator; |
410 | - $repositories= $services->get('repositories'); |
|
410 | + $repositories = $services->get('repositories'); |
|
411 | 411 | $repository = $repositories->get('Applications/Application'); |
412 | 412 | $application = $repository->find($id); |
413 | 413 | |
@@ -417,8 +417,8 @@ discard block |
||
417 | 417 | |
418 | 418 | $this->acl($application, 'delete'); |
419 | 419 | |
420 | - $events = $services->get('Applications/Events'); |
|
421 | - $events->trigger(ApplicationEvent::EVENT_APPLICATION_PRE_DELETE, $this, [ 'application' => $application ]); |
|
420 | + $events = $services->get('Applications/Events'); |
|
421 | + $events->trigger(ApplicationEvent::EVENT_APPLICATION_PRE_DELETE, $this, ['application' => $application]); |
|
422 | 422 | |
423 | 423 | $repositories->remove($application); |
424 | 424 |
@@ -22,7 +22,7 @@ |
||
22 | 22 | */ |
23 | 23 | class JobSelect extends Select implements HeadscriptProviderInterface |
24 | 24 | { |
25 | - private $scripts = [ 'Applications/js/form.job-select.js' ]; |
|
25 | + private $scripts = ['Applications/js/form.job-select.js']; |
|
26 | 26 | |
27 | 27 | /** |
28 | 28 | * Sets the array of script names. |
@@ -26,7 +26,7 @@ discard block |
||
26 | 26 | * for multiple paths. |
27 | 27 | * example https://github.com/doctrine/DoctrineORMModule |
28 | 28 | */ |
29 | - 'paths' => [ __DIR__ . '/../src/Applications/Entity'] |
|
29 | + 'paths' => [__DIR__.'/../src/Applications/Entity'] |
|
30 | 30 | ], |
31 | 31 | ], |
32 | 32 | 'eventmanager' => [ |
@@ -144,7 +144,7 @@ discard block |
||
144 | 144 | 'translation_file_patterns' => [ |
145 | 145 | [ |
146 | 146 | 'type' => 'gettext', |
147 | - 'base_dir' => __DIR__ . '/../language', |
|
147 | + 'base_dir' => __DIR__.'/../language', |
|
148 | 148 | 'pattern' => '%s.mo', |
149 | 149 | ], |
150 | 150 | ], |
@@ -152,16 +152,16 @@ discard block |
||
152 | 152 | // Configure the view service manager |
153 | 153 | 'view_manager' => [ |
154 | 154 | 'template_path_stack' => [ |
155 | - 'Applications' => __DIR__ . '/../view', |
|
155 | + 'Applications' => __DIR__.'/../view', |
|
156 | 156 | ], |
157 | 157 | 'template_map' => [ |
158 | - 'applications/error/not-found' => __DIR__ . '/../view/error/not-found.phtml', |
|
159 | - 'layout/apply' => __DIR__ . '/../view/layout/layout.phtml', |
|
160 | - 'applications/sidebar/manage' => __DIR__ . '/../view/sidebar/manage.phtml', |
|
161 | - 'applications/mail/forward' => __DIR__ . '/../view/mail/forward.phtml', |
|
162 | - 'applications/detail/pdf' => __DIR__ . '/../view/applications/manage/detail.pdf.phtml', |
|
163 | - 'applications/index/disclaimer' => __DIR__ . '/../view/applications/index/disclaimer.phtml', |
|
164 | - 'content/applications-privacy-policy' => __DIR__ . '/../view/applications/index/disclaimer.phtml', |
|
158 | + 'applications/error/not-found' => __DIR__.'/../view/error/not-found.phtml', |
|
159 | + 'layout/apply' => __DIR__.'/../view/layout/layout.phtml', |
|
160 | + 'applications/sidebar/manage' => __DIR__.'/../view/sidebar/manage.phtml', |
|
161 | + 'applications/mail/forward' => __DIR__.'/../view/mail/forward.phtml', |
|
162 | + 'applications/detail/pdf' => __DIR__.'/../view/applications/manage/detail.pdf.phtml', |
|
163 | + 'applications/index/disclaimer' => __DIR__.'/../view/applications/index/disclaimer.phtml', |
|
164 | + 'content/applications-privacy-policy' => __DIR__.'/../view/applications/index/disclaimer.phtml', |
|
165 | 165 | ] |
166 | 166 | ], |
167 | 167 | 'view_helpers' => [ |