@@ -36,11 +36,11 @@ |
||
36 | 36 | } |
37 | 37 | $entity = new Location(); |
38 | 38 | $entity->setCity($data['city']) |
39 | - ->setRegion($data['region']) |
|
40 | - ->setPostalcode($data['postalcode']) |
|
41 | - ->setCountry($data['country']); |
|
39 | + ->setRegion($data['region']) |
|
40 | + ->setPostalcode($data['postalcode']) |
|
41 | + ->setCountry($data['country']); |
|
42 | 42 | if (!empty($data['coordinates'])) { |
43 | - $entity->setCoordinates(new Point($data['coordinates'])); |
|
43 | + $entity->setCoordinates(new Point($data['coordinates'])); |
|
44 | 44 | } |
45 | 45 | |
46 | 46 | return $entity; |
@@ -65,7 +65,7 @@ |
||
65 | 65 | */ |
66 | 66 | public function filter($value) |
67 | 67 | { |
68 | - $htmlPurifier = $this->getHtmlPurifier(); |
|
69 | - return $htmlPurifier->filter($value); |
|
68 | + $htmlPurifier = $this->getHtmlPurifier(); |
|
69 | + return $htmlPurifier->filter($value); |
|
70 | 70 | } |
71 | 71 | } |
72 | 72 | \ No newline at end of file |
@@ -144,12 +144,12 @@ discard block |
||
144 | 144 | $id = str_replace(array('[', ']'), array('-', ''), $name); |
145 | 145 | $this->setAttribute('id', $id); |
146 | 146 | $this->nameElement->setName($name . '[name]') |
147 | - ->setAttribute('id', $id . '-name') |
|
148 | - ->setAttribute('class', 'form-control geolocation'); |
|
147 | + ->setAttribute('id', $id . '-name') |
|
148 | + ->setAttribute('class', 'form-control geolocation'); |
|
149 | 149 | $this->dataElement->setName($name . '[data]') |
150 | - ->setAttribute('id', $id . '-data'); |
|
150 | + ->setAttribute('id', $id . '-data'); |
|
151 | 151 | $this->typeElement->setName($name . '[type]') |
152 | - ->setAttribute('id', $id . '-type'); |
|
152 | + ->setAttribute('id', $id . '-type'); |
|
153 | 153 | } |
154 | 154 | |
155 | 155 | /** |
@@ -215,8 +215,8 @@ discard block |
||
215 | 215 | $lon = $lat = 0; |
216 | 216 | |
217 | 217 | foreach($lonLat as $k=>$v) { |
218 | - list($lon,$lat) = explode(',', $v, 2); |
|
219 | - $latLon[]=$lat.','.$lon; |
|
218 | + list($lon,$lat) = explode(',', $v, 2); |
|
219 | + $latLon[]=$lat.','.$lon; |
|
220 | 220 | } |
221 | 221 | |
222 | 222 | $value['data'] = [ |
@@ -58,8 +58,8 @@ |
||
58 | 58 | } |
59 | 59 | |
60 | 60 | if (is_string($specs)) { |
61 | - $helper->appendScript('// if you are missing the script ' . $specs . ' look up your config and enclose it in an array'); |
|
62 | - continue; |
|
61 | + $helper->appendScript('// if you are missing the script ' . $specs . ' look up your config and enclose it in an array'); |
|
62 | + continue; |
|
63 | 63 | } |
64 | 64 | |
65 | 65 | foreach ($specs as $spec) { |
@@ -138,14 +138,14 @@ |
||
138 | 138 | if (!$this->test($resource, $privilege)) { |
139 | 139 | $msg = null === $privilege |
140 | 140 | ? sprintf( |
141 | - 'You are not allowed to access resource "%s"', |
|
142 | - is_object($resource) ? $resource->getResourceId() : $resource |
|
143 | - ) |
|
141 | + 'You are not allowed to access resource "%s"', |
|
142 | + is_object($resource) ? $resource->getResourceId() : $resource |
|
143 | + ) |
|
144 | 144 | : sprintf( |
145 | - 'You are not allowed to execute operation "%s" on resource "%s"', |
|
146 | - $privilege, |
|
147 | - is_object($resource) ? $resource->getResourceId() : $resource |
|
148 | - ); |
|
145 | + 'You are not allowed to execute operation "%s" on resource "%s"', |
|
146 | + $privilege, |
|
147 | + is_object($resource) ? $resource->getResourceId() : $resource |
|
148 | + ); |
|
149 | 149 | |
150 | 150 | if ($resource instanceof FileInterface && 0 == strpos($resource->type, 'image/')) { |
151 | 151 | throw new UnauthorizedImageAccessException(str_replace('resource', 'image', $msg)); |
@@ -15,7 +15,7 @@ |
||
15 | 15 | /** |
16 | 16 | * |
17 | 17 | * @ODM\MappedSuperclass |
18 | - */ |
|
18 | + */ |
|
19 | 19 | abstract class AbstractIdentifiableEntity extends AbstractEntity implements IdentifiableEntityInterface |
20 | 20 | { |
21 | 21 |
@@ -15,7 +15,6 @@ |
||
15 | 15 | |
16 | 16 | /** |
17 | 17 | * |
18 | - |
|
19 | 18 | */ |
20 | 19 | interface FileInterface extends |
21 | 20 | IdentifiableEntityInterface, |
@@ -30,7 +30,7 @@ discard block |
||
30 | 30 | * Gets the Day of the date of birth |
31 | 31 | * |
32 | 32 | * @return string |
33 | - */ |
|
33 | + */ |
|
34 | 34 | public function getBirthDay(); |
35 | 35 | |
36 | 36 | /** |
@@ -44,7 +44,7 @@ discard block |
||
44 | 44 | * Gets the month of the date of birth |
45 | 45 | * |
46 | 46 | * @return string |
47 | - */ |
|
47 | + */ |
|
48 | 48 | public function getBirthMonth(); |
49 | 49 | |
50 | 50 | /** |
@@ -58,7 +58,7 @@ discard block |
||
58 | 58 | * Gets the Year of the date of birth. |
59 | 59 | * |
60 | 60 | * @return string |
61 | - */ |
|
61 | + */ |
|
62 | 62 | public function getBirthYear(); |
63 | 63 | |
64 | 64 | /** |
@@ -111,7 +111,7 @@ discard block |
||
111 | 111 | * Gets the gender |
112 | 112 | * |
113 | 113 | * @return string |
114 | - */ |
|
114 | + */ |
|
115 | 115 | public function getGender(); |
116 | 116 | |
117 | 117 | |
@@ -154,7 +154,7 @@ discard block |
||
154 | 154 | * Gets the users street |
155 | 155 | * |
156 | 156 | * @return string |
157 | - */ |
|
157 | + */ |
|
158 | 158 | public function getStreet(); |
159 | 159 | |
160 | 160 | /** |
@@ -62,6 +62,6 @@ |
||
62 | 62 | ) |
63 | 63 | ) |
64 | 64 | ) |
65 | - ); |
|
65 | + ); |
|
66 | 66 | } |
67 | 67 | } |