Completed
Push — fixtures/delete-old-ones ( 589298...6437b8 )
by Kamil
71:11 queued 37:23
created
src/Sylius/Component/Registry/spec/PrioritizedServiceRegistrySpec.php 2 patches
Unused Use Statements   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -14,12 +14,11 @@
 block discarded – undo
14 14
 require_once __DIR__.'/Fixture/SampleServiceInterface.php';
15 15
 
16 16
 use PhpSpec\ObjectBehavior;
17
-use Prophecy\Argument;
18
-use spec\Sylius\Component\Registry\Fixture\SampleServiceInterface;
19 17
 use Sylius\Component\Registry\NonExistingServiceException;
20 18
 use Sylius\Component\Registry\PrioritizedServiceRegistry;
21 19
 use Sylius\Component\Registry\PrioritizedServiceRegistryInterface;
22 20
 use Zend\Stdlib\PriorityQueue;
21
+use spec\Sylius\Component\Registry\Fixture\SampleServiceInterface;
23 22
 
24 23
 /**
25 24
  * @mixin PrioritizedServiceRegistry
Please login to merge, or discard this patch.
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -11,7 +11,7 @@
 block discarded – undo
11 11
 
12 12
 namespace spec\Sylius\Component\Registry;
13 13
 
14
-require_once __DIR__.'/Fixture/SampleServiceInterface.php';
14
+require_once __DIR__ . '/Fixture/SampleServiceInterface.php';
15 15
 
16 16
 use PhpSpec\ObjectBehavior;
17 17
 use Prophecy\Argument;
Please login to merge, or discard this patch.
src/Sylius/Component/Registry/spec/ServiceRegistrySpec.php 2 patches
Unused Use Statements   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -14,10 +14,10 @@
 block discarded – undo
14 14
 require_once __DIR__.'/Fixture/SampleServiceInterface.php';
15 15
 
16 16
 use PhpSpec\ObjectBehavior;
17
-use spec\Sylius\Component\Registry\Fixture\SampleServiceInterface;
18 17
 use Sylius\Component\Registry\ExistingServiceException;
19 18
 use Sylius\Component\Registry\NonExistingServiceException;
20 19
 use Sylius\Component\Registry\ServiceRegistryInterface;
20
+use spec\Sylius\Component\Registry\Fixture\SampleServiceInterface;
21 21
 
22 22
 /**
23 23
  * @author Paweł Jędrzejewski <[email protected]>
Please login to merge, or discard this patch.
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -11,7 +11,7 @@
 block discarded – undo
11 11
 
12 12
 namespace spec\Sylius\Component\Registry;
13 13
 
14
-require_once __DIR__.'/Fixture/SampleServiceInterface.php';
14
+require_once __DIR__ . '/Fixture/SampleServiceInterface.php';
15 15
 
16 16
 use PhpSpec\ObjectBehavior;
17 17
 use Prophecy\Argument;
Please login to merge, or discard this patch.
src/Sylius/Component/Resource/Event/FlashEvent.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -38,7 +38,7 @@
 block discarded – undo
38 38
     /**
39 39
      * Get flash message.
40 40
      *
41
-     * @return null|string
41
+     * @return string
42 42
      */
43 43
     public function getMessage()
44 44
     {
Please login to merge, or discard this patch.
src/Sylius/Component/Resource/Metadata/Metadata.php 2 patches
Doc Comments   +2 added lines patch added patch discarded remove patch
@@ -142,6 +142,7 @@  discard block
 block discarded – undo
142 142
 
143 143
     /**
144 144
      * {@inheritdoc}
145
+     * @param string $name
145 146
      */
146 147
     public function hasParameter($name)
147 148
     {
@@ -162,6 +163,7 @@  discard block
 block discarded – undo
162 163
 
163 164
     /**
164 165
      * {@inheritdoc}
166
+     * @param string $name
165 167
      */
166 168
     public function hasClass($name)
167 169
     {
Please login to merge, or discard this patch.
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -77,7 +77,7 @@
 block discarded – undo
77 77
      */
78 78
     public function getAlias()
79 79
     {
80
-        return $this->applicationName.'.'.$this->name;
80
+        return $this->applicationName . '.' . $this->name;
81 81
     }
82 82
 
83 83
     /**
Please login to merge, or discard this patch.
src/Sylius/Component/Resource/Model/ToggleableInterface.php 1 patch
Doc Comments   +7 added lines patch added patch discarded remove patch
@@ -23,10 +23,17 @@
 block discarded – undo
23 23
 
24 24
     /**
25 25
      * @param bool $enabled
26
+     * @return void
26 27
      */
27 28
     public function setEnabled($enabled);
28 29
 
30
+    /**
31
+     * @return void
32
+     */
29 33
     public function enable();
30 34
 
35
+    /**
36
+     * @return void
37
+     */
31 38
     public function disable();
32 39
 }
Please login to merge, or discard this patch.
src/Sylius/Component/Resource/Model/TranslatableInterface.php 1 patch
Doc Comments   +4 added lines patch added patch discarded remove patch
@@ -36,11 +36,13 @@  discard block
 block discarded – undo
36 36
 
37 37
     /**
38 38
      * @param string $locale
39
+     * @return void
39 40
      */
40 41
     public function setCurrentLocale($locale);
41 42
 
42 43
     /**
43 44
      * @param string $locale
45
+     * @return void
44 46
      */
45 47
     public function setFallbackLocale($locale);
46 48
 
@@ -51,11 +53,13 @@  discard block
 block discarded – undo
51 53
 
52 54
     /**
53 55
      * @param TranslationInterface $translation
56
+     * @return void
54 57
      */
55 58
     public function addTranslation(TranslationInterface $translation);
56 59
 
57 60
     /**
58 61
      * @param TranslationInterface $translation
62
+     * @return void
59 63
      */
60 64
     public function removeTranslation(TranslationInterface $translation);
61 65
 }
Please login to merge, or discard this patch.
src/Sylius/Component/Resource/Model/TranslatableTrait.php 2 patches
Doc Comments   +2 added lines patch added patch discarded remove patch
@@ -86,6 +86,7 @@  discard block
 block discarded – undo
86 86
 
87 87
     /**
88 88
      * {@inheritdoc}
89
+     * @param string $currentLocale
89 90
      */
90 91
     public function setCurrentLocale($currentLocale)
91 92
     {
@@ -102,6 +103,7 @@  discard block
 block discarded – undo
102 103
 
103 104
     /**
104 105
      * {@inheritdoc}
106
+     * @param string $fallbackLocale
105 107
      */
106 108
     public function setFallbackLocale($fallbackLocale)
107 109
     {
Please login to merge, or discard this patch.
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -160,6 +160,6 @@
 block discarded – undo
160 160
      */
161 161
     public static function getTranslationClass()
162 162
     {
163
-        return get_called_class().'Translation';
163
+        return get_called_class() . 'Translation';
164 164
     }
165 165
 }
Please login to merge, or discard this patch.
src/Sylius/Component/Resource/Repository/InMemoryRepository.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -184,7 +184,7 @@
 block discarded – undo
184 184
      * @param ResourceInterface[] $resources
185 185
      * @param array               $criteria
186 186
      *
187
-     * @return ResourceInterface[]|array
187
+     * @return ResourceInterface[]
188 188
      */
189 189
     private function applyCriteria(array $resources, array $criteria)
190 190
     {
Please login to merge, or discard this patch.
src/Sylius/Component/Resource/Repository/RepositoryInterface.php 1 patch
Doc Comments   +3 added lines, -1 removed lines patch added patch discarded remove patch
@@ -27,17 +27,19 @@
 block discarded – undo
27 27
      * @param array $criteria
28 28
      * @param array $sorting
29 29
      *
30
-     * @return mixed
30
+     * @return \Pagerfanta\Pagerfanta
31 31
      */
32 32
     public function createPaginator(array $criteria = [], array $sorting = []);
33 33
 
34 34
     /**
35 35
      * @param ResourceInterface $resource
36
+     * @return void
36 37
      */
37 38
     public function add(ResourceInterface $resource);
38 39
 
39 40
     /**
40 41
      * @param ResourceInterface $resource
42
+     * @return void
41 43
      */
42 44
     public function remove(ResourceInterface $resource);
43 45
 }
Please login to merge, or discard this patch.