@@ -34,24 +34,24 @@ |
||
34 | 34 | * Event is fired when a users has created a new job opening and accepted the |
35 | 35 | * terms and conditions |
36 | 36 | */ |
37 | - const EVENT_JOB_CREATED = 'job.created'; |
|
37 | + const EVENT_JOB_CREATED = 'job.created'; |
|
38 | 38 | |
39 | 39 | /** |
40 | 40 | * Event is fired when the owner of the YAWIK installation has accepted the job |
41 | 41 | * opening |
42 | 42 | */ |
43 | - const EVENT_JOB_ACCEPTED = 'job.accepted'; |
|
43 | + const EVENT_JOB_ACCEPTED = 'job.accepted'; |
|
44 | 44 | |
45 | 45 | /** |
46 | 46 | * Event is fired, when the owner of the YAWIK installation has rejected the job |
47 | 47 | * opening |
48 | 48 | */ |
49 | - const EVENT_JOB_REJECTED = 'job.rejected'; |
|
49 | + const EVENT_JOB_REJECTED = 'job.rejected'; |
|
50 | 50 | |
51 | 51 | /** |
52 | 52 | * get all available names for publishing |
53 | 53 | */ |
54 | - const PORTAL_AVAIL_NAME = 'portal.availname'; |
|
54 | + const PORTAL_AVAIL_NAME = 'portal.availname'; |
|
55 | 55 | |
56 | 56 | /** |
57 | 57 | * @var portals to be published |
@@ -81,7 +81,7 @@ discard block |
||
81 | 81 | * |
82 | 82 | * @var int $publishDuration |
83 | 83 | */ |
84 | - protected $publishDuration=30; |
|
84 | + protected $publishDuration = 30; |
|
85 | 85 | |
86 | 86 | /** |
87 | 87 | * Category for this channel |
@@ -140,7 +140,7 @@ discard block |
||
140 | 140 | */ |
141 | 141 | public function setKey($key) |
142 | 142 | { |
143 | - $this->key=$key; |
|
143 | + $this->key = $key; |
|
144 | 144 | return $this; |
145 | 145 | } |
146 | 146 | |
@@ -162,7 +162,7 @@ discard block |
||
162 | 162 | */ |
163 | 163 | public function setExternalkey($key) |
164 | 164 | { |
165 | - $this->externalkey=$key; |
|
165 | + $this->externalkey = $key; |
|
166 | 166 | return $this; |
167 | 167 | } |
168 | 168 |
@@ -44,21 +44,21 @@ |
||
44 | 44 | * |
45 | 45 | * @var string $defaultLogo |
46 | 46 | */ |
47 | - protected $defaultLogo="/Jobs/images/yawik-small.jpg"; |
|
47 | + protected $defaultLogo = "/Jobs/images/yawik-small.jpg"; |
|
48 | 48 | |
49 | 49 | /** |
50 | 50 | * Maximum size in bytes of a company Logo. Default 200k |
51 | 51 | * |
52 | 52 | * @var int $companyLogoMaxSize |
53 | 53 | */ |
54 | - protected $companyLogoMaxSize=200000; |
|
54 | + protected $companyLogoMaxSize = 200000; |
|
55 | 55 | |
56 | 56 | /** |
57 | 57 | * Allowed Mime-Types for company Logos |
58 | 58 | * |
59 | 59 | * @var array |
60 | 60 | */ |
61 | - protected $companyLogoMimeType=array("image"); |
|
61 | + protected $companyLogoMimeType = array("image"); |
|
62 | 62 | |
63 | 63 | |
64 | 64 | /** |
@@ -65,7 +65,7 @@ discard block |
||
65 | 65 | 'template_map' => array( |
66 | 66 | 'organizations/index/edit' => __DIR__ . '/../view/organizations/index/form.phtml', |
67 | 67 | 'organizations/form/employees-fieldset' => __DIR__ . '/../view/form/employees-fieldset.phtml', |
68 | - 'organizations/form/employee-fieldset' => __DIR__ .'/../view/form/employee-fieldset.phtml', |
|
68 | + 'organizations/form/employee-fieldset' => __DIR__ . '/../view/form/employee-fieldset.phtml', |
|
69 | 69 | 'organizations/form/invite-employee-bar' => __DIR__ . '/../view/form/invite-employee-bar.phtml', |
70 | 70 | 'organizations/error/no-parent' => __DIR__ . '/../view/error/no-parent.phtml', |
71 | 71 | 'organizations/error/invite' => __DIR__ . '/../view/error/invite.phtml', |
@@ -151,8 +151,8 @@ discard block |
||
151 | 151 | 'organizations' => array( |
152 | 152 | 'label' => 'Organizations', |
153 | 153 | 'route' => 'lang/organizations', |
154 | - 'order' => 65, // allows to order the menu items |
|
155 | - 'resource' => 'route/lang/organizations', // if a resource is defined, the acl will be applied. |
|
154 | + 'order' => 65, // allows to order the menu items |
|
155 | + 'resource' => 'route/lang/organizations', // if a resource is defined, the acl will be applied. |
|
156 | 156 | |
157 | 157 | 'pages' => array( |
158 | 158 | 'list' => array( |
@@ -127,7 +127,7 @@ |
||
127 | 127 | |
128 | 128 | public function process($token, $organizationId) |
129 | 129 | { |
130 | - $organizationRepository = $this->getOrganizationRepository(); |
|
130 | + $organizationRepository = $this->getOrganizationRepository(); |
|
131 | 131 | $organization = $organizationRepository->find($organizationId); /* @var $organization \Organizations\Entity\OrganizationInterface */ |
132 | 132 | |
133 | 133 | if (!$organization) { |
@@ -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 | /** |
@@ -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 |
@@ -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 | { |
@@ -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; |