@@ -315,7 +315,7 @@ discard block |
||
| 315 | 315 | { |
| 316 | 316 | return $this->filterDocs( |
| 317 | 317 | $this->getExtractor()->all(self::VIEW), |
| 318 | - function (Route $route) use ($entityType, $action) { |
|
| 318 | + function(Route $route) use ($entityType, $action) { |
|
| 319 | 319 | return |
| 320 | 320 | $route->getDefault('entity') === $entityType |
| 321 | 321 | && $route->getDefault('_action') === $action; |
@@ -334,7 +334,7 @@ discard block |
||
| 334 | 334 | { |
| 335 | 335 | return $this->filterDocs( |
| 336 | 336 | $this->getExtractor()->all(self::VIEW), |
| 337 | - function (Route $route) use ($entityType, $action, $subresiurce) { |
|
| 337 | + function(Route $route) use ($entityType, $action, $subresiurce) { |
|
| 338 | 338 | return |
| 339 | 339 | $route->getDefault('entity') === $entityType |
| 340 | 340 | && $route->getDefault('_action') === $action |
@@ -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 | } |
@@ -397,7 +397,7 @@ discard block |
||
| 397 | 397 | ) |
| 398 | 398 | ), $errorSpans); |
| 399 | 399 | |
| 400 | - return array_map(function (NodeElement $error) { |
|
| 400 | + return array_map(function(NodeElement $error) { |
|
| 401 | 401 | return $error->getText(); |
| 402 | 402 | }, $errorSpans); |
| 403 | 403 | } |