Completed
Push — symfony3-directorystructure ( c2fd26 )
by Kamil
85:38 queued 68:27
created
src/Sylius/Behat/Context/Transform/AddressContext.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -69,7 +69,7 @@  discard block
 block discarded – undo
69 69
      * @Transform /^address is "([^"]+)", "([^"]+)", "([^"]+)", "([^"]+)" for "([^"]+)"$/
70 70
      * @Transform /^address to "([^"]+)", "([^"]+)", "([^"]+)", "([^"]+)" for "([^"]+)"$/
71 71
      */
72
-    public function createNewAddressWith($cityName, $street, $postcode, $countryName, $customerName,  $provinceName = null)
72
+    public function createNewAddressWith($cityName, $street, $postcode, $countryName, $customerName, $provinceName = null)
73 73
     {
74 74
         $countryCode = $this->countryNameConverter->convertToCode($countryName);
75 75
         $customerName = explode(' ', $customerName);
@@ -107,7 +107,7 @@  discard block
 block discarded – undo
107 107
     public function getByStreet($street)
108 108
     {
109 109
         $address = $this->addressRepository->findOneBy(['street' => $street]);
110
-        Assert::notNull($address, sprintf('Cannot find address by %s street' , $street));
110
+        Assert::notNull($address, sprintf('Cannot find address by %s street', $street));
111 111
 
112 112
         return $address;
113 113
     }
Please login to merge, or discard this patch.
src/Sylius/Bundle/MailerBundle/DependencyInjection/Configuration.php 1 patch
Unused Use Statements   -7 removed lines patch added patch discarded remove patch
@@ -11,13 +11,6 @@
 block discarded – undo
11 11
 
12 12
 namespace Sylius\Bundle\MailerBundle\DependencyInjection;
13 13
 
14
-use Sylius\Bundle\MailerBundle\Form\Type\EmailType;
15
-use Sylius\Bundle\ResourceBundle\Controller\ResourceController;
16
-use Sylius\Bundle\ResourceBundle\Form\Type\ResourceChoiceType;
17
-use Sylius\Bundle\ResourceBundle\SyliusResourceBundle;
18
-use Sylius\Component\Mailer\Model\Email;
19
-use Sylius\Component\Mailer\Model\EmailInterface;
20
-use Sylius\Component\Resource\Factory\Factory;
21 14
 use Symfony\Component\Config\Definition\Builder\ArrayNodeDefinition;
22 15
 use Symfony\Component\Config\Definition\Builder\TreeBuilder;
23 16
 use Symfony\Component\Config\Definition\ConfigurationInterface;
Please login to merge, or discard this patch.
src/Sylius/Component/Mailer/Model/Email.php 1 patch
Unused Use Statements   -3 removed lines patch added patch discarded remove patch
@@ -11,9 +11,6 @@
 block discarded – undo
11 11
 
12 12
 namespace Sylius\Component\Mailer\Model;
13 13
 
14
-use Sylius\Component\Resource\Model\TimestampableTrait;
15
-use Sylius\Component\Resource\Model\ToggleableTrait;
16
-
17 14
 /**
18 15
  * @author Paweł Jędrzejewski <[email protected]>
19 16
  */
Please login to merge, or discard this patch.
src/Sylius/Component/Mailer/Model/EmailInterface.php 2 patches
Doc Comments   +13 added lines patch added patch discarded remove patch
@@ -28,6 +28,7 @@  discard block
 block discarded – undo
28 28
 
29 29
     /**
30 30
      * @param string $code
31
+     * @return void
31 32
      */
32 33
     public function setCode($code);
33 34
 
@@ -38,11 +39,18 @@  discard block
 block discarded – undo
38 39
 
39 40
     /**
40 41
      * @param bool $enabled
42
+     * @return void
41 43
      */
42 44
     public function setEnabled($enabled);
43 45
 
46
+    /**
47
+     * @return void
48
+     */
44 49
     public function enable();
45 50
 
51
+    /**
52
+     * @return void
53
+     */
46 54
     public function disable();
47 55
 
48 56
     /**
@@ -52,6 +60,7 @@  discard block
 block discarded – undo
52 60
 
53 61
     /**
54 62
      * @param string $subject
63
+     * @return void
55 64
      */
56 65
     public function setSubject($subject);
57 66
 
@@ -62,6 +71,7 @@  discard block
 block discarded – undo
62 71
 
63 72
     /**
64 73
      * @param string $content
74
+     * @return void
65 75
      */
66 76
     public function setContent($content);
67 77
 
@@ -72,6 +82,7 @@  discard block
 block discarded – undo
72 82
 
73 83
     /**
74 84
      * @param string $template
85
+     * @return void
75 86
      */
76 87
     public function setTemplate($template);
77 88
 
@@ -82,6 +93,7 @@  discard block
 block discarded – undo
82 93
 
83 94
     /**
84 95
      * @param string $senderName
96
+     * @return void
85 97
      */
86 98
     public function setSenderName($senderName);
87 99
 
@@ -92,6 +104,7 @@  discard block
 block discarded – undo
92 104
 
93 105
     /**
94 106
      * @param string $senderAddress
107
+     * @return void
95 108
      */
96 109
     public function setSenderAddress($senderAddress);
97 110
 }
Please login to merge, or discard this patch.
Unused Use Statements   -5 removed lines patch added patch discarded remove patch
@@ -11,11 +11,6 @@
 block discarded – undo
11 11
 
12 12
 namespace Sylius\Component\Mailer\Model;
13 13
 
14
-use Sylius\Component\Resource\Model\CodeAwareInterface;
15
-use Sylius\Component\Resource\Model\ResourceInterface;
16
-use Sylius\Component\Resource\Model\TimestampableInterface;
17
-use Sylius\Component\Resource\Model\ToggleableInterface;
18
-
19 14
 /**
20 15
  * @author Paweł Jędrzejewski <[email protected]>
21 16
  */
Please login to merge, or discard this patch.
src/Sylius/Behat/Page/Admin/Product/CreateSimpleProductPageInterface.php 1 patch
Doc Comments   +14 added lines patch added patch discarded remove patch
@@ -23,11 +23,13 @@  discard block
 block discarded – undo
23 23
 {
24 24
     /**
25 25
      * @param int $price
26
+     * @return void
26 27
      */
27 28
     public function specifyPrice($price);
28 29
 
29 30
     /**
30 31
      * @param string $name
32
+     * @return void
31 33
      */
32 34
     public function choosePricingCalculator($name);
33 35
 
@@ -35,53 +37,65 @@  discard block
 block discarded – undo
35 37
      * @param int $price
36 38
      * @param ChannelInterface $channel
37 39
      * @param CurrencyInterface $currency
40
+     * @return void
38 41
      */
39 42
     public function specifyPriceForChannelAndCurrency($price, ChannelInterface $channel, CurrencyInterface $currency);
40 43
 
41 44
     /**
42 45
      * @param string $code
46
+     * @return void
43 47
      */
44 48
     public function specifyCode($code);
45 49
 
46 50
     /**
47 51
      * @param string $name
48 52
      * @param string $localeCode
53
+     * @return void
49 54
      */
50 55
     public function nameItIn($name, $localeCode);
51 56
 
52 57
     /**
53 58
      * @param string $slug
59
+     * @return void
54 60
      */
55 61
     public function specifySlug($slug);
56 62
 
57 63
     /**
58 64
      * @param string $attribute
59 65
      * @param string $value
66
+     * @return void
60 67
      */
61 68
     public function addAttribute($attribute, $value);
62 69
 
63 70
     /**
64 71
      * @param string $attribute
72
+     * @return void
65 73
      */
66 74
     public function removeAttribute($attribute);
67 75
 
68 76
     /**
69 77
      * @param string $path
70 78
      * @param string $code
79
+     * @return void
71 80
      */
72 81
     public function attachImage($path, $code = null);
73 82
 
83
+    /**
84
+     * @return void
85
+     */
74 86
     public function enableSlugModification();
75 87
 
76 88
     /**
77 89
      * @param ProductAssociationTypeInterface $productAssociationType
78 90
      * @param string[] $productsNames
91
+     * @return void
79 92
      */
80 93
     public function associateProducts(ProductAssociationTypeInterface $productAssociationType, array $productsNames);
81 94
 
82 95
     /**
83 96
      * @param string $productName
84 97
      * @param ProductAssociationTypeInterface $productAssociationType
98
+     * @return void
85 99
      */
86 100
     public function removeAssociatedProduct($productName, ProductAssociationTypeInterface $productAssociationType);
87 101
 }
Please login to merge, or discard this patch.
CoreBundle/Form/Type/Pricing/ChannelAndCurrencyBasedConfigurationType.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -56,7 +56,7 @@
 block discarded – undo
56 56
          */
57 57
         foreach ($this->channelRepository->findAll() as $channel) {
58 58
             foreach ($this->currencyRepository->findAll() as $currency) {
59
-                $builder->add($channel->getCode().$options['delimiter'].$currency->getCode(), 'sylius_money', [
59
+                $builder->add($channel->getCode() . $options['delimiter'] . $currency->getCode(), 'sylius_money', [
60 60
                     'label' => sprintf('%s %s', $channel->getName(), $currency->getCode())
61 61
                 ]);
62 62
             }
Please login to merge, or discard this patch.
src/Sylius/Bundle/CoreBundle/Form/Type/Product/ProductVariantType.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -117,7 +117,7 @@
 block discarded – undo
117 117
         $view->vars['prototypes'] = [];
118 118
         foreach ($form->getConfig()->getAttribute('prototypes') as $group => $prototypes) {
119 119
             foreach ($prototypes as $type => $prototype) {
120
-                $view->vars['prototypes'][$group.'_'.$type] = $prototype->createView($view);
120
+                $view->vars['prototypes'][$group . '_' . $type] = $prototype->createView($view);
121 121
             }
122 122
         }
123 123
     }
Please login to merge, or discard this patch.
Core/spec/Taxation/Applicator/OrderShipmentTaxesApplicatorSpec.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -112,7 +112,7 @@
 block discarded – undo
112 112
         $order->getShippingTotal()->willReturn(10);
113 113
         $order->getShipments()->willReturn(new ArrayCollection([]));
114 114
 
115
-        $this->shouldThrow(\LogicException::class)->during('apply', [$order, $zone]);;
115
+        $this->shouldThrow(\LogicException::class)->during('apply', [$order, $zone]); ;
116 116
     }
117 117
 
118 118
     function it_does_nothing_if_tax_rate_cannot_be_resolved(
Please login to merge, or discard this patch.
src/Sylius/Bundle/ResourceBundle/spec/Controller/ResourceControllerSpec.php 1 patch
Unused Use Statements   -1 removed lines patch added patch discarded remove patch
@@ -36,7 +36,6 @@
 block discarded – undo
36 36
 use Sylius\Component\Resource\Repository\RepositoryInterface;
37 37
 use Sylius\Component\Resource\ResourceActions;
38 38
 use Symfony\Bundle\FrameworkBundle\Controller\Controller;
39
-use Symfony\Component\DependencyInjection\ContainerAware;
40 39
 use Symfony\Component\Form\Form;
41 40
 use Symfony\Component\Form\FormView;
42 41
 use Symfony\Component\HttpFoundation\Request;
Please login to merge, or discard this patch.