@@ -30,9 +30,9 @@ |
||
30 | 30 | $serviceLocator = $serviceLocator->getServiceLocator(); |
31 | 31 | $auth = $serviceLocator->get('AuthenticationService'); |
32 | 32 | /* @var RepositoryService $repositoryService */ |
33 | - $repositoryService = $serviceLocator->get('repositories'); |
|
33 | + $repositoryService = $serviceLocator->get('repositories'); |
|
34 | 34 | |
35 | - $translator = $serviceLocator->get('translator'); |
|
35 | + $translator = $serviceLocator->get('translator'); |
|
36 | 36 | return new ManageController($auth, $repositoryService, $translator); |
37 | 37 | } |
38 | 38 | } |
39 | 39 | \ No newline at end of file |
@@ -1,11 +1,11 @@ |
||
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 | namespace Organizations\Factory\Controller; |
11 | 11 |
@@ -155,8 +155,8 @@ |
||
155 | 155 | } |
156 | 156 | |
157 | 157 | /** |
158 | - * @param null $resource |
|
159 | - * @param null $privilege |
|
158 | + * @param null|string $resource |
|
159 | + * @param null|string $privilege |
|
160 | 160 | * @param string $mode |
161 | 161 | * @return $this|bool |
162 | 162 | */ |
@@ -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 | /** Acl.php */ |
11 | 11 | namespace Acl\Controller\Plugin; |
@@ -138,14 +138,14 @@ discard block |
||
138 | 138 | if (!$this->test($resource, $privilege)) { |
139 | 139 | $msg = null === $privilege |
140 | 140 | ? sprintf( |
141 | - 'You are not allowed to access resource "%s"', |
|
142 | - is_object($resource) ? $resource->getResourceId() : $resource |
|
143 | - ) |
|
141 | + 'You are not allowed to access resource "%s"', |
|
142 | + is_object($resource) ? $resource->getResourceId() : $resource |
|
143 | + ) |
|
144 | 144 | : sprintf( |
145 | - 'You are not allowed to execute operation "%s" on resource "%s"', |
|
146 | - $privilege, |
|
147 | - is_object($resource) ? $resource->getResourceId() : $resource |
|
148 | - ); |
|
145 | + 'You are not allowed to execute operation "%s" on resource "%s"', |
|
146 | + $privilege, |
|
147 | + is_object($resource) ? $resource->getResourceId() : $resource |
|
148 | + ); |
|
149 | 149 | |
150 | 150 | if ($resource instanceof FileInterface && 0 == strpos($resource->type, 'image/')) { |
151 | 151 | throw new UnauthorizedImageAccessException(str_replace('resource', 'image', $msg)); |
@@ -1,12 +1,12 @@ |
||
1 | 1 | <?php |
2 | 2 | /** |
3 | - * YAWIK |
|
4 | - * |
|
5 | - * @filesource |
|
6 | - * @copyright (c) 2013-2016 Cross Solution (http://cross-solution.de) |
|
7 | - * @author cbleek |
|
8 | - * @license MIT |
|
9 | - */ |
|
3 | + * YAWIK |
|
4 | + * |
|
5 | + * @filesource |
|
6 | + * @copyright (c) 2013-2016 Cross Solution (http://cross-solution.de) |
|
7 | + * @author cbleek |
|
8 | + * @license MIT |
|
9 | + */ |
|
10 | 10 | |
11 | 11 | namespace Core\Form\View\Helper; |
12 | 12 |
@@ -1,12 +1,12 @@ |
||
1 | 1 | <?php |
2 | 2 | /** |
3 | - * YAWIK |
|
4 | - * |
|
5 | - * @filesource |
|
6 | - * @copyright (c) 2013-2016 Cross Solution (http://cross-solution.de) |
|
7 | - * @author cbleek |
|
8 | - * @license MIT |
|
9 | - */ |
|
3 | + * YAWIK |
|
4 | + * |
|
5 | + * @filesource |
|
6 | + * @copyright (c) 2013-2016 Cross Solution (http://cross-solution.de) |
|
7 | + * @author cbleek |
|
8 | + * @license MIT |
|
9 | + */ |
|
10 | 10 | |
11 | 11 | namespace Core\Form\View\Helper; |
12 | 12 |
@@ -38,10 +38,10 @@ discard block |
||
38 | 38 | */ |
39 | 39 | protected $acl; |
40 | 40 | |
41 | - public function __construct(RepositoryService $repositoryService,AuthenticationService $auth, Acl $acl) { |
|
42 | - $this->repositoryService=$repositoryService; |
|
43 | - $this->auth=$auth; |
|
44 | - $this->acl=$acl; |
|
41 | + public function __construct(RepositoryService $repositoryService, AuthenticationService $auth, Acl $acl) { |
|
42 | + $this->repositoryService = $repositoryService; |
|
43 | + $this->auth = $auth; |
|
44 | + $this->acl = $acl; |
|
45 | 45 | } |
46 | 46 | |
47 | 47 | public function __invoke() |
@@ -56,15 +56,15 @@ discard block |
||
56 | 56 | * @return \Jobs\Entity\Job|object |
57 | 57 | * @throws \Doctrine\ODM\MongoDB\LockException |
58 | 58 | */ |
59 | - public function get(Params $params,$allowDraft = false) |
|
59 | + public function get(Params $params, $allowDraft = false) |
|
60 | 60 | { |
61 | 61 | /* @var \Jobs\Repository\Job $jobRepository */ |
62 | - $jobRepository = $this->repositoryService->get('Jobs/Job'); |
|
62 | + $jobRepository = $this->repositoryService->get('Jobs/Job'); |
|
63 | 63 | $idFromRoute = $params('id', 0); |
64 | 64 | $idFromQuery = $params->fromQuery('id', 0); |
65 | 65 | $idFromSubForm = $params->fromPost('job', 0); |
66 | 66 | |
67 | - $id = empty($idFromRoute)? (empty($idFromQuery)?$idFromSubForm:$idFromQuery) : $idFromRoute; |
|
67 | + $id = empty($idFromRoute) ? (empty($idFromQuery) ? $idFromSubForm : $idFromQuery) : $idFromRoute; |
|
68 | 68 | |
69 | 69 | if (empty($id) && $allowDraft) { |
70 | 70 | $this->acl->__invoke('Jobs/Manage', 'new'); |
@@ -80,7 +80,7 @@ |
||
80 | 80 | protected function editTemplateAction() |
81 | 81 | { |
82 | 82 | $id = $this->params('id'); |
83 | - $formIdentifier=$this->params()->fromQuery('form'); |
|
83 | + $formIdentifier = $this->params()->fromQuery('form'); |
|
84 | 84 | $job = $this->jobRepository->find($id); |
85 | 85 | |
86 | 86 | /** @var \Zend\Http\Request $request */ |
@@ -1,12 +1,12 @@ |
||
1 | 1 | <?php |
2 | 2 | /** |
3 | - * YAWIK |
|
4 | - * |
|
5 | - * @filesource |
|
6 | - * @copyright (c) 2013 - 2016 Cross Solution (http://cross-solution.de) |
|
7 | - * @author [email protected] |
|
8 | - * @license MIT |
|
9 | - */ |
|
3 | + * YAWIK |
|
4 | + * |
|
5 | + * @filesource |
|
6 | + * @copyright (c) 2013 - 2016 Cross Solution (http://cross-solution.de) |
|
7 | + * @author [email protected] |
|
8 | + * @license MIT |
|
9 | + */ |
|
10 | 10 | |
11 | 11 | namespace Jobs\Controller; |
12 | 12 |
@@ -81,7 +81,7 @@ |
||
81 | 81 | } |
82 | 82 | |
83 | 83 | /** |
84 | - * @param $property |
|
84 | + * @param string|null $property |
|
85 | 85 | * |
86 | 86 | * @return null |
87 | 87 | */ |
@@ -14,10 +14,10 @@ |
||
14 | 14 | protected $validator; |
15 | 15 | |
16 | 16 | /** |
17 | - * Get a validator if none has been set. |
|
18 | - * https://github.com/posabsolute/jQuery-Validation-Engine/issues/265 |
|
19 | - * @return RegexValidator |
|
20 | - */ |
|
17 | + * Get a validator if none has been set. |
|
18 | + * https://github.com/posabsolute/jQuery-Validation-Engine/issues/265 |
|
19 | + * @return RegexValidator |
|
20 | + */ |
|
21 | 21 | public function getValidator() |
22 | 22 | { |
23 | 23 | if (null === $this->validator) { |
@@ -22,7 +22,7 @@ |
||
22 | 22 | * Creates an instance of MailForgotPassword |
23 | 23 | * |
24 | 24 | * @param ServiceLocatorInterface $serviceLocator |
25 | - * @return \Auth\View\Helper\Auth |
|
25 | + * @return MailForgotPassword |
|
26 | 26 | * @see \Zend\ServiceManager\FactoryInterface::createService() |
27 | 27 | */ |
28 | 28 | public function createService(ServiceLocatorInterface $serviceLocator) |
@@ -30,7 +30,7 @@ |
||
30 | 30 | $options = $serviceLocator->get('Auth\Options'); |
31 | 31 | $coreOptions = $serviceLocator->get('Core\Options'); |
32 | 32 | $mailService = $serviceLocator->get('Core\MailService'); |
33 | - $listener = new MailForgotPassword($options,$mailService, $coreOptions); |
|
33 | + $listener = new MailForgotPassword($options, $mailService, $coreOptions); |
|
34 | 34 | return $listener; |
35 | 35 | } |
36 | 36 | } |
@@ -1,11 +1,11 @@ |
||
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 | /** SettingsEntityResolverFactory.php */ |
11 | 11 | namespace Settings\Repository; |
@@ -1,12 +1,12 @@ |
||
1 | 1 | <?php |
2 | 2 | /** |
3 | - * YAWIK |
|
4 | - * |
|
5 | - * @filesource |
|
6 | - * @copyright (c) 2013-2016 Cross Solution (http://cross-solution.de) |
|
7 | - * @author cbleek |
|
8 | - * @license MIT |
|
9 | - */ |
|
3 | + * YAWIK |
|
4 | + * |
|
5 | + * @filesource |
|
6 | + * @copyright (c) 2013-2016 Cross Solution (http://cross-solution.de) |
|
7 | + * @author cbleek |
|
8 | + * @license MIT |
|
9 | + */ |
|
10 | 10 | |
11 | 11 | namespace Core\Form\View\Helper; |
12 | 12 |