@@ -53,7 +53,7 @@ |
||
| 53 | 53 | $builder->add('payment', 'sylius_checkout_payment')->willReturn($builder)->shouldBeCalled(); |
| 54 | 54 | $builder->add('finalize', 'sylius_checkout_finalize')->willReturn($builder)->shouldBeCalled(); |
| 55 | 55 | $builder->setRedirect('sylius_order_purchase')->willReturn($builder)->shouldBeCalled(); |
| 56 | - $builder->setRedirectParams(['paymentId' => 1])->willReturn($builder)->shouldBeCalled();; |
|
| 56 | + $builder->setRedirectParams(['paymentId' => 1])->willReturn($builder)->shouldBeCalled(); ; |
|
| 57 | 57 | |
| 58 | 58 | $cart->getId()->willReturn(1); |
| 59 | 59 | |
@@ -40,7 +40,7 @@ |
||
| 40 | 40 | */ |
| 41 | 41 | public function waitForResponse($timeout, array $parameters = []) |
| 42 | 42 | { |
| 43 | - $this->getDocument()->waitFor($timeout, function () use ($parameters) { |
|
| 43 | + $this->getDocument()->waitFor($timeout, function() use ($parameters) { |
|
| 44 | 44 | return $this->isOpen($parameters); |
| 45 | 45 | }); |
| 46 | 46 | } |
@@ -67,6 +67,6 @@ |
||
| 67 | 67 | return; |
| 68 | 68 | } |
| 69 | 69 | |
| 70 | - $this->minkSession->visit(rtrim($this->minkParameters['base_url'], '/') . '/'); |
|
| 70 | + $this->minkSession->visit(rtrim($this->minkParameters['base_url'], '/').'/'); |
|
| 71 | 71 | } |
| 72 | 72 | } |
@@ -21,7 +21,7 @@ discard block |
||
| 21 | 21 | */ |
| 22 | 22 | public function getMockedResponse($source) |
| 23 | 23 | { |
| 24 | - $source = $this->getMockedResponsesFolder() . '/' . $source; |
|
| 24 | + $source = $this->getMockedResponsesFolder().'/'.$source; |
|
| 25 | 25 | |
| 26 | 26 | return (array) json_decode($this->getFileContents($source)); |
| 27 | 27 | } |
@@ -31,7 +31,7 @@ discard block |
||
| 31 | 31 | */ |
| 32 | 32 | public function getExpectedResponse($source) |
| 33 | 33 | { |
| 34 | - $source = $this->getExpectedResponsesFolder() . '/' . $source; |
|
| 34 | + $source = $this->getExpectedResponsesFolder().'/'.$source; |
|
| 35 | 35 | |
| 36 | 36 | return (array) json_decode($this->getFileContents($source)); |
| 37 | 37 | } |
@@ -41,7 +41,7 @@ discard block |
||
| 41 | 41 | */ |
| 42 | 42 | private function getResponsesFolder() |
| 43 | 43 | { |
| 44 | - return $this->getCalledClassFolder() . '/Responses'; |
|
| 44 | + return $this->getCalledClassFolder().'/Responses'; |
|
| 45 | 45 | } |
| 46 | 46 | |
| 47 | 47 | /** |
@@ -49,7 +49,7 @@ discard block |
||
| 49 | 49 | */ |
| 50 | 50 | private function getMockedResponsesFolder() |
| 51 | 51 | { |
| 52 | - return $this->getResponsesFolder() . '/Mocked'; |
|
| 52 | + return $this->getResponsesFolder().'/Mocked'; |
|
| 53 | 53 | } |
| 54 | 54 | |
| 55 | 55 | /** |
@@ -57,7 +57,7 @@ discard block |
||
| 57 | 57 | */ |
| 58 | 58 | private function getExpectedResponsesFolder() |
| 59 | 59 | { |
| 60 | - return $this->getResponsesFolder() . '/Expected'; |
|
| 60 | + return $this->getResponsesFolder().'/Expected'; |
|
| 61 | 61 | } |
| 62 | 62 | |
| 63 | 63 | /** |
@@ -520,7 +520,7 @@ |
||
| 520 | 520 | |
| 521 | 521 | // can it be handled by an extension? |
| 522 | 522 | if (!$this->container->hasExtension($node->namespaceURI)) { |
| 523 | - $extensionNamespaces = array_filter(array_map(function ($ext) { return $ext->getNamespace(); }, $this->container->getExtensions())); |
|
| 523 | + $extensionNamespaces = array_filter(array_map(function($ext) { return $ext->getNamespace(); }, $this->container->getExtensions())); |
|
| 524 | 524 | throw new InvalidArgumentException(sprintf( |
| 525 | 525 | 'There is no extension able to load the configuration for "%s" (in %s). Looked for namespace "%s", found %s', |
| 526 | 526 | $node->tagName, |
@@ -331,7 +331,7 @@ discard block |
||
| 331 | 331 | } |
| 332 | 332 | |
| 333 | 333 | foreach ($facets as &$facet) { |
| 334 | - $facet = array_filter($facet, function($v){ |
|
| 334 | + $facet = array_filter($facet, function($v) { |
|
| 335 | 335 | return $v["doc_count"] != 0; |
| 336 | 336 | }); |
| 337 | 337 | } |
@@ -546,25 +546,25 @@ discard block |
||
| 546 | 546 | $variantsNestedBool = new BoolQuery(); |
| 547 | 547 | $variantsNestedBool->setMinimumNumberShouldMatch(1); |
| 548 | 548 | |
| 549 | - $availableOn = new QueryRange($nestedProperty . '.availableOn', array('lte' => "now")); |
|
| 549 | + $availableOn = new QueryRange($nestedProperty.'.availableOn', array('lte' => "now")); |
|
| 550 | 550 | $variantsNestedBool->addMust($availableOn); |
| 551 | 551 | |
| 552 | 552 | $availableUntil = new Filtered(); |
| 553 | 553 | $availableUntilFilter = new BoolOr(); |
| 554 | 554 | |
| 555 | - $availableUntilNull = new Missing($nestedProperty . '.availableUntil'); |
|
| 555 | + $availableUntilNull = new Missing($nestedProperty.'.availableUntil'); |
|
| 556 | 556 | $availableUntilFilter->addFilter($availableUntilNull); |
| 557 | 557 | |
| 558 | - $availableUntilGte = new FilterRange($nestedProperty . '.availableUntil', array('gte' => time())); |
|
| 558 | + $availableUntilGte = new FilterRange($nestedProperty.'.availableUntil', array('gte' => time())); |
|
| 559 | 559 | $availableUntilFilter->addFilter($availableUntilGte); |
| 560 | 560 | |
| 561 | 561 | $availableUntil->setFilter($availableUntilFilter); |
| 562 | 562 | $variantsNestedBool->addMust($availableUntil); |
| 563 | 563 | |
| 564 | - $availableOnDemand = new QueryTerm(array($nestedProperty . '.availableOnDemand' => true)); |
|
| 564 | + $availableOnDemand = new QueryTerm(array($nestedProperty.'.availableOnDemand' => true)); |
|
| 565 | 565 | $variantsNestedBool->addShould($availableOnDemand); |
| 566 | 566 | |
| 567 | - $onHand = new QueryRange($nestedProperty . '.onHand', array('gt' => 0)); |
|
| 567 | + $onHand = new QueryRange($nestedProperty.'.onHand', array('gt' => 0)); |
|
| 568 | 568 | $variantsNestedBool->addShould($onHand); |
| 569 | 569 | |
| 570 | 570 | $nested = new Nested(); |
@@ -51,13 +51,13 @@ |
||
| 51 | 51 | |
| 52 | 52 | foreach ($securityRoles as $securityRole) { |
| 53 | 53 | if (!$user->hasRole($securityRole)) { |
| 54 | - $output->writeln(sprintf('<error>User "%s" didn\'t have "%s" Security role.</error>', (string)$user, $securityRole)); |
|
| 54 | + $output->writeln(sprintf('<error>User "%s" didn\'t have "%s" Security role.</error>', (string) $user, $securityRole)); |
|
| 55 | 55 | $error = true; |
| 56 | 56 | continue; |
| 57 | 57 | } |
| 58 | 58 | |
| 59 | 59 | $user->removeRole($securityRole); |
| 60 | - $output->writeln(sprintf('Security role <comment>%s</comment> has been removed from user <comment>%s</comment>', $securityRole, (string)$user)); |
|
| 60 | + $output->writeln(sprintf('Security role <comment>%s</comment> has been removed from user <comment>%s</comment>', $securityRole, (string) $user)); |
|
| 61 | 61 | } |
| 62 | 62 | |
| 63 | 63 | if (!$error) { |
@@ -121,7 +121,7 @@ |
||
| 121 | 121 | public function getMatchers() |
| 122 | 122 | { |
| 123 | 123 | return [ |
| 124 | - 'beCollection' => function ($subject, $key) { |
|
| 124 | + 'beCollection' => function($subject, $key) { |
|
| 125 | 125 | if (!$subject instanceof Collection || !$key instanceof Collection) { |
| 126 | 126 | return false; |
| 127 | 127 | } |
@@ -79,14 +79,14 @@ |
||
| 79 | 79 | private function addKeywordsTransformer(FormBuilderInterface $builder) |
| 80 | 80 | { |
| 81 | 81 | $builder->get('keywords')->addModelTransformer(new CallbackTransformer( |
| 82 | - function ($originalKeywords) { |
|
| 82 | + function($originalKeywords) { |
|
| 83 | 83 | if (!is_array($originalKeywords)) { |
| 84 | 84 | return ''; |
| 85 | 85 | } |
| 86 | 86 | |
| 87 | 87 | return implode(', ', $originalKeywords); |
| 88 | 88 | }, |
| 89 | - function ($submittedKeywords) { |
|
| 89 | + function($submittedKeywords) { |
|
| 90 | 90 | return array_map('trim', explode(',', $submittedKeywords)); |
| 91 | 91 | } |
| 92 | 92 | )); |