@@ -193,7 +193,7 @@ |
||
| 193 | 193 | foreach ($findMethods as $findMethod => $associatedEntitiesToWarm) { |
| 194 | 194 | |
| 195 | 195 | //Extract ids to search |
| 196 | - $idsToSearch = array_map(function ($associatedEntityToWarm) { |
|
| 196 | + $idsToSearch = array_map(function($associatedEntityToWarm) { |
|
| 197 | 197 | return $associatedEntityToWarm->getEntityId(); |
| 198 | 198 | }, $associatedEntitiesToWarm); |
| 199 | 199 | |
@@ -65,7 +65,7 @@ discard block |
||
| 65 | 65 | ->getQuery() |
| 66 | 66 | ->getResult(); |
| 67 | 67 | $templates = []; |
| 68 | - $recursiveGetTemplates = function ($template) use (&$recursiveGetTemplates, &$templates) { |
|
| 68 | + $recursiveGetTemplates = function($template) use (&$recursiveGetTemplates, &$templates) { |
|
| 69 | 69 | array_push($templates, $template); |
| 70 | 70 | foreach ($template->getInheritors() as $template) { |
| 71 | 71 | if ($template instanceof Template) { |
@@ -99,7 +99,7 @@ discard block |
||
| 99 | 99 | if (!empty($oldWidgetMaps)) { |
| 100 | 100 | foreach ($oldWidgetMaps as $slot => $oldWidgetMap) { |
| 101 | 101 | $widgetMaps = []; |
| 102 | - usort($oldWidgetMap, function ($a, $b) { |
|
| 102 | + usort($oldWidgetMap, function($a, $b) { |
|
| 103 | 103 | if ($b['position'] - $a['position'] == 0) { |
| 104 | 104 | return 1; |
| 105 | 105 | } |
@@ -62,7 +62,7 @@ |
||
| 62 | 62 | ]; |
| 63 | 63 | |
| 64 | 64 | for ($i = 1; $i <= 1000; $i++) { |
| 65 | - $buildSortedWidget = function ($builtWidgetMap) use (&$order, &$buildSortedWidget, $view) { |
|
| 65 | + $buildSortedWidget = function($builtWidgetMap) use (&$order, &$buildSortedWidget, $view) { |
|
| 66 | 66 | $sortedWidget['widgetMap'] = $builtWidgetMap['content'][array_rand($builtWidgetMap['content'])]; |
| 67 | 67 | $availablePositions = []; |
| 68 | 68 | $positions = [WidgetMap::POSITION_AFTER, WidgetMap::POSITION_BEFORE]; |
@@ -57,7 +57,7 @@ |
||
| 57 | 57 | |
| 58 | 58 | $ids = [$tree->getViewId()]; |
| 59 | 59 | |
| 60 | - $getChildrenIds = function (ViewReference $tree) use (&$getChildrenIds, $ids) { |
|
| 60 | + $getChildrenIds = function(ViewReference $tree) use (&$getChildrenIds, $ids) { |
|
| 61 | 61 | foreach ($tree->getChildren() as $child) { |
| 62 | 62 | $ids[] = $child->getViewId(); |
| 63 | 63 | $ids = array_merge($ids, $getChildrenIds($child)); |
@@ -42,7 +42,7 @@ |
||
| 42 | 42 | 'options' => [ |
| 43 | 43 | 'choices' => $this->availableLocales, |
| 44 | 44 | 'choices_as_values' => true, |
| 45 | - 'choice_label' => function ($value) { |
|
| 45 | + 'choice_label' => function($value) { |
|
| 46 | 46 | return $value; |
| 47 | 47 | }, |
| 48 | 48 | ], |
@@ -59,7 +59,7 @@ |
||
| 59 | 59 | 'options' => [ |
| 60 | 60 | 'choices' => $this->getDomainName(), |
| 61 | 61 | 'choices_as_values' => true, |
| 62 | - 'choice_label' => function ($value) { |
|
| 62 | + 'choice_label' => function($value) { |
|
| 63 | 63 | return $value; |
| 64 | 64 | }, |
| 65 | 65 | ], |
@@ -24,7 +24,7 @@ |
||
| 24 | 24 | |
| 25 | 25 | $builder->addEventListener( |
| 26 | 26 | FormEvents::PRE_SET_DATA, |
| 27 | - function (FormEvent $event) use ($options) { |
|
| 27 | + function(FormEvent $event) use ($options) { |
|
| 28 | 28 | //we get the raw data for the widget form |
| 29 | 29 | $name = $event->getData()->getName(); |
| 30 | 30 | $formParams = $options['dataSources']->getDataSource($name)->{$options['dataSources']->getDataSourceParameters($name)['method'].'FormParams'}(); |
@@ -54,7 +54,7 @@ discard block |
||
| 54 | 54 | /* @var Session $session */ |
| 55 | 55 | $session = $this->getSession(); |
| 56 | 56 | |
| 57 | - if(!($session->getDriver() instanceof Selenium2Driver)) { |
|
| 57 | + if (!($session->getDriver() instanceof Selenium2Driver)) { |
|
| 58 | 58 | return; |
| 59 | 59 | } |
| 60 | 60 | |
@@ -69,12 +69,12 @@ discard block |
||
| 69 | 69 | } |
| 70 | 70 | $file = sprintf("%s:%d", $scope->getFeature()->getFile(), $scope->getStep()->getLine()); |
| 71 | 71 | $message = sprintf("Found %d javascript error%s", count($errors), count($errors) > 0 ? 's' : ''); |
| 72 | - echo '-------------------------------------------------------------' . PHP_EOL; |
|
| 73 | - echo $file . PHP_EOL; |
|
| 74 | - echo $message . PHP_EOL; |
|
| 75 | - echo '-------------------------------------------------------------' . PHP_EOL; |
|
| 72 | + echo '-------------------------------------------------------------'.PHP_EOL; |
|
| 73 | + echo $file.PHP_EOL; |
|
| 74 | + echo $message.PHP_EOL; |
|
| 75 | + echo '-------------------------------------------------------------'.PHP_EOL; |
|
| 76 | 76 | foreach ($errors as $index => $error) { |
| 77 | - echo sprintf(" #%d: %s", $index, $error) . PHP_EOL; |
|
| 77 | + echo sprintf(" #%d: %s", $index, $error).PHP_EOL; |
|
| 78 | 78 | } |
| 79 | 79 | } |
| 80 | 80 | |
@@ -332,8 +332,8 @@ discard block |
||
| 332 | 332 | throw new \Behat\Mink\Exception\ResponseTextException($message, $this->getSession()); |
| 333 | 333 | } |
| 334 | 334 | |
| 335 | - foreach($elements as $element) { |
|
| 336 | - if($element->getText() === $name) { |
|
| 335 | + foreach ($elements as $element) { |
|
| 336 | + if ($element->getText() === $name) { |
|
| 337 | 337 | $element->click(); |
| 338 | 338 | } |
| 339 | 339 | } |
@@ -19,7 +19,7 @@ |
||
| 19 | 19 | { |
| 20 | 20 | ob_start(); |
| 21 | 21 | $loader = $this; |
| 22 | - $includeWrapper = function () use ($file, $loader) { |
|
| 22 | + $includeWrapper = function() use ($file, $loader) { |
|
| 23 | 23 | return include $file; |
| 24 | 24 | }; |
| 25 | 25 | $data = $includeWrapper(); |