Completed
Push — sf-44 ( c12fd4...bb2145 )
by Kamil
21:19 queued 15:12
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/CoreBundle/Doctrine/ORM/ProductRepository.php 1 patch
Indentation   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -105,10 +105,10 @@
 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
-             ;
108
+                    ->select('min(v.position)')
109
+                    ->innerJoin('m.variants', 'v')
110
+                    ->andWhere('m.id = :product_id')
111
+                ;
112 112
 
113 113
             $queryBuilder
114 114
                 ->addSelect('variant')
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.
src/Sylius/Behat/Page/Shop/Product/ShowPage.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -139,7 +139,7 @@  discard block
 block discarded – undo
139 139
 
140 140
     public function hasAssociation(string $productAssociationName): bool
141 141
     {
142
-        try{
142
+        try {
143 143
             $this->getElement('association', ['%associationName%' => $productAssociationName]);
144 144
         } catch (ElementNotFoundException $e) {
145 145
             return false;
@@ -170,7 +170,7 @@  discard block
 block discarded – undo
170 170
 
171 171
     public function hasReviewTitled(string $title): bool
172 172
     {
173
-        try{
173
+        try {
174 174
             $element = $this->getElement('reviews_comment', ['%title%' => $title]);
175 175
         } catch (ElementNotFoundException $e) {
176 176
             return false;
@@ -186,7 +186,7 @@  discard block
 block discarded – undo
186 186
 
187 187
     public function isMainImageDisplayed(): bool
188 188
     {
189
-        if ( !$this->hasElement('main_image')) {
189
+        if (!$this->hasElement('main_image')) {
190 190
             return false;
191 191
         }
192 192
 
Please login to merge, or discard this patch.
src/Sylius/Behat/Page/Shop/Product/IndexPage.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -64,7 +64,7 @@
 block discarded – undo
64 64
 
65 65
     public function isProductOnList(string $productName): bool
66 66
     {
67
-        try{
67
+        try {
68 68
             $this->getElement('product_name', ['%productName%' => $productName]);
69 69
         } catch (ElementNotFoundException $e) {
70 70
             return false;
Please login to merge, or discard this patch.
src/Sylius/Bundle/CoreBundle/Command/ShowAvailablePluginsCommand.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -63,6 +63,6 @@
 block discarded – undo
63 63
         $this->plugins->add(new PluginInfo('<info>Customer Reorder</info>', 'Convenient reordering for the customers from the `My account` section.', 'https://github.com/Sylius/CustomerReorderPlugin'));
64 64
         $this->plugins->add(new PluginInfo('<info>Invoicing</info>', 'Automatised, basic invoicing system for orders.', 'https://github.com/Sylius/InvoicingPlugin'));
65 65
         $this->plugins->add(new PluginInfo('<info>Refund</info>', 'Full and partial refunds of items and/or shipping costs including Credit Memos.', 'https://github.com/Sylius/RefundPlugin'));
66
-        $this->plugins->add(new PluginInfo('<info>CMS</info>', 'This plugin allows you to add dynamic blocks with images, text or HTML to your storefront as well as pages and FAQs section.','https://github.com/BitBagCommerce/SyliusCmsPlugin' ));
66
+        $this->plugins->add(new PluginInfo('<info>CMS</info>', 'This plugin allows you to add dynamic blocks with images, text or HTML to your storefront as well as pages and FAQs section.', 'https://github.com/BitBagCommerce/SyliusCmsPlugin'));
67 67
     }
68 68
 }
Please login to merge, or discard this patch.