@@ -82,7 +82,7 @@ discard block |
||
82 | 82 | * @var array |
83 | 83 | * @ODM\Field(type="collection") |
84 | 84 | */ |
85 | - protected $nativeLanguages=[]; |
|
85 | + protected $nativeLanguages = []; |
|
86 | 86 | |
87 | 87 | |
88 | 88 | /** |
@@ -267,7 +267,7 @@ discard block |
||
267 | 267 | */ |
268 | 268 | public function setIsDraft($isDraft) |
269 | 269 | { |
270 | - $this->isDraft=$isDraft; |
|
270 | + $this->isDraft = $isDraft; |
|
271 | 271 | return $this; |
272 | 272 | } |
273 | 273 | |
@@ -337,7 +337,7 @@ discard block |
||
337 | 337 | */ |
338 | 338 | public function setNativeLanguages($nativeLanguages) |
339 | 339 | { |
340 | - $this->nativeLanguages=$nativeLanguages; |
|
340 | + $this->nativeLanguages = $nativeLanguages; |
|
341 | 341 | return $this; |
342 | 342 | } |
343 | 343 |
@@ -31,7 +31,7 @@ discard block |
||
31 | 31 | * for multiple paths. |
32 | 32 | * example https://github.com/doctrine/DoctrineORMModule |
33 | 33 | */ |
34 | - 'paths' => [ __DIR__ . '/../src/Entity'] |
|
34 | + 'paths' => [__DIR__.'/../src/Entity'] |
|
35 | 35 | ], |
36 | 36 | ], |
37 | 37 | 'eventmanager' => [ |
@@ -92,10 +92,10 @@ discard block |
||
92 | 92 | 'Applications\Controller\MultiManage' => 'Applications\Controller\MultimanageController', |
93 | 93 | ], |
94 | 94 | 'factories' => [ |
95 | - 'Applications/Controller/Manage' => [ManageController::class,'factory'], |
|
96 | - 'Applications\Controller\Apply' => [ApplyController::class,'factory'], |
|
97 | - 'Applications/CommentController' => [CommentController::class,'factory'], |
|
98 | - 'Applications/Console' => [ConsoleController::class,'factory'], |
|
95 | + 'Applications/Controller/Manage' => [ManageController::class, 'factory'], |
|
96 | + 'Applications\Controller\Apply' => [ApplyController::class, 'factory'], |
|
97 | + 'Applications/CommentController' => [CommentController::class, 'factory'], |
|
98 | + 'Applications/Console' => [ConsoleController::class, 'factory'], |
|
99 | 99 | ] |
100 | 100 | ], |
101 | 101 | |
@@ -154,7 +154,7 @@ discard block |
||
154 | 154 | 'translation_file_patterns' => [ |
155 | 155 | [ |
156 | 156 | 'type' => 'gettext', |
157 | - 'base_dir' => __DIR__ . '/../language', |
|
157 | + 'base_dir' => __DIR__.'/../language', |
|
158 | 158 | 'pattern' => '%s.mo', |
159 | 159 | ], |
160 | 160 | ], |
@@ -162,16 +162,16 @@ discard block |
||
162 | 162 | // Configure the view service manager |
163 | 163 | 'view_manager' => [ |
164 | 164 | 'template_path_stack' => [ |
165 | - 'Applications' => __DIR__ . '/../view', |
|
165 | + 'Applications' => __DIR__.'/../view', |
|
166 | 166 | ], |
167 | 167 | 'template_map' => [ |
168 | - 'applications/error/not-found' => __DIR__ . '/../view/error/not-found.phtml', |
|
169 | - 'layout/apply' => __DIR__ . '/../view/layout/layout.phtml', |
|
170 | - 'applications/sidebar/manage' => __DIR__ . '/../view/sidebar/manage.phtml', |
|
171 | - 'applications/mail/forward' => __DIR__ . '/../view/mail/forward.phtml', |
|
172 | - 'applications/detail/pdf' => __DIR__ . '/../view/applications/manage/detail.pdf.phtml', |
|
173 | - 'applications/index/disclaimer' => __DIR__ . '/../view/applications/index/disclaimer.phtml', |
|
174 | - 'content/applications-privacy-policy' => __DIR__ . '/../view/applications/index/disclaimer.phtml', |
|
168 | + 'applications/error/not-found' => __DIR__.'/../view/error/not-found.phtml', |
|
169 | + 'layout/apply' => __DIR__.'/../view/layout/layout.phtml', |
|
170 | + 'applications/sidebar/manage' => __DIR__.'/../view/sidebar/manage.phtml', |
|
171 | + 'applications/mail/forward' => __DIR__.'/../view/mail/forward.phtml', |
|
172 | + 'applications/detail/pdf' => __DIR__.'/../view/applications/manage/detail.pdf.phtml', |
|
173 | + 'applications/index/disclaimer' => __DIR__.'/../view/applications/index/disclaimer.phtml', |
|
174 | + 'content/applications-privacy-policy' => __DIR__.'/../view/applications/index/disclaimer.phtml', |
|
175 | 175 | ] |
176 | 176 | ], |
177 | 177 | 'view_helpers' => [ |
@@ -241,7 +241,7 @@ discard block |
||
241 | 241 | 'factories' => [ |
242 | 242 | 'Applications/NewApplication' => 'Applications\Factory\Mail\NewApplicationFactory', |
243 | 243 | Mail\Confirmation::class => Factory\Mail\ConfirmationFactory::class, |
244 | - 'Applications/Forward' => [Forward::class,'factory'], |
|
244 | + 'Applications/Forward' => [Forward::class, 'factory'], |
|
245 | 245 | ], |
246 | 246 | 'aliases' => [ |
247 | 247 | 'Applications/Confirmation' => Mail\Confirmation::class, |
@@ -237,7 +237,7 @@ |
||
237 | 237 | */ |
238 | 238 | public function setAllowSubsequentAttachmentUpload($allowSubsequentAttachmentUpload) |
239 | 239 | { |
240 | - $this->allowSubsequentAttachmentUpload = (bool)$allowSubsequentAttachmentUpload; |
|
240 | + $this->allowSubsequentAttachmentUpload = (bool) $allowSubsequentAttachmentUpload; |
|
241 | 241 | |
242 | 242 | return $this; |
243 | 243 | } |
@@ -131,8 +131,8 @@ |
||
131 | 131 | */ |
132 | 132 | public function loadUnreadApplicationsForJob($job) |
133 | 133 | { |
134 | - $auth=$this->getService('AuthenticationService'); |
|
135 | - $qb=$this->createQueryBuilder() |
|
134 | + $auth = $this->getService('AuthenticationService'); |
|
135 | + $qb = $this->createQueryBuilder() |
|
136 | 136 | ->field("readBy")->notIn(array($auth->getUser()->getId())) |
137 | 137 | ->field("job")->equals(new \MongoId($job->getId())); |
138 | 138 | return $qb->getQuery()->execute(); |
@@ -42,7 +42,7 @@ |
||
42 | 42 | $dm = $eventArgs->getDocumentManager(); |
43 | 43 | $uow = $dm->getUnitOfWork(); |
44 | 44 | |
45 | - $filter = function ($element) { |
|
45 | + $filter = function($element) { |
|
46 | 46 | return $element instanceof ApplicationInterface |
47 | 47 | && $element->getPermissions()->hasChanged(); |
48 | 48 | }; |
@@ -23,7 +23,7 @@ discard block |
||
23 | 23 | * |
24 | 24 | * @var String |
25 | 25 | */ |
26 | - protected $repositoryName="Applications/Application"; |
|
26 | + protected $repositoryName = "Applications/Application"; |
|
27 | 27 | |
28 | 28 | /** |
29 | 29 | * Sortable fields |
@@ -81,7 +81,7 @@ discard block |
||
81 | 81 | $searchPatterns = array(); |
82 | 82 | |
83 | 83 | foreach (explode(' ', $search) as $searchItem) { |
84 | - $searchPatterns[] = new \MongoRegex('/^' . $searchItem . '/'); |
|
84 | + $searchPatterns[] = new \MongoRegex('/^'.$searchItem.'/'); |
|
85 | 85 | } |
86 | 86 | $queryBuilder->field('keywords')->all($searchPatterns); |
87 | 87 | } |
@@ -28,7 +28,7 @@ |
||
28 | 28 | { |
29 | 29 | public function __invoke(ContainerInterface $container, $requestedName, array $options = null) |
30 | 30 | { |
31 | - $auth = $container->get('AuthenticationService'); |
|
31 | + $auth = $container->get('AuthenticationService'); |
|
32 | 32 | $filter = new PaginationQuery($auth); |
33 | 33 | return $filter; |
34 | 34 | } |
@@ -25,7 +25,7 @@ |
||
25 | 25 | */ |
26 | 26 | public function findByUri($uri, $create = false) |
27 | 27 | { |
28 | - $subscriber = $this->findOneBy(array( "uri" => $uri )); |
|
28 | + $subscriber = $this->findOneBy(array("uri" => $uri)); |
|
29 | 29 | if (!isset($subscriber) && $create) { |
30 | 30 | $subscriber = $this->create(); |
31 | 31 | $subscriber->uri = $uri; |
@@ -22,7 +22,7 @@ |
||
22 | 22 | */ |
23 | 23 | class JobSelect extends Select implements HeadscriptProviderInterface |
24 | 24 | { |
25 | - private $scripts = [ 'modules/Applications/js/form.job-select.js' ]; |
|
25 | + private $scripts = ['modules/Applications/js/form.job-select.js']; |
|
26 | 26 | |
27 | 27 | /** |
28 | 28 | * Sets the array of script names. |