Completed
Push — master ( 9dfdce...47683b )
by Kamil
20:21
created
Bundle/ResourceBundle/DependencyInjection/SyliusResourceExtension.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -32,7 +32,7 @@  discard block
 block discarded – undo
32 32
     public function load(array $config, ContainerBuilder $container)
33 33
     {
34 34
         $config = $this->processConfiguration($this->getConfiguration([], $container), $config);
35
-        $loader = new XmlFileLoader($container, new FileLocator(__DIR__.'/../Resources/config'));
35
+        $loader = new XmlFileLoader($container, new FileLocator(__DIR__ . '/../Resources/config'));
36 36
 
37 37
         $loader->load('services.xml');
38 38
 
@@ -83,7 +83,7 @@  discard block
 block discarded – undo
83 83
             DriverProvider::get($metadata)->load($container, $metadata);
84 84
 
85 85
             if ($metadata->hasParameter('translation')) {
86
-                $alias = $alias.'_translation';
86
+                $alias = $alias . '_translation';
87 87
                 $resourceConfig = array_merge(['driver' => $resourceConfig['driver']], $resourceConfig['translation']);
88 88
 
89 89
                 $resources = $container->hasParameter('sylius.resources') ? $container->getParameter('sylius.resources') : [];
Please login to merge, or discard this patch.
src/Sylius/Component/Grid/Filter/StringFilter.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -88,13 +88,13 @@
 block discarded – undo
88 88
             case self::TYPE_NOT_EMPTY:
89 89
                 return $expressionBuilder->isNotNull($field);
90 90
             case self::TYPE_CONTAINS:
91
-                return $expressionBuilder->like($field, '%'.$value.'%');
91
+                return $expressionBuilder->like($field, '%' . $value . '%');
92 92
             case self::TYPE_NOT_CONTAINS:
93
-                return $expressionBuilder->notLike($field, '%'.$value.'%');
93
+                return $expressionBuilder->notLike($field, '%' . $value . '%');
94 94
             case self::TYPE_STARTS_WITH:
95
-                return $expressionBuilder->like($field, $value.'%');
95
+                return $expressionBuilder->like($field, $value . '%');
96 96
             case self::TYPE_ENDS_WITH:
97
-                return $expressionBuilder->like($field, '%'.$value);
97
+                return $expressionBuilder->like($field, '%' . $value);
98 98
             case self::TYPE_IN:
99 99
                 return $expressionBuilder->in($field, array_map('trim', explode(',', $value)));
100 100
             case self::TYPE_NOT_IN:
Please login to merge, or discard this patch.
Resource/spec/Translation/TranslatableEntityLocaleAssignerSpec.php 1 patch
Braces   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -40,8 +40,7 @@
 block discarded – undo
40 40
     function it_should_assign_current_and_default_locale_to_given_translatable_entity(
41 41
         TranslationLocaleProviderInterface $translationLocaleProvider,
42 42
         TranslatableInterface $translatableEntity
43
-    )
44
-    {
43
+    ) {
45 44
         $translationLocaleProvider->getDefaultLocaleCode()->willReturn('en_US');
46 45
 
47 46
         $translatableEntity->setCurrentLocale('en_US')->shouldBeCalled();
Please login to merge, or discard this patch.
Component/Core/spec/Translation/TranslatableEntityLocaleAssignerSpec.php 1 patch
Braces   +2 added lines, -4 removed lines patch added patch discarded remove patch
@@ -43,8 +43,7 @@  discard block
 block discarded – undo
43 43
         LocaleContextInterface $localeContext,
44 44
         TranslationLocaleProviderInterface $translationLocaleProvider,
45 45
         TranslatableInterface $translatableEntity
46
-    )
47
-    {
46
+    ) {
48 47
         $localeContext->getLocaleCode()->willReturn('de_DE');
49 48
         $translationLocaleProvider->getDefaultLocaleCode()->willReturn('en_US');
50 49
 
@@ -58,8 +57,7 @@  discard block
 block discarded – undo
58 57
         LocaleContextInterface $localeContext,
59 58
         TranslationLocaleProviderInterface $translationLocaleProvider,
60 59
         TranslatableInterface $translatableEntity
61
-    )
62
-    {
60
+    ) {
63 61
         $localeContext->getLocaleCode()->willThrow(new LocaleNotFoundException());
64 62
         $translationLocaleProvider->getDefaultLocaleCode()->willReturn('en_US');
65 63
 
Please login to merge, or discard this patch.
src/Sylius/Behat/Context/Setup/ShippingCategoryContext.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -60,7 +60,7 @@  discard block
 block discarded – undo
60 60
     public function theStoreHasAndShippingCategory($firstShippingCategoryName, $secondShippingCategoryName = null)
61 61
     {
62 62
         $this->createShippingCategory($firstShippingCategoryName);
63
-        (null === $secondShippingCategoryName)? : $this->createShippingCategory($secondShippingCategoryName);
63
+        (null === $secondShippingCategoryName) ?: $this->createShippingCategory($secondShippingCategoryName);
64 64
     }
65 65
 
66 66
     /**
@@ -78,7 +78,7 @@  discard block
 block discarded – undo
78 78
     private function createShippingCategory($shippingCategoryName, $shippingCategoryCode = null)
79 79
     {
80 80
         /** @var ShippingCategoryInterface $shippingCategory */
81
-        $shippingCategory =  $this->shippingCategoryFactory->createNew();
81
+        $shippingCategory = $this->shippingCategoryFactory->createNew();
82 82
         $shippingCategory->setName($shippingCategoryName);
83 83
         $shippingCategory->setCode($shippingCategoryCode);
84 84
 
Please login to merge, or discard this patch.
src/Sylius/Behat/Context/Cli/InstallerContext.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -164,7 +164,7 @@  discard block
 block discarded – undo
164 164
     {
165 165
         $this->questionHelper = $this->command->getHelper('question');
166 166
         $inputString = implode(PHP_EOL, $this->inputChoices);
167
-        $this->questionHelper->setInputStream($this->getInputStream($inputString.PHP_EOL));
167
+        $this->questionHelper->setInputStream($this->getInputStream($inputString . PHP_EOL));
168 168
 
169 169
         try {
170 170
             $this->tester->execute(['command' => $name]);
@@ -178,7 +178,7 @@  discard block
 block discarded – undo
178 178
     private function iExecuteCommandAndConfirm($name)
179 179
     {
180 180
         $this->questionHelper = $this->command->getHelper('question');
181
-        $inputString = 'y'.PHP_EOL;
181
+        $inputString = 'y' . PHP_EOL;
182 182
         $this->questionHelper->setInputStream($this->getInputStream($inputString));
183 183
 
184 184
         try {
Please login to merge, or discard this patch.
src/Sylius/Behat/Page/Admin/ProductAssociationType/IndexPageInterface.php 1 patch
Doc Comments   +2 added lines patch added patch discarded remove patch
@@ -21,12 +21,14 @@
 block discarded – undo
21 21
     /**
22 22
      * @param string $field
23 23
      * @param string $type
24
+     * @return void
24 25
      */
25 26
     public function specifyFilterType($field, $type);
26 27
 
27 28
     /**
28 29
      * @param string $field
29 30
      * @param string $value
31
+     * @return void
30 32
      */
31 33
     public function specifyFilterValue($field, $value);
32 34
 }
Please login to merge, or discard this patch.
src/Sylius/Behat/Page/Shop/Account/LoginPageInterface.php 1 patch
Doc Comments   +5 added lines patch added patch discarded remove patch
@@ -25,15 +25,20 @@
 block discarded – undo
25 25
      */
26 26
     public function hasValidationErrorWith($message);
27 27
 
28
+    /**
29
+     * @return void
30
+     */
28 31
     public function logIn();
29 32
 
30 33
     /**
31 34
      * @param string $password
35
+     * @return void
32 36
      */
33 37
     public function specifyPassword($password);
34 38
 
35 39
     /**
36 40
      * @param string $username
41
+     * @return void
37 42
      */
38 43
     public function specifyUsername($username);
39 44
 }
Please login to merge, or discard this patch.
Sylius/Bundle/ResourceBundle/Form/Registry/FormTypeRegistryInterface.php 1 patch
Doc Comments   +1 added lines patch added patch discarded remove patch
@@ -20,6 +20,7 @@
 block discarded – undo
20 20
      * @param string $identifier
21 21
      * @param string $typeIdentifier
22 22
      * @param string $formType
23
+     * @return void
23 24
      */
24 25
     public function add($identifier, $typeIdentifier, $formType);
25 26
 
Please login to merge, or discard this patch.