@@ -43,7 +43,7 @@ |
||
43 | 43 | |
44 | 44 | $helper = new FormEditorLight(); |
45 | 45 | if(isset($config['view_helper_config']['form_editor']['light']) && is_array($config['view_helper_config']['form_editor']['light'])){ |
46 | - $helper->setOptions($config['view_helper_config']['form_editor']['light']); |
|
46 | + $helper->setOptions($config['view_helper_config']['form_editor']['light']); |
|
47 | 47 | } |
48 | 48 | |
49 | 49 | $helper->setOption('theme' , 'modern'); |
@@ -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'] = [ |
@@ -66,7 +66,7 @@ discard block |
||
66 | 66 | } |
67 | 67 | |
68 | 68 | $fieldset->setUseAsBaseFieldset(true) |
69 | - ->setName('base'); |
|
69 | + ->setName('base'); |
|
70 | 70 | |
71 | 71 | $fieldset->setObject($object); |
72 | 72 | $this->add($fieldset); |
@@ -92,8 +92,8 @@ discard block |
||
92 | 92 | { |
93 | 93 | parent::setName(strtolower($name) . '-settings'); |
94 | 94 | $urlHelper = $this->forms->getServiceLocator() |
95 | - ->get('ViewHelperManager') |
|
96 | - ->get('url'); |
|
95 | + ->get('ViewHelperManager') |
|
96 | + ->get('url'); |
|
97 | 97 | |
98 | 98 | $url = $urlHelper('lang/settings', array('module' => $name), true); |
99 | 99 | $this->setAttribute('action', $url); |
@@ -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) { |
@@ -44,7 +44,7 @@ discard block |
||
44 | 44 | $repositories = $services->get('repositories'); |
45 | 45 | $users = $repositories->get('Auth/User'); /* @var $users \Auth\Repository\User */ |
46 | 46 | |
47 | - /* todo: WRITE own Hydrator strategy class */ |
|
47 | + /* todo: WRITE own Hydrator strategy class */ |
|
48 | 48 | $strategy = new ClosureStrategy( |
49 | 49 | function ($object) use ($users) { |
50 | 50 | |
@@ -71,7 +71,7 @@ discard block |
||
71 | 71 | foreach (array( |
72 | 72 | Perms::JOBS_VIEW, Perms::JOBS_CHANGE, PERMS::JOBS_CREATE, |
73 | 73 | Perms::APPLICATIONS_VIEW, Perms::APPLICATIONS_CHANGE) |
74 | - as $perm) { |
|
74 | + as $perm) { |
|
75 | 75 | if ($object->isAllowed($perm)) { |
76 | 76 | $values[] = $perm; |
77 | 77 | } |
@@ -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 |