@@ -77,7 +77,7 @@ |
||
| 77 | 77 | */ |
| 78 | 78 | public function getAlias() |
| 79 | 79 | { |
| 80 | - return $this->applicationName.'.'.$this->name; |
|
| 80 | + return $this->applicationName . '.' . $this->name; |
|
| 81 | 81 | } |
| 82 | 82 | |
| 83 | 83 | /** |
@@ -24,6 +24,6 @@ |
||
| 24 | 24 | */ |
| 25 | 25 | public function generate(OrderInterface $order, PaymentInterface $payment) |
| 26 | 26 | { |
| 27 | - return $order->getId().'-'.$payment->getId(); |
|
| 27 | + return $order->getId() . '-' . $payment->getId(); |
|
| 28 | 28 | } |
| 29 | 29 | } |
@@ -44,7 +44,7 @@ |
||
| 44 | 44 | |
| 45 | 45 | do { |
| 46 | 46 | $hash = md5(uniqid(mt_rand(), true)); |
| 47 | - $path = $this->expandPath($hash.'.'.$image->getFile()->guessExtension()); |
|
| 47 | + $path = $this->expandPath($hash . '.' . $image->getFile()->guessExtension()); |
|
| 48 | 48 | } while ($this->filesystem->has($path)); |
| 49 | 49 | |
| 50 | 50 | $image->setPath($path); |
@@ -11,7 +11,7 @@ |
||
| 11 | 11 | |
| 12 | 12 | namespace spec\Sylius\Component\Registry; |
| 13 | 13 | |
| 14 | -require_once __DIR__.'/Fixture/SampleServiceInterface.php'; |
|
| 14 | +require_once __DIR__ . '/Fixture/SampleServiceInterface.php'; |
|
| 15 | 15 | |
| 16 | 16 | use PhpSpec\ObjectBehavior; |
| 17 | 17 | use spec\Sylius\Component\Registry\Fixture\SampleServiceInterface; |
@@ -11,7 +11,7 @@ |
||
| 11 | 11 | |
| 12 | 12 | namespace spec\Sylius\Component\Registry; |
| 13 | 13 | |
| 14 | -require_once __DIR__.'/Fixture/SampleServiceInterface.php'; |
|
| 14 | +require_once __DIR__ . '/Fixture/SampleServiceInterface.php'; |
|
| 15 | 15 | |
| 16 | 16 | use PhpSpec\ObjectBehavior; |
| 17 | 17 | use Prophecy\Argument; |
@@ -92,10 +92,10 @@ |
||
| 92 | 92 | $string .= '('; |
| 93 | 93 | |
| 94 | 94 | foreach ($this->getOptionValues() as $option) { |
| 95 | - $string .= $option->getOption()->getName().': '.$option->getValue().', '; |
|
| 95 | + $string .= $option->getOption()->getName() . ': ' . $option->getValue() . ', '; |
|
| 96 | 96 | } |
| 97 | 97 | |
| 98 | - $string = substr($string, 0, -2).')'; |
|
| 98 | + $string = substr($string, 0, -2) . ')'; |
|
| 99 | 99 | } |
| 100 | 100 | |
| 101 | 101 | return $string; |
@@ -40,7 +40,7 @@ |
||
| 40 | 40 | |
| 41 | 41 | public function remove() |
| 42 | 42 | { |
| 43 | - $expiredCarts = $this->orderRepository->findCartsNotModifiedSince(new \DateTime('-'.$this->expirationPeriod)); |
|
| 43 | + $expiredCarts = $this->orderRepository->findCartsNotModifiedSince(new \DateTime('-' . $this->expirationPeriod)); |
|
| 44 | 44 | foreach ($expiredCarts as $expiredCart) { |
| 45 | 45 | $this->orderRepository->remove($expiredCart); |
| 46 | 46 | } |
@@ -58,7 +58,7 @@ |
||
| 58 | 58 | */ |
| 59 | 59 | public function theyAbandonedTheirCart(OrderInterface $cart, $amount, $time) |
| 60 | 60 | { |
| 61 | - $cart->setUpdatedAt(new \DateTime('-'.$amount.' '.$time)); |
|
| 61 | + $cart->setUpdatedAt(new \DateTime('-' . $amount . ' ' . $time)); |
|
| 62 | 62 | $this->orderManager->flush(); |
| 63 | 63 | } |
| 64 | 64 | |
@@ -22,7 +22,7 @@ discard block |
||
| 22 | 22 | $this |
| 23 | 23 | ->add(new Requirement( |
| 24 | 24 | $translator->trans('sylius.installer.filesystem.vendors', []), |
| 25 | - is_dir($root.'/../vendor') |
|
| 25 | + is_dir($root . '/../vendor') |
|
| 26 | 26 | )) |
| 27 | 27 | ->add(new Requirement( |
| 28 | 28 | $translator->trans('sylius.installer.filesystem.cache.header', []), |
@@ -38,9 +38,9 @@ discard block |
||
| 38 | 38 | )) |
| 39 | 39 | ->add(new Requirement( |
| 40 | 40 | $translator->trans('sylius.installer.filesystem.parameters.header', []), |
| 41 | - is_writable($root.'/config/parameters.yml'), |
|
| 41 | + is_writable($root . '/config/parameters.yml'), |
|
| 42 | 42 | true, |
| 43 | - $translator->trans('sylius.installer.filesystem.parameters.help', ['%path%' => $root.'/config/parameters.yml']) |
|
| 43 | + $translator->trans('sylius.installer.filesystem.parameters.help', ['%path%' => $root . '/config/parameters.yml']) |
|
| 44 | 44 | )) |
| 45 | 45 | ; |
| 46 | 46 | } |