Completed
Push — 1.10 ( 41a46f...d920ca )
by Kamil
01:03
created
src/Sylius/Component/Core/spec/Updater/UnpaidOrdersStateUpdaterSpec.php 1 patch
Indentation   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -46,8 +46,8 @@
 block discarded – undo
46 46
         StateMachineInterface $secondOrderStateMachine
47 47
     ): void {
48 48
         $orderRepository->findOrdersUnpaidSince(Argument::type(\DateTimeInterface::class))->willReturn([
49
-           $firstOrder,
50
-           $secondOrder,
49
+            $firstOrder,
50
+            $secondOrder,
51 51
         ]);
52 52
 
53 53
         $stateMachineFactory->get($firstOrder, 'sylius_order')->willReturn($firstOrderStateMachine);
Please login to merge, or discard this patch.
src/Sylius/Bundle/InventoryBundle/Twig/InventoryExtension.php 1 patch
Indentation   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -33,8 +33,8 @@
 block discarded – undo
33 33
     public function getFunctions(): array
34 34
     {
35 35
         return [
36
-             new TwigFunction('sylius_inventory_is_available', [$this->helper, 'isStockAvailable']),
37
-             new TwigFunction('sylius_inventory_is_sufficient', [$this->helper, 'isStockSufficient']),
36
+                new TwigFunction('sylius_inventory_is_available', [$this->helper, 'isStockAvailable']),
37
+                new TwigFunction('sylius_inventory_is_sufficient', [$this->helper, 'isStockSufficient']),
38 38
         ];
39 39
     }
40 40
 }
Please login to merge, or discard this patch.
src/Sylius/Bundle/CoreBundle/Fixture/OptionsResolver/LazyOption.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -102,7 +102,7 @@
 block discarded – undo
102 102
 
103 103
     public static function findBy(RepositoryInterface $repository, string $field, array $criteria = []): \Closure
104 104
     {
105
-        return function (Options $options, ?array $previousValues) use ($repository, $field, $criteria): ?iterable {
105
+        return function (Options $options, ?array $previousValues) use ($repository, $field, $criteria) : ?iterable {
106 106
             if (null === $previousValues || [] === $previousValues) {
107 107
                 return $previousValues;
108 108
             }
Please login to merge, or discard this patch.
Sylius/Behat/Context/Api/Admin/ManagingProductAssociationTypesContext.php 1 patch
Indentation   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -65,10 +65,10 @@
 block discarded – undo
65 65
     {
66 66
         $this->client->updateRequestData([
67 67
             'translations' => [
68
-                 $localeCode => [
69
-                      'name' => $productAssociationTypeName,
70
-                      'locale' => $localeCode,
71
-                 ],
68
+                    $localeCode => [
69
+                        'name' => $productAssociationTypeName,
70
+                        'locale' => $localeCode,
71
+                    ],
72 72
             ],
73 73
         ]);
74 74
     }
Please login to merge, or discard this patch.
src/Sylius/Bundle/CoreBundle/Fixture/Factory/PromotionExampleFactory.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -166,7 +166,7 @@
 block discarded – undo
166 166
 
167 167
     private static function getCouponNormalizer(?FactoryInterface $couponFactory): \Closure
168 168
     {
169
-        return function (Options $options, array $couponDefinitions) use ($couponFactory): array {
169
+        return function (Options $options, array $couponDefinitions) use ($couponFactory) : array {
170 170
             if (null === $couponFactory) {
171 171
                 throw new \RuntimeException('You must configure a $couponFactory');
172 172
             }
Please login to merge, or discard this patch.
src/Sylius/Bundle/CoreBundle/Doctrine/ORM/ProductRepository.php 1 patch
Indentation   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -105,11 +105,11 @@
 block discarded – undo
105 105
         if (isset($sorting['price'])) {
106 106
             // Another hack, the subquery to get the first position variant
107 107
             $subQuery = $this->createQueryBuilder('m')
108
-                 ->select('min(v.position)')
109
-                 ->innerJoin('m.variants', 'v')
110
-                 ->andWhere('m.id = :product_id')
111
-                 ->andWhere('v.enabled = :enabled')
112
-             ;
108
+                    ->select('min(v.position)')
109
+                    ->innerJoin('m.variants', 'v')
110
+                    ->andWhere('m.id = :product_id')
111
+                    ->andWhere('v.enabled = :enabled')
112
+                ;
113 113
 
114 114
             $queryBuilder
115 115
                 ->addSelect('variant')
Please login to merge, or discard this patch.
src/Sylius/Bundle/AddressingBundle/Form/Type/ZoneType.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -72,7 +72,7 @@
 block discarded – undo
72 72
             ];
73 73
 
74 74
             if ($zone->getType() === ZoneInterface::TYPE_ZONE) {
75
-                $entryOptions['entry_options']['choice_filter'] = static function (?ZoneInterface $subZone) use ($zone): bool {
75
+                $entryOptions['entry_options']['choice_filter'] = static function (?ZoneInterface $subZone) use ($zone) : bool {
76 76
                     return $subZone !== null && $zone->getId() !== $subZone->getId();
77 77
                 };
78 78
             }
Please login to merge, or discard this patch.
src/Sylius/Behat/Service/Helper/JavaScriptTestHelper.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -42,7 +42,7 @@  discard block
 block discarded – undo
42 42
         string $message,
43 43
         ?int $timeout = null
44 44
     ): void {
45
-        $callable = function () use ($notificationChecker, $message, $type): void {
45
+        $callable = function () use ($notificationChecker, $message, $type) : void {
46 46
             $notificationChecker->checkNotification($message, $type);
47 47
         };
48 48
 
@@ -51,7 +51,7 @@  discard block
 block discarded – undo
51 51
 
52 52
     public function waitUntilPageOpens(PageInterface $page, ?array $options = [], ?int $timeout = null): void
53 53
     {
54
-        $callable = function () use ($page, $options): void {
54
+        $callable = function () use ($page, $options) : void {
55 55
             $page->open($options);
56 56
         };
57 57
 
Please login to merge, or discard this patch.
etc/psalm/LaminasPriorityQueueStub.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -51,7 +51,7 @@  discard block
 block discarded – undo
51 51
      * with keys "data" and "priority".
52 52
      * @var array
53 53
      */
54
-    protected $items      = [];
54
+    protected $items = [];
55 55
 
56 56
     /**
57 57
      * Inner queue object
@@ -113,7 +113,7 @@  discard block
 block discarded – undo
113 113
             unset($this->items[$key]);
114 114
             $this->queue = null;
115 115
 
116
-            if (! $this->isEmpty()) {
116
+            if (!$this->isEmpty()) {
117 117
                 $queue = $this->getQueue();
118 118
                 foreach ($this->items as $item) {
119 119
                     $queue->insert($item['data'], $item['priority']);
@@ -324,7 +324,7 @@  discard block
 block discarded – undo
324 324
     {
325 325
         if (null === $this->queue) {
326 326
             $this->queue = new $this->queueClass();
327
-            if (! $this->queue instanceof \SplPriorityQueue) {
327
+            if (!$this->queue instanceof \SplPriorityQueue) {
328 328
                 throw new Exception\DomainException(sprintf(
329 329
                     'PriorityQueue expects an internal queue of type SplPriorityQueue; received "%s"',
330 330
                     get_class($this->queue)
Please login to merge, or discard this patch.