@@ -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; |
@@ -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); |
@@ -24,7 +24,7 @@ |
||
| 24 | 24 | * |
| 25 | 25 | * @var String |
| 26 | 26 | */ |
| 27 | - protected $repositoryName="Organizations/Organization"; |
|
| 27 | + protected $repositoryName = "Organizations/Organization"; |
|
| 28 | 28 | |
| 29 | 29 | /** |
| 30 | 30 | * Sortable fields |
@@ -31,7 +31,7 @@ |
||
| 31 | 31 | */ |
| 32 | 32 | public function createService(ServiceLocatorInterface $serviceLocator) |
| 33 | 33 | { |
| 34 | - $auth = $serviceLocator->getServiceLocator()->get('AuthenticationService'); |
|
| 34 | + $auth = $serviceLocator->getServiceLocator()->get('AuthenticationService'); |
|
| 35 | 35 | $filter = new PaginationQuery($auth); |
| 36 | 36 | return $filter; |
| 37 | 37 | } |
@@ -31,7 +31,7 @@ |
||
| 31 | 31 | */ |
| 32 | 32 | public function createService(ServiceLocatorInterface $serviceLocator) |
| 33 | 33 | { |
| 34 | - $auth = $serviceLocator->getServiceLocator()->get('AuthenticationService'); |
|
| 34 | + $auth = $serviceLocator->getServiceLocator()->get('AuthenticationService'); |
|
| 35 | 35 | $filter = new PaginationQuery($auth); |
| 36 | 36 | return $filter; |
| 37 | 37 | } |
@@ -71,7 +71,7 @@ discard block |
||
| 71 | 71 | */ |
| 72 | 72 | public function setHouseNumber($houseNumber = "") |
| 73 | 73 | { |
| 74 | - $this->houseNumber=$houseNumber; |
|
| 74 | + $this->houseNumber = $houseNumber; |
|
| 75 | 75 | return $this; |
| 76 | 76 | } |
| 77 | 77 | |
@@ -137,7 +137,7 @@ discard block |
||
| 137 | 137 | */ |
| 138 | 138 | public function setStreet($street = "") |
| 139 | 139 | { |
| 140 | - $this->street=$street; |
|
| 140 | + $this->street = $street; |
|
| 141 | 141 | return $this; |
| 142 | 142 | } |
| 143 | 143 | |
@@ -160,7 +160,7 @@ discard block |
||
| 160 | 160 | */ |
| 161 | 161 | public function setPhone($phone = "") |
| 162 | 162 | { |
| 163 | - $this->phone=$phone; |
|
| 163 | + $this->phone = $phone; |
|
| 164 | 164 | } |
| 165 | 165 | |
| 166 | 166 | /** |
@@ -182,7 +182,7 @@ discard block |
||
| 182 | 182 | */ |
| 183 | 183 | public function setFax($fax = "") |
| 184 | 184 | { |
| 185 | - $this->fax=$fax; |
|
| 185 | + $this->fax = $fax; |
|
| 186 | 186 | } |
| 187 | 187 | |
| 188 | 188 | /** |
@@ -61,7 +61,7 @@ |
||
| 61 | 61 | * |
| 62 | 62 | * @var array() |
| 63 | 63 | */ |
| 64 | - protected $enableLogins = ['facebook','xing','linkedin','google','github']; |
|
| 64 | + protected $enableLogins = ['facebook', 'xing', 'linkedin', 'google', 'github']; |
|
| 65 | 65 | |
| 66 | 66 | /** |
| 67 | 67 | * Enable Registration |