@@ -81,7 +81,7 @@ discard block |
||
81 | 81 | try { |
82 | 82 | $this->filesystem->mkdir($directory, 0755); |
83 | 83 | } catch (IOException $exception) { |
84 | - $output->writeln($this->createUnexistingDirectoryMessage(getcwd().'/'.$directory)); |
|
84 | + $output->writeln($this->createUnexistingDirectoryMessage(getcwd() . '/' . $directory)); |
|
85 | 85 | |
86 | 86 | throw new \RuntimeException('Failed while trying to create directory.'); |
87 | 87 | } |
@@ -137,7 +137,7 @@ discard block |
||
137 | 137 | private function createUnexistingDirectoryMessage($directory) |
138 | 138 | { |
139 | 139 | return |
140 | - '<error>Cannot run command due to unexisting directory (tried to create it automatically, failed).</error>'.PHP_EOL. |
|
140 | + '<error>Cannot run command due to unexisting directory (tried to create it automatically, failed).</error>' . PHP_EOL . |
|
141 | 141 | sprintf('Create directory "%s" and run command "<comment>%s</comment>"', $directory, $this->name) |
142 | 142 | ; |
143 | 143 | } |
@@ -150,7 +150,7 @@ discard block |
||
150 | 150 | private function createBadPermissionsMessage($directory) |
151 | 151 | { |
152 | 152 | return |
153 | - '<error>Cannot run command due to bad directory permissions (tried to change permissions to 0755).</error>'.PHP_EOL. |
|
153 | + '<error>Cannot run command due to bad directory permissions (tried to change permissions to 0755).</error>' . PHP_EOL . |
|
154 | 154 | sprintf('Set "%s" writable recursively and run command "<comment>%s</comment>"', $directory, $this->name) |
155 | 155 | ; |
156 | 156 | } |
@@ -46,7 +46,7 @@ |
||
46 | 46 | |
47 | 47 | function it_listens_on_pre_submit_data_event() |
48 | 48 | { |
49 | - $this->getSubscribedEvents()->shouldReturn([FormEvents::PRE_SUBMIT => 'preSubmit',]); |
|
49 | + $this->getSubscribedEvents()->shouldReturn([FormEvents::PRE_SUBMIT => 'preSubmit', ]); |
|
50 | 50 | } |
51 | 51 | |
52 | 52 | function it_sets_user_for_existing_customer( |
@@ -347,7 +347,7 @@ |
||
347 | 347 | Pagerfanta $results, |
348 | 348 | $template, |
349 | 349 | $page |
350 | - ){ |
|
350 | + ) { |
|
351 | 351 | $results->setCurrentPage($page, true, true); |
352 | 352 | $results->setMaxPerPage($this->config->getPaginationMaxPerPage()); |
353 | 353 |
@@ -45,7 +45,7 @@ |
||
45 | 45 | function it_throws_unexpected_type_excepotion_if_data_is_not_customer_type( |
46 | 46 | FormEvent $event, |
47 | 47 | ShopUserInterface $user |
48 | - ){ |
|
48 | + ) { |
|
49 | 49 | $event->getData()->willReturn($user); |
50 | 50 | |
51 | 51 | $this->shouldThrow(UnexpectedTypeException::class)->during('submit', [$event]); |
@@ -51,7 +51,7 @@ |
||
51 | 51 | return $this->faker->email; |
52 | 52 | }) |
53 | 53 | ->setDefault('username', function (Options $options) { |
54 | - return $this->faker->firstName.' '.$this->faker->lastName; |
|
54 | + return $this->faker->firstName . ' ' . $this->faker->lastName; |
|
55 | 55 | }) |
56 | 56 | ->setDefault('enabled', function (Options $options) { |
57 | 57 | return $this->faker->boolean(90); |
@@ -50,7 +50,8 @@ |
||
50 | 50 | $resolver->setDefault('validation_groups', function (FormInterface $form) { |
51 | 51 | $validationGroups = $this->validationGroups; |
52 | 52 | |
53 | - if ((bool) $form->get('promotionCoupon')->getNormData()) { // Validate the coupon if it was sent |
|
53 | + if ((bool) $form->get('promotionCoupon')->getNormData()) { |
|
54 | +// Validate the coupon if it was sent |
|
54 | 55 | $validationGroups[] = 'sylius_promotion_coupon'; |
55 | 56 | } |
56 | 57 |
@@ -28,7 +28,7 @@ discard block |
||
28 | 28 | public function load(array $config, ContainerBuilder $container) |
29 | 29 | { |
30 | 30 | $config = $this->processConfiguration($this->getConfiguration($config, $container), $config); |
31 | - $loader = new XmlFileLoader($container, new FileLocator(__DIR__.'/../Resources/config')); |
|
31 | + $loader = new XmlFileLoader($container, new FileLocator(__DIR__ . '/../Resources/config')); |
|
32 | 32 | |
33 | 33 | $loader->load(sprintf('driver/%s.xml', $config['driver'])); |
34 | 34 | |
@@ -90,7 +90,7 @@ discard block |
||
90 | 90 | return; |
91 | 91 | } |
92 | 92 | |
93 | - $loader = new XmlFileLoader($container, new FileLocator(__DIR__.'/../Resources/config')); |
|
93 | + $loader = new XmlFileLoader($container, new FileLocator(__DIR__ . '/../Resources/config')); |
|
94 | 94 | $loader->load('resource_integration.xml'); |
95 | 95 | |
96 | 96 | $container->prependExtensionConfig('sylius_resource', [ |
@@ -30,7 +30,7 @@ |
||
30 | 30 | ->setDescription('Initialize default permissions & roles in the application.') |
31 | 31 | ->setHelp(<<<EOT |
32 | 32 | The <info>%command.name%</info> command initializes default RBAC setup. |
33 | -EOT |
|
33 | +eot |
|
34 | 34 | ) |
35 | 35 | ; |
36 | 36 | } |
@@ -30,7 +30,7 @@ |
||
30 | 30 | ->setDescription('Initialize default permissions & roles in the application.') |
31 | 31 | ->setHelp(<<<EOT |
32 | 32 | The <info>%command.name%</info> command initializes default RBAC setup. |
33 | -EOT |
|
33 | +eot |
|
34 | 34 | ) |
35 | 35 | ; |
36 | 36 | } |
@@ -73,7 +73,7 @@ |
||
73 | 73 | foreach ($this->commands as $step => $command) { |
74 | 74 | try { |
75 | 75 | $output->writeln(sprintf('<comment>Step %d of %d.</comment> <info>%s</info>', $step + 1, count($this->commands), $command['message'])); |
76 | - $this->commandExecutor->runCommand('sylius:install:'.$command['command'], [], $output); |
|
76 | + $this->commandExecutor->runCommand('sylius:install:' . $command['command'], [], $output); |
|
77 | 77 | $output->writeln(''); |
78 | 78 | } catch (RuntimeException $exception) { |
79 | 79 | $this->isErrored = true; |
@@ -30,7 +30,7 @@ |
||
30 | 30 | ->setDescription('Initialize default permissions & roles in the application.') |
31 | 31 | ->setHelp(<<<EOT |
32 | 32 | The <info>%command.name%</info> command initializes default RBAC setup. |
33 | -EOT |
|
33 | +eot |
|
34 | 34 | ) |
35 | 35 | ; |
36 | 36 | } |