@@ -24,7 +24,7 @@ |
||
24 | 24 | $core = $serviceLocator->get("Core/Options"); |
25 | 25 | |
26 | 26 | if ('' == $channel->getCurrency()) { |
27 | - $currency=$core->getDefaultCurrencyCode(); |
|
27 | + $currency = $core->getDefaultCurrencyCode(); |
|
28 | 28 | $channel->setCurrency($currency); |
29 | 29 | } |
30 | 30 |
@@ -47,7 +47,7 @@ |
||
47 | 47 | ) |
48 | 48 | ); |
49 | 49 | |
50 | - $data['previewLink'] = $viewLink; |
|
50 | + $data['previewLink'] = $viewLink; |
|
51 | 51 | return $data; |
52 | 52 | } |
53 | 53 |
@@ -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 | /** |
@@ -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; |