@@ -211,7 +211,7 @@ discard block |
||
211 | 211 | $classes = preg_split('/\s+/', (string)$sndParent->getAttribute('class'), -1, PREG_SPLIT_NO_EMPTY); |
212 | 212 | |
213 | 213 | if (in_array('control-group-collection', $classes, true)) { |
214 | - $elementName = Inflector::singularize(trim($label->getText())).'Collection'; |
|
214 | + $elementName = Inflector::singularize(trim($label->getText())) . 'Collection'; |
|
215 | 215 | $elementName = $this->elementFactory->hasElement($elementName) ? $elementName : 'CollectionField'; |
216 | 216 | |
217 | 217 | return $this->elementFactory->wrapElement($elementName, $sndParent); |
@@ -225,9 +225,9 @@ discard block |
||
225 | 225 | return $sndParent->find('css', 'input[type=checkbox]'); |
226 | 226 | } elseif (in_array('control-group-choice', $classes, true)) { |
227 | 227 | return $this->elementFactory->wrapElement('GroupChoiceField', $sndParent->find('css', '.controls')); |
228 | - } elseif ($field = $sndParent->find('css', '#'.$label->getAttribute('for'))) { |
|
228 | + } elseif ($field = $sndParent->find('css', '#' . $label->getAttribute('for'))) { |
|
229 | 229 | return $field; |
230 | - } elseif ($field = $this->getPage()->find('css', '#'.$label->getAttribute('for'))) { |
|
230 | + } elseif ($field = $this->getPage()->find('css', '#' . $label->getAttribute('for'))) { |
|
231 | 231 | return $field; |
232 | 232 | } else { |
233 | 233 | self::fail(sprintf('Find label "%s", but can\'t determine field type', $locator)); |
@@ -296,7 +296,7 @@ discard block |
||
296 | 296 | $value = new \DateTime($matches['value']); |
297 | 297 | } |
298 | 298 | if ('Date' === $matches['function']) { |
299 | - $parsed = new \DateTime($matches['value']); |
|
299 | + $parsed = new \DateTime($matches['value']); |
|
300 | 300 | $value = str_replace($matches[0], $parsed->format('M j, Y'), $value); |
301 | 301 | } |
302 | 302 | } |
@@ -399,7 +399,7 @@ discard block |
||
399 | 399 | |
400 | 400 | self::assertNotEmpty($errorSpans, "Field $fieldName has no validation errors"); |
401 | 401 | |
402 | - return array_map(function (NodeElement $error) { |
|
402 | + return array_map(function(NodeElement $error) { |
|
403 | 403 | return $error->getText(); |
404 | 404 | }, $errorSpans); |
405 | 405 | } |
@@ -224,7 +224,7 @@ |
||
224 | 224 | private function normalizeLoadedData(): void |
225 | 225 | { |
226 | 226 | // strip whitespace from the beginning and end of descriptions |
227 | - \array_walk_recursive($this->loadedData, function (&$element) { |
|
227 | + \array_walk_recursive($this->loadedData, function(&$element) { |
|
228 | 228 | if (\is_string($element) && $element) { |
229 | 229 | $element = trim($element); |
230 | 230 | } |
@@ -75,7 +75,7 @@ |
||
75 | 75 | $this->tokenAccessor = $this->createMock(TokenAccessorInterface::class); |
76 | 76 | $this->entityNameResolver = $this->createMock(EntityNameResolver::class); |
77 | 77 | $this->router = $this->createMock(Router::class); |
78 | - $this->configManager = $this->createMock(ConfigManager::class); |
|
78 | + $this->configManager = $this->createMock(ConfigManager::class); |
|
79 | 79 | $emailThreadProvider = $this->createMock(EmailThreadProvider::class); |
80 | 80 | $htmlTagHelper = $this->createMock(HtmlTagHelper::class); |
81 | 81 | $this->doctrineRegistryLink = $this->createMock(ServiceLink::class); |