@@ -157,7 +157,7 @@ discard block |
||
157 | 157 | |
158 | 158 | $table = new Table( |
159 | 159 | array('columnWidths' => array(40, 40, 40), |
160 | - 'decorator' => 'ascii') |
|
160 | + 'decorator' => 'ascii') |
|
161 | 161 | ); |
162 | 162 | |
163 | 163 | $table->appendRow(array('Module', 'Name', 'Description')); |
@@ -238,8 +238,8 @@ discard block |
||
238 | 238 | $attachments = $app->getAttachments(); |
239 | 239 | foreach ($attachments as $attachment) { |
240 | 240 | $attachment->getPermissions() |
241 | - ->clear() |
|
242 | - ->inherit($permissions); |
|
241 | + ->clear() |
|
242 | + ->inherit($permissions); |
|
243 | 243 | } |
244 | 244 | $contact = $app->getContact(); |
245 | 245 | if ($contact) { |
@@ -247,8 +247,8 @@ discard block |
||
247 | 247 | |
248 | 248 | if ($image) { |
249 | 249 | $image->getPermissions() |
250 | - ->clear() |
|
251 | - ->inherit($permissions); |
|
250 | + ->clear() |
|
251 | + ->inherit($permissions); |
|
252 | 252 | } |
253 | 253 | } |
254 | 254 | } |
@@ -26,11 +26,11 @@ |
||
26 | 26 | // 'driver' => 'odm_default', |
27 | 27 | // |
28 | 28 | // 'generate_proxies' => true, |
29 | - 'proxy_dir' => getcwd().'/var/cache/DoctrineMongoODMModule/Proxy', |
|
29 | + 'proxy_dir' => getcwd().'/var/cache/DoctrineMongoODMModule/Proxy', |
|
30 | 30 | // 'proxy_namespace' => 'DoctrineMongoODMModule\Proxy', |
31 | 31 | // |
32 | 32 | // 'generate_hydrators' => true, |
33 | - 'hydrator_dir' => getcwd().'/var/cache/DoctrineMongoODMModule/Hydrator', |
|
33 | + 'hydrator_dir' => getcwd().'/var/cache/DoctrineMongoODMModule/Hydrator', |
|
34 | 34 | // 'hydrator_namespace' => 'DoctrineMongoODMModule\Hydrator', |
35 | 35 | // |
36 | 36 | // 'default_db' => '', |
@@ -124,7 +124,7 @@ discard block |
||
124 | 124 | 'entity' => $snapshot |
125 | 125 | ]); |
126 | 126 | $this->dm->getEventManager() |
127 | - ->dispatchEvent(DoctrineMongoODM\Event\RepositoryEventsSubscriber::postCreate, $eventArgs); |
|
127 | + ->dispatchEvent(DoctrineMongoODM\Event\RepositoryEventsSubscriber::postCreate, $eventArgs); |
|
128 | 128 | |
129 | 129 | $this->copy($source, $snapshot); |
130 | 130 | |
@@ -200,12 +200,12 @@ discard block |
||
200 | 200 | public function findLatest($sourceId, $isDraft = false) |
201 | 201 | { |
202 | 202 | $entity = $this->createQueryBuilder() |
203 | - ->field('snapshotEntity')->equals(new \MongoId($sourceId)) |
|
204 | - ->field('snapshotMeta.isDraft')->equals($isDraft) |
|
205 | - ->sort('snapshotMeta.dateCreated.date', 'desc') |
|
206 | - ->limit(1) |
|
207 | - ->getQuery() |
|
208 | - ->getSingleResult() |
|
203 | + ->field('snapshotEntity')->equals(new \MongoId($sourceId)) |
|
204 | + ->field('snapshotMeta.isDraft')->equals($isDraft) |
|
205 | + ->sort('snapshotMeta.dateCreated.date', 'desc') |
|
206 | + ->limit(1) |
|
207 | + ->getQuery() |
|
208 | + ->getSingleResult() |
|
209 | 209 | ; |
210 | 210 | if ($entity) { |
211 | 211 | $this->dm->getEventManager()->dispatchEvent( |
@@ -158,8 +158,8 @@ |
||
158 | 158 | if ($mimetypes) { |
159 | 159 | $mimeTypeValidator = new MimeType(); |
160 | 160 | $mimeTypeValidator->setMagicFile(false) |
161 | - ->disableMagicFile(true) |
|
162 | - ->setMimeType($this->getAllowedTypes()); |
|
161 | + ->disableMagicFile(true) |
|
162 | + ->setMimeType($this->getAllowedTypes()); |
|
163 | 163 | |
164 | 164 | $validators[] = $mimeTypeValidator; |
165 | 165 | } |
@@ -14,10 +14,10 @@ |
||
14 | 14 | protected $validator; |
15 | 15 | |
16 | 16 | /** |
17 | - * Get a validator if none has been set. |
|
18 | - * https://github.com/posabsolute/jQuery-Validation-Engine/issues/265 |
|
19 | - * @return RegexValidator |
|
20 | - */ |
|
17 | + * Get a validator if none has been set. |
|
18 | + * https://github.com/posabsolute/jQuery-Validation-Engine/issues/265 |
|
19 | + * @return RegexValidator |
|
20 | + */ |
|
21 | 21 | public function getValidator() |
22 | 22 | { |
23 | 23 | if (null === $this->validator) { |
@@ -50,7 +50,7 @@ |
||
50 | 50 | |
51 | 51 | public function init() |
52 | 52 | { |
53 | - $this->setName('items'); |
|
53 | + $this->setName('items'); |
|
54 | 54 | $this->add([ |
55 | 55 | 'type' => 'Collection', |
56 | 56 | 'name' => 'items', |
@@ -134,8 +134,8 @@ |
||
134 | 134 | $elementOptions = $element->getOptions(); |
135 | 135 | if (array_key_exists('placeholder', $elementOptions) && !empty($elementOptions['placeholder'])) { |
136 | 136 | $placeHolder = '<div id="placeholder-' . $name . '" style="border: 0 none; position: relative; top: 0ex; left: 10px; color: #aaa; height: 0px; overflow: visible;' . |
137 | - (empty($content)?'':'display:none;') . |
|
138 | - '">' . $this->translator->translate($elementOptions['placeholder']) . '</div>'; |
|
137 | + (empty($content)?'':'display:none;') . |
|
138 | + '">' . $this->translator->translate($elementOptions['placeholder']) . '</div>'; |
|
139 | 139 | } |
140 | 140 | return |
141 | 141 | $placeHolder |
@@ -48,8 +48,8 @@ |
||
48 | 48 | } |
49 | 49 | $linktext = $translator->translate($linktext); |
50 | 50 | $link = '<a data-toggle="modal" href="' . $href . '" ' |
51 | - . 'data-target="#modal-' . $element->getAttribute('id') . '">' |
|
52 | - . $linktext . '</a>'; |
|
51 | + . 'data-target="#modal-' . $element->getAttribute('id') . '">' |
|
52 | + . $linktext . '</a>'; |
|
53 | 53 | |
54 | 54 | $label = sprintf($label, $link); |
55 | 55 | } |
@@ -67,8 +67,8 @@ discard block |
||
67 | 67 | $content = $this->renderElements($form, $colMap, $buttonsSpan); |
68 | 68 | |
69 | 69 | return $this->openTag($form) |
70 | - . '<div class="row" style="padding: 0 15px;">' |
|
71 | - . $content . '</div>' . $this->closeTag(); |
|
70 | + . '<div class="row" style="padding: 0 15px;">' |
|
71 | + . $content . '</div>' . $this->closeTag(); |
|
72 | 72 | } |
73 | 73 | |
74 | 74 | public function renderButtons($buttons) |
@@ -81,8 +81,8 @@ discard block |
||
81 | 81 | $attrs = $helper->createAttributesString($button->getAttributes()); |
82 | 82 | |
83 | 83 | $content.= '<button ' . $attrs . '>' |
84 | - . $this->getTranslator()->translate($button->getLabel(), $this->getTranslatorTextDomain()) |
|
85 | - . '</button>'; |
|
84 | + . $this->getTranslator()->translate($button->getLabel(), $this->getTranslatorTextDomain()) |
|
85 | + . '</button>'; |
|
86 | 86 | } |
87 | 87 | |
88 | 88 | return $content; |
@@ -118,15 +118,15 @@ discard block |
||
118 | 118 | |
119 | 119 | if ($element->getName() == $form->getButtonElement()) { |
120 | 120 | $content.='<div class="input-group col-md-' . $cols . '">' |
121 | - . $formElement($element) |
|
122 | - . '<div class="input-group-btn search-form-buttons" style="width: 1px;">' |
|
123 | - . $this->renderButtons($form->getButtons()) . '</div>' |
|
124 | - . '</div>'; |
|
121 | + . $formElement($element) |
|
122 | + . '<div class="input-group-btn search-form-buttons" style="width: 1px;">' |
|
123 | + . $this->renderButtons($form->getButtons()) . '</div>' |
|
124 | + . '</div>'; |
|
125 | 125 | $buttonsRendered = true; |
126 | 126 | } else { |
127 | 127 | $content .= '<div class="input-group col-md-' . $cols . '">' |
128 | - . $formElement($element) |
|
129 | - . '</div>'; |
|
128 | + . $formElement($element) |
|
129 | + . '</div>'; |
|
130 | 130 | } |
131 | 131 | |
132 | 132 | $i += 1; |
@@ -137,7 +137,7 @@ discard block |
||
137 | 137 | $buttonsSpan = $form->getOption('buttons_span') ?: 12; |
138 | 138 | } |
139 | 139 | $content .= '<div class="input-group search-form-buttons col-md-' . $buttonsSpan . ' text-right">' |
140 | - . '<div class="btn-group">' . $this->renderButtons($form->getButtons()) .'</div></div>'; |
|
140 | + . '<div class="btn-group">' . $this->renderButtons($form->getButtons()) .'</div></div>'; |
|
141 | 141 | } |
142 | 142 | |
143 | 143 | return $content; |