Completed
Push — master ( 57b1db...16daf9 )
by Mike
03:22
created
src/Cache/Cache.php 1 patch
Doc Comments   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -23,7 +23,7 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
56 56
     }
57 57
 
58 58
     /**
59
-     * @param $key
59
+     * @param string $key
60 60
      * @param $value
61 61
      * @param null $ttl
62 62
      *
Please login to merge, or discard this patch.
src/Data/Provider/Memory.php 2 patches
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -68,7 +68,7 @@
 block discarded – undo
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
Please login to merge, or discard this patch.
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -36,7 +36,7 @@
 block discarded – undo
36 36
      */
37 37
     public function getReleaseNotes($flav, array $versions)
38 38
     {
39
-        return array_map(function ($version) use ($flav) {
39
+        return array_map(function($version) use ($flav) {
40 40
             return $this->get(sprintf('%s_%s_release_notes', $flav, $version), '');
41 41
         }, $versions);
42 42
     }
Please login to merge, or discard this patch.
src/Purifier/Html.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -84,7 +84,7 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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
 
Please login to merge, or discard this patch.
src/Spec/Generator.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -56,7 +56,7 @@
 block discarded – undo
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
Please login to merge, or discard this patch.
src/Data/Manager.php 2 patches
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -71,7 +71,7 @@
 block discarded – undo
71 71
          * all versions with $baseVersion base
72 72
          * for example: 7.6.1 -> [7.6.1.0, 7.6.1.1], 7.6 -> [7.6.1.0, 7.6.1.1, 7.6.2].
73 73
          */
74
-        $minors = array_filter($versions, function ($minor) use ($baseVersion) {
74
+        $minors = array_filter($versions, function($minor) use ($baseVersion) {
75 75
             return implode('.', array_slice(explode('.', $minor), 0, count(explode('.', $baseVersion)))) === $baseVersion;
76 76
         });
77 77
 
Please login to merge, or discard this patch.
Doc Comments   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -43,7 +43,7 @@  discard block
 block discarded – undo
43 43
      *
44 44
      * Examples: 7.6.1 -> 7.6.1.0, 7.7 -> 7.7.1, 7.8 -> 7.8.0.0
45 45
      *
46
-     * @param $flav
46
+     * @param string $flav
47 47
      * @param null $baseVersion
48 48
      *
49 49
      * @return mixed
@@ -99,7 +99,7 @@  discard block
 block discarded – undo
99 99
     /**
100 100
      * Gets all required information to perform health check.
101 101
      *
102
-     * @param $version
102
+     * @param string $version
103 103
      *
104 104
      * @return mixed
105 105
      */
@@ -111,7 +111,7 @@  discard block
 block discarded – undo
111 111
     /**
112 112
      * Gets all required information to perform upgrade.
113 113
      *
114
-     * @param $version
114
+     * @param string $version
115 115
      *
116 116
      * @return mixed
117 117
      */
@@ -125,7 +125,7 @@  discard block
 block discarded – undo
125 125
      *
126 126
      * @param Upgrade $context
127 127
      *
128
-     * @return mixed
128
+     * @return Upgrade
129 129
      */
130 130
     public function getPotentiallyBrokenCustomizations(Upgrade $context)
131 131
     {
Please login to merge, or discard this patch.
src/autoload.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -3,8 +3,8 @@
 block discarded – undo
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) {
Please login to merge, or discard this patch.
src/Template/RendererAwareInterface.php 1 patch
Doc Comments   +3 added lines patch added patch discarded remove patch
@@ -4,5 +4,8 @@
 block discarded – undo
4 4
 
5 5
 interface RendererAwareInterface
6 6
 {
7
+    /**
8
+     * @return void
9
+     */
7 10
     public function setRenderer(RendererInterface $renderer);
8 11
 }
Please login to merge, or discard this patch.
src/DI/Compiler/DataProviderPass.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -20,7 +20,7 @@
 block discarded – undo
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
 
Please login to merge, or discard this patch.
src/DI/Compiler/ConsoleCommandPass.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -20,7 +20,7 @@
 block discarded – undo
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
 
Please login to merge, or discard this patch.