@@ -48,7 +48,7 @@ |
||
48 | 48 | 'form' => [ |
49 | 49 | 'default' => BookTranslationType::class, |
50 | 50 | ], |
51 | - ], |
|
51 | + ], |
|
52 | 52 | ], |
53 | 53 | ], |
54 | 54 | ], |
@@ -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 | )); |
@@ -236,7 +236,7 @@ discard block |
||
236 | 236 | */ |
237 | 237 | public function getItemUnitsByVariant(ProductVariantInterface $variant) |
238 | 238 | { |
239 | - return $this->getItemUnits()->filter(function (OrderItemUnitInterface $itemUnit) use ($variant) { |
|
239 | + return $this->getItemUnits()->filter(function(OrderItemUnitInterface $itemUnit) use ($variant) { |
|
240 | 240 | return $variant === $itemUnit->getStockable(); |
241 | 241 | }); |
242 | 242 | } |
@@ -300,7 +300,7 @@ discard block |
||
300 | 300 | return null; |
301 | 301 | } |
302 | 302 | |
303 | - $payment = $this->payments->filter(function (BasePaymentInterface $payment) use ($state) { |
|
303 | + $payment = $this->payments->filter(function(BasePaymentInterface $payment) use ($state) { |
|
304 | 304 | return $payment->getState() === $state; |
305 | 305 | })->last(); |
306 | 306 |
@@ -45,7 +45,7 @@ |
||
45 | 45 | 'label' => 'sylius.form.action.customer_group', |
46 | 46 | 'property' => 'name', |
47 | 47 | 'class' => $this->groupRepository->getClassName(), |
48 | - 'query_builder' => function () { |
|
48 | + 'query_builder' => function() { |
|
49 | 49 | return $this->groupRepository->getFormQueryBuilder(); |
50 | 50 | }, |
51 | 51 | 'constraints' => array( |
@@ -45,7 +45,7 @@ |
||
45 | 45 | 'label' => 'sylius.form.action.customer_group', |
46 | 46 | 'property' => 'name', |
47 | 47 | 'class' => $this->groupRepository->getClassName(), |
48 | - 'query_builder' => function () { |
|
48 | + 'query_builder' => function() { |
|
49 | 49 | return $this->groupRepository->getFormQueryBuilder(); |
50 | 50 | }, |
51 | 51 | 'constraints' => array( |
@@ -68,7 +68,7 @@ |
||
68 | 68 | |
69 | 69 | $screenshotRelativePath = $screenshots[$screenshotNumber]; |
70 | 70 | |
71 | - return rtrim($theme->getPath(), \DIRECTORY_SEPARATOR) . \DIRECTORY_SEPARATOR . $screenshotRelativePath; |
|
71 | + return rtrim($theme->getPath(), \DIRECTORY_SEPARATOR).\DIRECTORY_SEPARATOR.$screenshotRelativePath; |
|
72 | 72 | } |
73 | 73 | |
74 | 74 | /** |
@@ -34,7 +34,7 @@ discard block |
||
34 | 34 | function let(RepositoryInterface $themeRepository) |
35 | 35 | { |
36 | 36 | $this->beConstructedWith($themeRepository); |
37 | - $this->fixturesPath = realpath(__DIR__ . '/../Fixtures'); |
|
37 | + $this->fixturesPath = realpath(__DIR__.'/../Fixtures'); |
|
38 | 38 | } |
39 | 39 | |
40 | 40 | function it_is_initializable() |
@@ -54,7 +54,7 @@ discard block |
||
54 | 54 | |
55 | 55 | $this |
56 | 56 | ->streamScreenshotAction(42, 0) |
57 | - ->shouldBeBinaryFileResponseStreamingFile($this->fixturesPath . '/screenshot/0-amazing.jpg') |
|
57 | + ->shouldBeBinaryFileResponseStreamingFile($this->fixturesPath.'/screenshot/0-amazing.jpg') |
|
58 | 58 | ; |
59 | 59 | } |
60 | 60 | |
@@ -113,7 +113,7 @@ discard block |
||
113 | 113 | public function getMatchers() |
114 | 114 | { |
115 | 115 | return [ |
116 | - 'beBinaryFileResponseStreamingFile' => function (BinaryFileResponse $response, $file) { |
|
116 | + 'beBinaryFileResponseStreamingFile' => function(BinaryFileResponse $response, $file) { |
|
117 | 117 | return $response->getFile()->getRealPath() === $file; |
118 | 118 | }, |
119 | 119 | ]; |