@@ -169,7 +169,7 @@ |
||
| 169 | 169 | /** |
| 170 | 170 | * Gets the parent of an organization |
| 171 | 171 | * |
| 172 | - * @return null|OrganizationInterface |
|
| 172 | + * @return OrganizationInterface |
|
| 173 | 173 | */ |
| 174 | 174 | public function getParent() |
| 175 | 175 | { |
@@ -1,11 +1,11 @@ discard block |
||
| 1 | 1 | <?php |
| 2 | 2 | /** |
| 3 | - * YAWIK |
|
| 4 | - * |
|
| 5 | - * @filesource |
|
| 6 | - * @copyright (c) 2013 - 2016 Cross Solution (http://cross-solution.de) |
|
| 7 | - * @license MIT |
|
| 8 | - */ |
|
| 3 | + * YAWIK |
|
| 4 | + * |
|
| 5 | + * @filesource |
|
| 6 | + * @copyright (c) 2013 - 2016 Cross Solution (http://cross-solution.de) |
|
| 7 | + * @license MIT |
|
| 8 | + */ |
|
| 9 | 9 | |
| 10 | 10 | /** CommentController.php */ |
| 11 | 11 | namespace Applications\Controller; |
@@ -107,7 +107,7 @@ discard block |
||
| 107 | 107 | $application->comments->add($comment); |
| 108 | 108 | $application->changeStatus($application->getStatus(), sprintf( |
| 109 | 109 | /* @translate */ 'Application was rated by %s' , |
| 110 | - $this->auth()->getUser()->getInfo()->getDisplayName()) |
|
| 110 | + $this->auth()->getUser()->getInfo()->getDisplayName()) |
|
| 111 | 111 | ); |
| 112 | 112 | } |
| 113 | 113 | $viewModel->setVariable('isSaved', true); |
@@ -106,7 +106,7 @@ |
||
| 106 | 106 | $application = $repository->find($appId); |
| 107 | 107 | $application->comments->add($comment); |
| 108 | 108 | $application->changeStatus($application->getStatus(), sprintf( |
| 109 | - /* @translate */ 'Application was rated by %s' , |
|
| 109 | + /* @translate */ 'Application was rated by %s', |
|
| 110 | 110 | $this->auth()->getUser()->getInfo()->getDisplayName()) |
| 111 | 111 | ); |
| 112 | 112 | } |
@@ -1,11 +1,11 @@ discard block |
||
| 1 | 1 | <?php |
| 2 | 2 | /** |
| 3 | - * YAWIK |
|
| 4 | - * |
|
| 5 | - * @filesource |
|
| 6 | - * @copyright (c) 2013 - 2016 Cross Solution (http://cross-solution.de) |
|
| 7 | - * @license MIT |
|
| 8 | - */ |
|
| 3 | + * YAWIK |
|
| 4 | + * |
|
| 5 | + * @filesource |
|
| 6 | + * @copyright (c) 2013 - 2016 Cross Solution (http://cross-solution.de) |
|
| 7 | + * @license MIT |
|
| 8 | + */ |
|
| 9 | 9 | |
| 10 | 10 | /** Applications controller */ |
| 11 | 11 | namespace Applications\Controller; |
@@ -146,7 +146,7 @@ discard block |
||
| 146 | 146 | $application->changeStatus( |
| 147 | 147 | $application->getStatus(), |
| 148 | 148 | sprintf(/*@translate*/ 'Application was read by %s' , |
| 149 | - $this->auth()->getUser()->getInfo()->getDisplayName())); |
|
| 149 | + $this->auth()->getUser()->getInfo()->getDisplayName())); |
|
| 150 | 150 | } |
| 151 | 151 | |
| 152 | 152 | |
@@ -173,9 +173,9 @@ discard block |
||
| 173 | 173 | $viewModel->setVariables( |
| 174 | 174 | /*array( |
| 175 | 175 | 'application' => */$this->getServiceLocator() |
| 176 | - ->get('builders') |
|
| 177 | - ->get('JsonApplication') |
|
| 178 | - ->unbuild($application) |
|
| 176 | + ->get('builders') |
|
| 177 | + ->get('JsonApplication') |
|
| 178 | + ->unbuild($application) |
|
| 179 | 179 | ); |
| 180 | 180 | $viewModel->setVariable('isUnread', $applicationIsUnread); |
| 181 | 181 | $return = $viewModel; |
@@ -370,7 +370,7 @@ discard block |
||
| 370 | 370 | $emailAddress = $this->params()->fromQuery('email'); |
| 371 | 371 | /* @var \Applications\Entity\Application $application */ |
| 372 | 372 | $application = $services->get('repositories')->get('Applications/Application') |
| 373 | - ->find($this->params('id')); |
|
| 373 | + ->find($this->params('id')); |
|
| 374 | 374 | |
| 375 | 375 | $this->acl($application, 'forward'); |
| 376 | 376 | |
@@ -84,7 +84,7 @@ discard block |
||
| 84 | 84 | } |
| 85 | 85 | $statusElement->setValueOptions($statesForSelections); |
| 86 | 86 | |
| 87 | - $job = $params->job ? $jobRepository->find($params->job) : null; |
|
| 87 | + $job = $params->job ? $jobRepository->find($params->job) : null; |
|
| 88 | 88 | $paginator = $this->paginator('Applications/Application', $params); |
| 89 | 89 | |
| 90 | 90 | if ($job) { |
@@ -145,13 +145,13 @@ discard block |
||
| 145 | 145 | $applicationIsUnread = true; |
| 146 | 146 | $application->changeStatus( |
| 147 | 147 | $application->getStatus(), |
| 148 | - sprintf(/*@translate*/ 'Application was read by %s' , |
|
| 148 | + sprintf(/*@translate*/ 'Application was read by %s', |
|
| 149 | 149 | $this->auth()->getUser()->getInfo()->getDisplayName())); |
| 150 | 150 | } |
| 151 | 151 | |
| 152 | 152 | |
| 153 | 153 | |
| 154 | - $format=$this->params()->fromQuery('format'); |
|
| 154 | + $format = $this->params()->fromQuery('format'); |
|
| 155 | 155 | |
| 156 | 156 | if ($application->isDraft()) { |
| 157 | 157 | $list = false; |
@@ -332,11 +332,11 @@ discard block |
||
| 332 | 332 | default: |
| 333 | 333 | throw new \InvalidArgumentException('Unknown status value.'); |
| 334 | 334 | } |
| 335 | - $mailText = $settings->$key ? $settings->$key : ''; |
|
| 335 | + $mailText = $settings->$key ? $settings->$key : ''; |
|
| 336 | 336 | $this->notification()->success($mailText); |
| 337 | 337 | $mail->setBody($mailText); |
| 338 | 338 | $mailText = $mail->getBodyText(); |
| 339 | - $mailSubject = sprintf( |
|
| 339 | + $mailSubject = sprintf( |
|
| 340 | 340 | $translator->translate('Your application dated %s'), |
| 341 | 341 | strftime('%x', $application->getDateCreated()->getTimestamp()) |
| 342 | 342 | ); |
@@ -374,7 +374,7 @@ discard block |
||
| 374 | 374 | |
| 375 | 375 | $this->acl($application, 'forward'); |
| 376 | 376 | |
| 377 | - $translator = $services->get('translator'); |
|
| 377 | + $translator = $services->get('translator'); |
|
| 378 | 378 | |
| 379 | 379 | if (!$emailAddress) { |
| 380 | 380 | throw new \InvalidArgumentException('An email address must be supplied.'); |
@@ -416,7 +416,7 @@ discard block |
||
| 416 | 416 | { |
| 417 | 417 | $id = $this->params('id'); |
| 418 | 418 | $services = $this->getServiceLocator(); |
| 419 | - $repositories= $services->get('repositories'); |
|
| 419 | + $repositories = $services->get('repositories'); |
|
| 420 | 420 | $repository = $repositories->get('Applications/Application'); |
| 421 | 421 | $application = $repository->find($id); |
| 422 | 422 | |
@@ -1,11 +1,11 @@ discard block |
||
| 1 | 1 | <?php |
| 2 | 2 | /** |
| 3 | - * YAWIK |
|
| 4 | - * |
|
| 5 | - * @filesource |
|
| 6 | - * @copyright (c) 2013 Cross Solution (http://cross-solution.de) |
|
| 7 | - * @license MIT |
|
| 8 | - */ |
|
| 3 | + * YAWIK |
|
| 4 | + * |
|
| 5 | + * @filesource |
|
| 6 | + * @copyright (c) 2013 Cross Solution (http://cross-solution.de) |
|
| 7 | + * @license MIT |
|
| 8 | + */ |
|
| 9 | 9 | |
| 10 | 10 | /** Applications controller */ |
| 11 | 11 | namespace Applications\Controller; |
@@ -137,8 +137,8 @@ discard block |
||
| 137 | 137 | $application->changeStatus( |
| 138 | 138 | Status::REJECTED, |
| 139 | 139 | sprintf( |
| 140 | - /*@translate */ 'Mail was sent to %s', |
|
| 141 | - $application->contact->email |
|
| 140 | + /*@translate */ 'Mail was sent to %s', |
|
| 141 | + $application->contact->email |
|
| 142 | 142 | ) |
| 143 | 143 | ); |
| 144 | 144 | $repositoryService->store($application); |
@@ -46,7 +46,7 @@ |
||
| 46 | 46 | */ |
| 47 | 47 | function getUri() |
| 48 | 48 | { |
| 49 | - return '/' . trim('file/Organizations.OrganizationImage/' . $this->id . "/" . urlencode($this->name),'/'); |
|
| 49 | + return '/' . trim('file/Organizations.OrganizationImage/' . $this->id . "/" . urlencode($this->name), '/'); |
|
| 50 | 50 | } |
| 51 | 51 | |
| 52 | 52 | /** |