Completed
Push — locale-in-url-docs ( 2a60a6...8c212f )
by Kamil
28:37 queued 09:45
created
src/Sylius/Component/Core/Model/ProductVariant.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -92,10 +92,10 @@
 block discarded – undo
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;
Please login to merge, or discard this patch.
src/Sylius/Behat/Context/Domain/CartContext.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -58,7 +58,7 @@
 block discarded – undo
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
 
Please login to merge, or discard this patch.
Sylius/Bundle/CoreBundle/Installer/Requirement/FilesystemRequirements.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -22,7 +22,7 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
     }
Please login to merge, or discard this patch.
spec/Form/EventSubscriber/CustomerRegistrationFormSubscriberSpec.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -46,7 +46,7 @@
 block discarded – undo
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(
Please login to merge, or discard this patch.
Bundle/ReviewBundle/Doctrine/ORM/Subscriber/LoadMetadataSubscriber.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -86,7 +86,7 @@
 block discarded – undo
86 86
             'inversedBy' => 'reviews',
87 87
             'joinColumns' => [
88 88
                 [
89
-                    'name' => $subject.'_id',
89
+                    'name' => $subject . '_id',
90 90
                     'referencedColumnName' => $reviewableEntityMetadata->fieldMappings['id']['columnName'],
91 91
                     'nullable' => false,
92 92
                     'onDelete' => 'CASCADE',
Please login to merge, or discard this patch.
src/Sylius/Bundle/OrderBundle/spec/Context/SessionBasedCartContextSpec.php 2 patches
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -45,7 +45,7 @@
 block discarded – undo
45 45
         SessionInterface $session,
46 46
         OrderRepositoryInterface $orderRepository,
47 47
         OrderInterface $cart
48
-    )  {
48
+    ) {
49 49
         $session->has('session_key_name')->willReturn(true);
50 50
         $session->get('session_key_name')->willReturn(12345);
51 51
         $orderRepository->findCartById(12345)->willReturn($cart);
Please login to merge, or discard this patch.
Braces   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -45,7 +45,7 @@
 block discarded – undo
45 45
         SessionInterface $session,
46 46
         OrderRepositoryInterface $orderRepository,
47 47
         OrderInterface $cart
48
-    )  {
48
+    ) {
49 49
         $session->has('session_key_name')->willReturn(true);
50 50
         $session->get('session_key_name')->willReturn(12345);
51 51
         $orderRepository->findCartById(12345)->willReturn($cart);
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
@@ -37,8 +37,8 @@
 block discarded – undo
37 37
     public function getFunctions()
38 38
     {
39 39
         return [
40
-             new \Twig_SimpleFunction('sylius_inventory_is_available', [$this->helper, 'isStockAvailable']),
41
-             new \Twig_SimpleFunction('sylius_inventory_is_sufficient', [$this->helper, 'isStockSufficient']),
40
+                new \Twig_SimpleFunction('sylius_inventory_is_available', [$this->helper, 'isStockAvailable']),
41
+                new \Twig_SimpleFunction('sylius_inventory_is_sufficient', [$this->helper, 'isStockSufficient']),
42 42
         ];
43 43
     }
44 44
 
Please login to merge, or discard this patch.
Bundle/AttributeBundle/Doctrine/ORM/Subscriber/LoadMetadataSubscriber.php 2 patches
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -87,7 +87,7 @@
 block discarded – undo
87 87
             'targetEntity' => $subjectClass,
88 88
             'inversedBy' => 'attributes',
89 89
             'joinColumns' => [[
90
-                'name' => $subject.'_id',
90
+                'name' => $subject . '_id',
91 91
                 'referencedColumnName' => $targetEntityMetadata->fieldMappings['id']['columnName'],
92 92
                 'nullable' => false,
93 93
                 'onDelete' => 'CASCADE',
Please login to merge, or discard this patch.
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -39,7 +39,7 @@
 block discarded – undo
39 39
     }
40 40
 
41 41
     /**
42
-     * @return array
42
+     * @return string[]
43 43
      */
44 44
     public function getSubscribedEvents()
45 45
     {
Please login to merge, or discard this patch.
src/Sylius/Bundle/ThemeBundle/Tests/Functional/TemplatingTest.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -26,7 +26,7 @@  discard block
 block discarded – undo
26 26
     {
27 27
         $client = $this->getClient();
28 28
 
29
-        $crawler = $client->request('GET', '/template/'.$templateName);
29
+        $crawler = $client->request('GET', '/template/' . $templateName);
30 30
         $this->assertEquals($contents, trim($crawler->text()));
31 31
     }
32 32
 
@@ -54,7 +54,7 @@  discard block
 block discarded – undo
54 54
     {
55 55
         $client = $this->getClient();
56 56
 
57
-        $crawler = $client->request('GET', '/template/'.$templateName);
57
+        $crawler = $client->request('GET', '/template/' . $templateName);
58 58
         $this->assertEquals($contents, trim($crawler->text()));
59 59
     }
60 60
 
@@ -82,7 +82,7 @@  discard block
 block discarded – undo
82 82
     {
83 83
         $client = $this->getClient();
84 84
 
85
-        $crawler = $client->request('GET', '/template/'.$templateName);
85
+        $crawler = $client->request('GET', '/template/' . $templateName);
86 86
         $this->assertEquals($contents, trim($crawler->text()));
87 87
     }
88 88
 
@@ -108,7 +108,7 @@  discard block
 block discarded – undo
108 108
     {
109 109
         $client = $this->getClient();
110 110
 
111
-        $crawler = $client->request('GET', '/template/'.$templateName);
111
+        $crawler = $client->request('GET', '/template/' . $templateName);
112 112
         $this->assertEquals($contents, trim($crawler->text()));
113 113
     }
114 114
 
Please login to merge, or discard this patch.