@@ -69,7 +69,7 @@ |
||
69 | 69 | ? [ |
70 | 70 | 'type' => $coords->getType(), |
71 | 71 | 'coordinates' => $coords->getCoordinates(), |
72 | - ] |
|
72 | + ] |
|
73 | 73 | : null |
74 | 74 | |
75 | 75 | ]; |
@@ -24,8 +24,8 @@ |
||
24 | 24 | * @author Mathias Gelhausen <[email protected]> |
25 | 25 | */ |
26 | 26 | class Form extends ZendForm implements DescriptionAwareFormInterface, |
27 | - DisableElementsCapableInterface, |
|
28 | - FormParentInterface |
|
27 | + DisableElementsCapableInterface, |
|
28 | + FormParentInterface |
|
29 | 29 | { |
30 | 30 | |
31 | 31 | use EventManagerAwareTrait, HydratorStrategyAwareTrait; |
@@ -63,16 +63,16 @@ |
||
63 | 63 | |
64 | 64 | foreach ($result as $key => $val) { |
65 | 65 | $row=[ |
66 | - 'postalCode' => (property_exists($val->properties, 'postcode') ? $val->properties->postcode:''), |
|
67 | - 'city' =>(property_exists($val->properties, 'city') ? $val->properties->city:''), |
|
68 | - 'street' => (property_exists($val->properties, 'street') ? $val->properties->street : ''), |
|
69 | - 'region' => (property_exists($val->properties, 'state') ? $val->properties->state : ''), |
|
70 | - 'country' => (property_exists($val->properties, 'country') ? $val->properties->country : ''), |
|
66 | + 'postalCode' => (property_exists($val->properties, 'postcode') ? $val->properties->postcode:''), |
|
67 | + 'city' =>(property_exists($val->properties, 'city') ? $val->properties->city:''), |
|
68 | + 'street' => (property_exists($val->properties, 'street') ? $val->properties->street : ''), |
|
69 | + 'region' => (property_exists($val->properties, 'state') ? $val->properties->state : ''), |
|
70 | + 'country' => (property_exists($val->properties, 'country') ? $val->properties->country : ''), |
|
71 | 71 | |
72 | - 'osm_key' => (property_exists($val->properties, 'osm_key') ? $val->properties->osm_key : ''), |
|
73 | - 'osm_value' => (property_exists($val->properties, 'osm_value') ? $val->properties->osm_value : ''), |
|
74 | - //'id' => (property_exists($val->properties, 'osm_id') ? $val->properties->osm_id : uniqid()), |
|
75 | - //'data' => json_encode($val), |
|
72 | + 'osm_key' => (property_exists($val->properties, 'osm_key') ? $val->properties->osm_key : ''), |
|
73 | + 'osm_value' => (property_exists($val->properties, 'osm_value') ? $val->properties->osm_value : ''), |
|
74 | + //'id' => (property_exists($val->properties, 'osm_id') ? $val->properties->osm_id : uniqid()), |
|
75 | + //'data' => json_encode($val), |
|
76 | 76 | ]; |
77 | 77 | if ($val->geometry) { |
78 | 78 | $row['coordinates'] = [ |
@@ -32,7 +32,7 @@ |
||
32 | 32 | * |
33 | 33 | * @var array |
34 | 34 | */ |
35 | - protected $fields=[ |
|
35 | + protected $fields=[ |
|
36 | 36 | self::TITLE => [ |
37 | 37 | 'enabled' => true, |
38 | 38 | 'options' => [ |
@@ -18,11 +18,11 @@ |
||
18 | 18 | */ |
19 | 19 | class Module |
20 | 20 | { |
21 | - /** |
|
22 | - * Loads module specific configuration. |
|
23 | - * |
|
24 | - * @return array |
|
25 | - */ |
|
21 | + /** |
|
22 | + * Loads module specific configuration. |
|
23 | + * |
|
24 | + * @return array |
|
25 | + */ |
|
26 | 26 | public function getConfig() |
27 | 27 | { |
28 | 28 | return include __DIR__ . '/config/module.config.php'; |
@@ -56,8 +56,8 @@ discard block |
||
56 | 56 | |
57 | 57 | foreach ($document->getAttachments() as $attachment) { /* @var \Applications\Entity\Attachment $attachment */ |
58 | 58 | $attachment->getPermissions() |
59 | - ->clear() |
|
60 | - ->inherit($permissions); |
|
59 | + ->clear() |
|
60 | + ->inherit($permissions); |
|
61 | 61 | if ($isUpdate) { |
62 | 62 | $uow->computeChangeSet( |
63 | 63 | $dm->getClassMetadata(get_class($attachment)), |
@@ -68,8 +68,8 @@ discard block |
||
68 | 68 | |
69 | 69 | if ($image = $document->getContact()->getImage()) { |
70 | 70 | $image->getPermissions() |
71 | - ->clear() |
|
72 | - ->inherit($permissions); |
|
71 | + ->clear() |
|
72 | + ->inherit($permissions); |
|
73 | 73 | if ($isUpdate) { |
74 | 74 | $uow->computeChangeSet( |
75 | 75 | $dm->getClassMetadata(get_class($image)), |
@@ -102,9 +102,9 @@ discard block |
||
102 | 102 | { |
103 | 103 | $qb = $this->getPaginationQueryBuilder($params); |
104 | 104 | $cursor = $qb->hydrate(false) |
105 | - ->select('_id') |
|
106 | - ->getQuery() |
|
107 | - ->execute(); |
|
105 | + ->select('_id') |
|
106 | + ->getQuery() |
|
107 | + ->execute(); |
|
108 | 108 | |
109 | 109 | $list = new PaginationList(array_keys(ArrayUtils::iteratorToArray($cursor))); |
110 | 110 | return $list; |
@@ -133,8 +133,8 @@ discard block |
||
133 | 133 | { |
134 | 134 | $auth=$this->getService('AuthenticationService'); |
135 | 135 | $qb=$this->createQueryBuilder() |
136 | - ->field("readBy")->notIn(array($auth->getUser()->getId())) |
|
137 | - ->field("job")->equals(new \MongoId($job->getId())); |
|
136 | + ->field("readBy")->notIn(array($auth->getUser()->getId())) |
|
137 | + ->field("job")->equals(new \MongoId($job->getId())); |
|
138 | 138 | return $qb->getQuery()->execute(); |
139 | 139 | } |
140 | 140 |
@@ -241,7 +241,6 @@ discard block |
||
241 | 241 | * Gets all comments for the application. |
242 | 242 | * |
243 | 243 | * @return ArrayCollection; |
244 | - |
|
245 | 244 | */ |
246 | 245 | public function getComments(); |
247 | 246 | |
@@ -272,7 +271,6 @@ discard block |
||
272 | 271 | * Gets all attributes for an application. |
273 | 272 | * |
274 | 273 | * @return ArrayCollection; |
275 | - |
|
276 | 274 | */ |
277 | 275 | public function getAttributes(); |
278 | 276 |
@@ -44,8 +44,8 @@ |
||
44 | 44 | $fileId = new \MongoId($file->getId()); |
45 | 45 | $dm = $eventArgs->getDocumentManager(); |
46 | 46 | $dm->createQueryBuilder('Cv\Entity\Cv') |
47 | - ->update()->multiple(true) |
|
48 | - ->field('attachments')->equals($fileId)->pull($fileId) |
|
49 | - ->getQuery()->execute(); |
|
47 | + ->update()->multiple(true) |
|
48 | + ->field('attachments')->equals($fileId)->pull($fileId) |
|
49 | + ->getQuery()->execute(); |
|
50 | 50 | } |
51 | 51 | } |