@@ -21,7 +21,7 @@ |
||
21 | 21 | */ |
22 | 22 | class MongoDbConnectionString extends AbstractValidator |
23 | 23 | { |
24 | - const INVALID = 'invalidConnectionString'; |
|
24 | + const INVALID = 'invalidConnectionString'; |
|
25 | 25 | |
26 | 26 | /** |
27 | 27 | * Options |
@@ -198,7 +198,7 @@ |
||
198 | 198 | * |
199 | 199 | * @return UserInterface $user |
200 | 200 | */ |
201 | - public function getUser() ; |
|
201 | + public function getUser(); |
|
202 | 202 | |
203 | 203 | /** |
204 | 204 | * Gets the link to the application form |
@@ -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 | /** |
@@ -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; |
@@ -40,7 +40,7 @@ |
||
40 | 40 | |
41 | 41 | if ($document instanceof UserInterface) { |
42 | 42 | $repository = $args->getDocumentManager()->getRepository('Organizations\Entity\Organization'); |
43 | - $userId = $document->getId(); |
|
43 | + $userId = $document->getId(); |
|
44 | 44 | $reference = new OrganizationReference($userId, $repository); |
45 | 45 | |
46 | 46 | $document->setOrganization($reference); |