@@ -23,7 +23,7 @@ discard block |
||
23 | 23 | } |
24 | 24 | |
25 | 25 | /** |
26 | - * @param $key |
|
26 | + * @param string $key |
|
27 | 27 | * |
28 | 28 | * @return bool |
29 | 29 | */ |
@@ -37,7 +37,7 @@ discard block |
||
37 | 37 | } |
38 | 38 | |
39 | 39 | /** |
40 | - * @param $key |
|
40 | + * @param string $key |
|
41 | 41 | * @param null $default |
42 | 42 | * |
43 | 43 | * @return mixed |
@@ -56,7 +56,7 @@ discard block |
||
56 | 56 | } |
57 | 57 | |
58 | 58 | /** |
59 | - * @param $key |
|
59 | + * @param string $key |
|
60 | 60 | * @param $value |
61 | 61 | * @param null $ttl |
62 | 62 | * |
@@ -68,7 +68,7 @@ |
||
68 | 68 | /** |
69 | 69 | * Gets data from memory by key. |
70 | 70 | * |
71 | - * @param $key |
|
71 | + * @param string $key |
|
72 | 72 | * @param null $default |
73 | 73 | * |
74 | 74 | * @return mixed|null |
@@ -84,7 +84,7 @@ discard block |
||
84 | 84 | $path = parse_url($base, PHP_URL_PATH); |
85 | 85 | $scheme = parse_url($base, PHP_URL_SCHEME); |
86 | 86 | |
87 | - return preg_replace_callback($pattern, function ($matches) use ($base, $scheme, $host, $path) { |
|
87 | + return preg_replace_callback($pattern, function($matches) use ($base, $scheme, $host, $path) { |
|
88 | 88 | $hrefValue = $matches[0]; |
89 | 89 | |
90 | 90 | if (mb_strpos($hrefValue, '//') === 0) { |
@@ -149,7 +149,7 @@ discard block |
||
149 | 149 | private function convertCode($content) |
150 | 150 | { |
151 | 151 | // strpos with array support |
152 | - $strposa = function ($haystack, $needles = []) { |
|
152 | + $strposa = function($haystack, $needles = []) { |
|
153 | 153 | $chr = []; |
154 | 154 | foreach ($needles as $needle) { |
155 | 155 | $res = mb_strpos($haystack, $needle); |
@@ -167,7 +167,7 @@ discard block |
||
167 | 167 | |
168 | 168 | $content = str_replace(['<pre>', '<pre ', '</pre>'], ['<code>', '<code ', '</code>'], $content); |
169 | 169 | |
170 | - return preg_replace_callback('/<code(.*?)>(.*?)<\/code>/s', function ($matches) use ($strposa) { |
|
170 | + return preg_replace_callback('/<code(.*?)>(.*?)<\/code>/s', function($matches) use ($strposa) { |
|
171 | 171 | $noLineBreaks = str_replace(["\r\n", "\r", "\n"], '<br />', $matches[0]); |
172 | 172 | $code = str_replace(['<br></br>', '<br>', '<br/>', '<br />'], PHP_EOL, $noLineBreaks); |
173 | 173 |
@@ -56,7 +56,7 @@ |
||
56 | 56 | $title = $this->formatter->asTitle(sprintf('SugarCRM upgrade: %s', $context)) . $delimiter; |
57 | 57 | |
58 | 58 | return $title . implode($delimiter, array_map( |
59 | - function ($element) use ($context) { |
|
59 | + function($element) use ($context) { |
|
60 | 60 | return $this->elementGenerator->generate($element, $context); |
61 | 61 | }, |
62 | 62 | $elements |
@@ -3,8 +3,8 @@ |
||
3 | 3 | // application or vendor context |
4 | 4 | $autoload = [ |
5 | 5 | __DIR__ . '/../vendor/autoload.php', // application bin or phar |
6 | - __DIR__ . '/../autoload.php', // vendor bin |
|
7 | - __DIR__ . '/../../../autoload.php', // vendor |
|
6 | + __DIR__ . '/../autoload.php', // vendor bin |
|
7 | + __DIR__ . '/../../../autoload.php', // vendor |
|
8 | 8 | ]; |
9 | 9 | |
10 | 10 | foreach ($autoload as $file) { |
@@ -4,5 +4,8 @@ |
||
4 | 4 | |
5 | 5 | interface RendererAwareInterface |
6 | 6 | { |
7 | + /** |
|
8 | + * @return void |
|
9 | + */ |
|
7 | 10 | public function setRenderer(RendererInterface $renderer); |
8 | 11 | } |
@@ -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 | */ |