@@ -20,7 +20,7 @@ |
||
20 | 20 | $providerChain = $container->findDefinition('data.provider_chain'); |
21 | 21 | |
22 | 22 | $taggedProviders = $container->findTaggedServiceIds('data.provider'); |
23 | - $providers = array_map(function ($id) { |
|
23 | + $providers = array_map(function($id) { |
|
24 | 24 | return new Reference($id); |
25 | 25 | }, array_keys($taggedProviders)); |
26 | 26 |
@@ -20,7 +20,7 @@ |
||
20 | 20 | $application = $container->findDefinition('application'); |
21 | 21 | |
22 | 22 | $taggedCommands = $container->findTaggedServiceIds('console.command'); |
23 | - $commands = array_map(function ($id) { |
|
23 | + $commands = array_map(function($id) { |
|
24 | 24 | return new Reference($id); |
25 | 25 | }, array_keys($taggedCommands)); |
26 | 26 |
@@ -35,7 +35,7 @@ |
||
35 | 35 | |
36 | 36 | /** |
37 | 37 | * @param string $key |
38 | - * @param null $default |
|
38 | + * @param File $default |
|
39 | 39 | * |
40 | 40 | * @return bool|mixed|null |
41 | 41 | */ |
@@ -4,9 +4,20 @@ |
||
4 | 4 | |
5 | 5 | interface FormatterInterface |
6 | 6 | { |
7 | + /** |
|
8 | + * @param string $text |
|
9 | + * |
|
10 | + * @return string |
|
11 | + */ |
|
7 | 12 | public function asTitle($text, $level = 1); |
8 | 13 | |
14 | + /** |
|
15 | + * @return string |
|
16 | + */ |
|
9 | 17 | public function asBody($text); |
10 | 18 | |
19 | + /** |
|
20 | + * @return string |
|
21 | + */ |
|
11 | 22 | public function getDelimiter(); |
12 | 23 | } |
@@ -7,8 +7,9 @@ |
||
7 | 7 | /** |
8 | 8 | * Renders template. |
9 | 9 | * |
10 | - * @param $name |
|
10 | + * @param string $name |
|
11 | 11 | * @param $arguments |
12 | + * @return string |
|
12 | 13 | */ |
13 | 14 | public function render($name, $arguments); |
14 | 15 | } |
@@ -6,13 +6,30 @@ |
||
6 | 6 | |
7 | 7 | interface AdapterInterface |
8 | 8 | { |
9 | + /** |
|
10 | + * @return boolean |
|
11 | + */ |
|
9 | 12 | public function hasUpdate(); |
10 | 13 | |
14 | + /** |
|
15 | + * @return string |
|
16 | + */ |
|
11 | 17 | public function getOldVersion(); |
12 | 18 | |
19 | + /** |
|
20 | + * @return string |
|
21 | + */ |
|
13 | 22 | public function getNewVersion(); |
14 | 23 | |
24 | + /** |
|
25 | + * @param string $stability |
|
26 | + * |
|
27 | + * @return boolean |
|
28 | + */ |
|
15 | 29 | public function update($stability = Updater::STABILITY_ANY); |
16 | 30 | |
31 | + /** |
|
32 | + * @return boolean |
|
33 | + */ |
|
17 | 34 | public function rollback(); |
18 | 35 | } |
@@ -32,7 +32,7 @@ discard block |
||
32 | 32 | } |
33 | 33 | |
34 | 34 | /** |
35 | - * @return mixed |
|
35 | + * @return string |
|
36 | 36 | */ |
37 | 37 | public function getOldVersion() |
38 | 38 | { |
@@ -40,7 +40,7 @@ discard block |
||
40 | 40 | } |
41 | 41 | |
42 | 42 | /** |
43 | - * @return mixed |
|
43 | + * @return string |
|
44 | 44 | */ |
45 | 45 | public function getNewVersion() |
46 | 46 | { |
@@ -75,7 +75,7 @@ discard block |
||
75 | 75 | } |
76 | 76 | |
77 | 77 | /** |
78 | - * @param $stability |
|
78 | + * @param string $stability |
|
79 | 79 | * |
80 | 80 | * @return string |
81 | 81 | */ |