@@ -1,10 +1,10 @@ |
||
1 | 1 | <?php |
2 | 2 | /** |
3 | - * YAWIK |
|
4 | - * |
|
5 | - * @copyright (c) 2013-2015 Cross Solution (http://cross-solution.de) |
|
6 | - * @license MIT |
|
7 | - */ |
|
3 | + * YAWIK |
|
4 | + * |
|
5 | + * @copyright (c) 2013-2015 Cross Solution (http://cross-solution.de) |
|
6 | + * @license MIT |
|
7 | + */ |
|
8 | 8 | |
9 | 9 | namespace Organizations\Entity; |
10 | 10 |
@@ -499,7 +499,7 @@ |
||
499 | 499 | */ |
500 | 500 | public function getTemplate() |
501 | 501 | { |
502 | - if (null === $this->template){ |
|
502 | + if (null === $this->template) { |
|
503 | 503 | $this->template = new Template(); |
504 | 504 | } |
505 | 505 | return $this->template; |
@@ -1,11 +1,11 @@ discard block |
||
1 | 1 | <?php |
2 | 2 | /** |
3 | - * YAWIK |
|
4 | - * Organization configuration |
|
5 | - * |
|
6 | - * @copyright (c) 2013-2015 Cross Solution (http://cross-solution.de) |
|
7 | - * @license GPLv3 |
|
8 | - */ |
|
3 | + * YAWIK |
|
4 | + * Organization configuration |
|
5 | + * |
|
6 | + * @copyright (c) 2013-2015 Cross Solution (http://cross-solution.de) |
|
7 | + * @license GPLv3 |
|
8 | + */ |
|
9 | 9 | |
10 | 10 | namespace Organizations\Entity; |
11 | 11 | |
@@ -92,23 +92,23 @@ discard block |
||
92 | 92 | public function getHiringOrganizations(); |
93 | 93 | |
94 | 94 | /** |
95 | - * Sets the name of the organization |
|
96 | - * |
|
97 | - * @param OrganizationName organizationName |
|
98 | - * @return OrganizationInterface |
|
99 | - */ |
|
95 | + * Sets the name of the organization |
|
96 | + * |
|
97 | + * @param OrganizationName organizationName |
|
98 | + * @return OrganizationInterface |
|
99 | + */ |
|
100 | 100 | public function setOrganizationName(OrganizationName $organizationNames); |
101 | 101 | |
102 | - /** |
|
103 | - * Gets the name of the organization |
|
104 | - * |
|
105 | - * @return OrganizationName |
|
106 | - */ |
|
102 | + /** |
|
103 | + * Gets the name of the organization |
|
104 | + * |
|
105 | + * @return OrganizationName |
|
106 | + */ |
|
107 | 107 | public function getOrganizationName(); |
108 | 108 | |
109 | - /** |
|
110 | - * @return string |
|
111 | - */ |
|
109 | + /** |
|
110 | + * @return string |
|
111 | + */ |
|
112 | 112 | public function getDescription(); |
113 | 113 | |
114 | 114 | /** |
@@ -1,11 +1,11 @@ discard block |
||
1 | 1 | <?php |
2 | 2 | /** |
3 | - * YAWIK |
|
4 | - * |
|
5 | - * @filesource |
|
6 | - * @license MIT |
|
7 | - * @copyright 2013 - 2015 Cross Solution <http://cross-solution.de> |
|
8 | - */ |
|
3 | + * YAWIK |
|
4 | + * |
|
5 | + * @filesource |
|
6 | + * @license MIT |
|
7 | + * @copyright 2013 - 2015 Cross Solution <http://cross-solution.de> |
|
8 | + */ |
|
9 | 9 | |
10 | 10 | /** */ |
11 | 11 | namespace Organizations\Factory\Controller\Plugin; |
@@ -40,8 +40,8 @@ discard block |
||
40 | 40 | |
41 | 41 | $plugin = new AcceptInvitationHandler(); |
42 | 42 | $plugin->setUserRepository($userRepository) |
43 | - ->setOrganizationRepository($organizationRepository) |
|
44 | - ->setAuthenticationService($authenticationService); |
|
43 | + ->setOrganizationRepository($organizationRepository) |
|
44 | + ->setAuthenticationService($authenticationService); |
|
45 | 45 | |
46 | 46 | return $plugin; |
47 | 47 | } |
@@ -1,11 +1,11 @@ discard block |
||
1 | 1 | <?php |
2 | 2 | /** |
3 | - * YAWIK |
|
4 | - * |
|
5 | - * @filesource |
|
6 | - * @license MIT |
|
7 | - * @copyright 2013 - 2015 Cross Solution <http://cross-solution.de> |
|
8 | - */ |
|
3 | + * YAWIK |
|
4 | + * |
|
5 | + * @filesource |
|
6 | + * @license MIT |
|
7 | + * @copyright 2013 - 2015 Cross Solution <http://cross-solution.de> |
|
8 | + */ |
|
9 | 9 | |
10 | 10 | /** */ |
11 | 11 | namespace Organizations\Factory\Controller\Plugin; |
@@ -41,10 +41,10 @@ discard block |
||
41 | 41 | |
42 | 42 | $plugin = new InvitationHandler(); |
43 | 43 | $plugin->setEmailValidator($validator) |
44 | - ->setMailerPlugin($mailer) |
|
45 | - ->setTranslator($translator) |
|
46 | - ->setUserRepository($repository) |
|
47 | - ->setUserTokenGenerator($generator); |
|
44 | + ->setMailerPlugin($mailer) |
|
45 | + ->setTranslator($translator) |
|
46 | + ->setUserRepository($repository) |
|
47 | + ->setUserTokenGenerator($generator); |
|
48 | 48 | |
49 | 49 | return $plugin; |
50 | 50 | } |
@@ -1,11 +1,11 @@ |
||
1 | 1 | <?php |
2 | 2 | /** |
3 | - * YAWIK |
|
4 | - * |
|
5 | - * @filesource |
|
6 | - * @copyright (c) 2013-2015 Cross Solution (http://cross-solution.de) |
|
7 | - * @license MIT |
|
8 | - */ |
|
3 | + * YAWIK |
|
4 | + * |
|
5 | + * @filesource |
|
6 | + * @copyright (c) 2013-2015 Cross Solution (http://cross-solution.de) |
|
7 | + * @license MIT |
|
8 | + */ |
|
9 | 9 | |
10 | 10 | namespace Organizations\Factory\Controller; |
11 | 11 |
@@ -1,11 +1,11 @@ discard block |
||
1 | 1 | <?php |
2 | 2 | /** |
3 | - * YAWIK |
|
4 | - * |
|
5 | - * @filesource |
|
6 | - * @license MIT |
|
7 | - * @copyright 2013 - 2015 Cross Solution <http://cross-solution.de> |
|
8 | - */ |
|
3 | + * YAWIK |
|
4 | + * |
|
5 | + * @filesource |
|
6 | + * @license MIT |
|
7 | + * @copyright 2013 - 2015 Cross Solution <http://cross-solution.de> |
|
8 | + */ |
|
9 | 9 | |
10 | 10 | /** */ |
11 | 11 | namespace Organizations\Factory\Form; |
@@ -44,7 +44,7 @@ discard block |
||
44 | 44 | $repositories = $services->get('repositories'); |
45 | 45 | $users = $repositories->get('Auth/User'); /* @var $users \Auth\Repository\User */ |
46 | 46 | |
47 | - /* todo: WRITE own Hydrator strategy class */ |
|
47 | + /* todo: WRITE own Hydrator strategy class */ |
|
48 | 48 | $strategy = new ClosureStrategy( |
49 | 49 | function ($object) use ($users) { |
50 | 50 | |
@@ -71,7 +71,7 @@ discard block |
||
71 | 71 | foreach (array( |
72 | 72 | Perms::JOBS_VIEW, Perms::JOBS_CHANGE, PERMS::JOBS_CREATE, |
73 | 73 | Perms::APPLICATIONS_VIEW, Perms::APPLICATIONS_CHANGE) |
74 | - as $perm) { |
|
74 | + as $perm) { |
|
75 | 75 | if ($object->isAllowed($perm)) { |
76 | 76 | $values[] = $perm; |
77 | 77 | } |
@@ -46,14 +46,14 @@ discard block |
||
46 | 46 | |
47 | 47 | /* todo: WRITE own Hydrator strategy class */ |
48 | 48 | $strategy = new ClosureStrategy( |
49 | - function ($object) use ($users) { |
|
49 | + function($object) use ($users) { |
|
50 | 50 | |
51 | 51 | if (is_string($object)) { |
52 | 52 | return $users->find($object); |
53 | 53 | } |
54 | 54 | return $object; |
55 | 55 | }, |
56 | - function ($data) use ($users) { |
|
56 | + function($data) use ($users) { |
|
57 | 57 | |
58 | 58 | if (is_string($data)) { |
59 | 59 | $data = $users->find($data); |
@@ -65,7 +65,7 @@ discard block |
||
65 | 65 | /* todo: write own strategy class */ |
66 | 66 | $permStrategy = new ClosureStrategy( |
67 | 67 | // extract |
68 | - function ($object) { |
|
68 | + function($object) { |
|
69 | 69 | /* @var $object \Organizations\Entity\EmployeePermissionsInterface */ |
70 | 70 | $values = array(); |
71 | 71 | foreach (array( |
@@ -80,10 +80,10 @@ discard block |
||
80 | 80 | |
81 | 81 | return $values; |
82 | 82 | }, |
83 | - function ($data) { |
|
83 | + function($data) { |
|
84 | 84 | $permissions = array_reduce( |
85 | 85 | $data, |
86 | - function ($c, $i) { |
|
86 | + function($c, $i) { |
|
87 | 87 | return $c | $i; |
88 | 88 | }, |
89 | 89 | 0 |
@@ -1,11 +1,11 @@ |
||
1 | 1 | <?php |
2 | 2 | /** |
3 | - * YAWIK |
|
4 | - * |
|
5 | - * @filesource |
|
6 | - * @license MIT |
|
7 | - * @copyright 2013 - 2015 Cross Solution <http://cross-solution.de> |
|
8 | - */ |
|
3 | + * YAWIK |
|
4 | + * |
|
5 | + * @filesource |
|
6 | + * @license MIT |
|
7 | + * @copyright 2013 - 2015 Cross Solution <http://cross-solution.de> |
|
8 | + */ |
|
9 | 9 | |
10 | 10 | /** */ |
11 | 11 | namespace Organizations\Form\Element; |
@@ -23,7 +23,7 @@ |
||
23 | 23 | * |
24 | 24 | * @var string |
25 | 25 | */ |
26 | - protected $options="Jobs/Options"; |
|
26 | + protected $options = "Jobs/Options"; |
|
27 | 27 | |
28 | 28 | protected function configureForm($form, AbstractOptions $options) |
29 | 29 | { |
@@ -1,11 +1,11 @@ |
||
1 | 1 | <?php |
2 | 2 | /** |
3 | - * YAWIK |
|
4 | - * |
|
5 | - * @filesource |
|
6 | - * @copyright (c) 2013-2015 Cross Solution (http://cross-solution.de) |
|
7 | - * @license MIT |
|
8 | - */ |
|
3 | + * YAWIK |
|
4 | + * |
|
5 | + * @filesource |
|
6 | + * @copyright (c) 2013-2015 Cross Solution (http://cross-solution.de) |
|
7 | + * @license MIT |
|
8 | + */ |
|
9 | 9 | |
10 | 10 | /** SettingsEntityResolverFactory.php */ |
11 | 11 | namespace Settings\Repository; |
@@ -24,7 +24,7 @@ |
||
24 | 24 | public function getHydrator() |
25 | 25 | { |
26 | 26 | if (!$this->hydrator) { |
27 | - $hydrator = new EntityHydrator(); |
|
27 | + $hydrator = new EntityHydrator(); |
|
28 | 28 | $this->setHydrator($hydrator); |
29 | 29 | } |
30 | 30 | return $this->hydrator; |
@@ -1,12 +1,12 @@ |
||
1 | 1 | <?php |
2 | 2 | /** |
3 | - * YAWIK |
|
4 | - * |
|
5 | - * @filesource |
|
6 | - * @copyright (c) 2013-2015 Cross Solution (http://cross-solution.de) |
|
7 | - * @license MIT |
|
8 | - * @author Mathias Weitz <[email protected]> |
|
9 | - */ |
|
3 | + * YAWIK |
|
4 | + * |
|
5 | + * @filesource |
|
6 | + * @copyright (c) 2013-2015 Cross Solution (http://cross-solution.de) |
|
7 | + * @license MIT |
|
8 | + * @author Mathias Weitz <[email protected]> |
|
9 | + */ |
|
10 | 10 | |
11 | 11 | namespace Organizations\Form; |
12 | 12 |