@@ -27,13 +27,13 @@ |
||
27 | 27 | * |
28 | 28 | * @var int |
29 | 29 | */ |
30 | - const JOBS_VIEW = 16; // 10000 |
|
31 | - const JOBS_CREATE = 24; // 11000 # Create w/o View makes no sense |
|
32 | - const JOBS_CHANGE = 20; // 10100 # Change w/o view makes no sense |
|
33 | - const APPLICATIONS_VIEW = 2; // 00010 |
|
34 | - const APPLICATIONS_CHANGE = 3; // 00011 # change w/o view makes no sense |
|
35 | - const ALL = 31; // 11111 |
|
36 | - const NONE = 0; // 00000 |
|
30 | + const JOBS_VIEW = 16; // 10000 |
|
31 | + const JOBS_CREATE = 24; // 11000 # Create w/o View makes no sense |
|
32 | + const JOBS_CHANGE = 20; // 10100 # Change w/o view makes no sense |
|
33 | + const APPLICATIONS_VIEW = 2; // 00010 |
|
34 | + const APPLICATIONS_CHANGE = 3; // 00011 # change w/o view makes no sense |
|
35 | + const ALL = 31; // 11111 |
|
36 | + const NONE = 0; // 00000 |
|
37 | 37 | /**#@- */ |
38 | 38 | |
39 | 39 | /** |
@@ -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\Repository\Event; |
@@ -1,11 +1,11 @@ discard block |
||
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 | /** OrganizationEntityHydrator.php */ |
11 | 11 | namespace Organizations\Entity\Hydrator; |
@@ -41,11 +41,11 @@ discard block |
||
41 | 41 | } |
42 | 42 | |
43 | 43 | /** |
44 | - * Extract values from an object |
|
45 | - * |
|
46 | - * @param object $object |
|
47 | - * @return array |
|
48 | - */ |
|
44 | + * Extract values from an object |
|
45 | + * |
|
46 | + * @param object $object |
|
47 | + * @return array |
|
48 | + */ |
|
49 | 49 | public function extract($object) |
50 | 50 | { |
51 | 51 | $result = array(); |
@@ -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 @@ |
||
1 | 1 | <?php |
2 | 2 | /** |
3 | - * YAWIK |
|
4 | - * |
|
5 | - * @filesource |
|
6 | - * @copyright (c) 2013-2014 Cross Solution (http://cross-solution.de) |
|
7 | - * @license MIT |
|
8 | - */ |
|
3 | + * YAWIK |
|
4 | + * |
|
5 | + * @filesource |
|
6 | + * @copyright (c) 2013-2014 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\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; |