@@ -14,12 +14,11 @@ |
||
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 |
@@ -11,7 +11,7 @@ |
||
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; |
@@ -14,10 +14,10 @@ |
||
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]> |
@@ -11,7 +11,7 @@ |
||
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; |
@@ -38,7 +38,7 @@ |
||
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 | { |
@@ -142,6 +142,7 @@ discard block |
||
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 |
||
162 | 163 | |
163 | 164 | /** |
164 | 165 | * {@inheritdoc} |
166 | + * @param string $name |
|
165 | 167 | */ |
166 | 168 | public function hasClass($name) |
167 | 169 | { |
@@ -77,7 +77,7 @@ |
||
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 | /** |
@@ -23,10 +23,17 @@ |
||
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 | } |
@@ -36,11 +36,13 @@ discard block |
||
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 |
||
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 | } |
@@ -86,6 +86,7 @@ discard block |
||
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 |
||
102 | 103 | |
103 | 104 | /** |
104 | 105 | * {@inheritdoc} |
106 | + * @param string $fallbackLocale |
|
105 | 107 | */ |
106 | 108 | public function setFallbackLocale($fallbackLocale) |
107 | 109 | { |
@@ -160,6 +160,6 @@ |
||
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 | } |
@@ -184,7 +184,7 @@ |
||
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 | { |
@@ -27,17 +27,19 @@ |
||
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 | } |