Completed
Push — master ( 19b3e1...6e1671 )
by Mike
02:20
created
src/Cache/Adapter/AdapterTrait.php 1 patch
Doc Comments   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -19,7 +19,7 @@  discard block
 block discarded – undo
19 19
      * @param iterable $keys    a list of keys that can obtained in a single operation
20 20
      * @param mixed    $default default value to return for keys that do not exist
21 21
      *
22
-     * @return iterable A list of key => value pairs. Cache keys that do not exist or are stale will have $default as value.
22
+     * @return \Generator A list of key => value pairs. Cache keys that do not exist or are stale will have $default as value.
23 23
      */
24 24
     public function getMultiple($keys, $default = null)
25 25
     {
@@ -88,7 +88,7 @@  discard block
 block discarded – undo
88 88
     }
89 89
 
90 90
     /**
91
-     * @param $key
91
+     * @param string $key
92 92
      *
93 93
      * @throws InvalidArgumentException
94 94
      */
Please login to merge, or discard this patch.
src/Cache/Adapter/File.php 1 patch
Doc Comments   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -20,7 +20,7 @@  discard block
 block discarded – undo
20 20
     /**
21 21
      * File constructor.
22 22
      *
23
-     * @param $path
23
+     * @param string $path
24 24
      * @param $ttl
25 25
      */
26 26
     public function __construct($path, $ttl = 3600)
@@ -35,7 +35,7 @@  discard block
 block discarded – undo
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
      */
@@ -212,7 +212,7 @@  discard block
 block discarded – undo
212 212
     }
213 213
 
214 214
     /**
215
-     * @return Generator
215
+     * @return \RecursiveIteratorIterator
216 216
      */
217 217
     private function getCacheFolderIterator()
218 218
     {
Please login to merge, or discard this patch.
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/Command/GenerateSpecCommand.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -124,7 +124,7 @@
 block discarded – undo
124 124
     }
125 125
 
126 126
     /**
127
-     * @param $buildVersion
127
+     * @param string $buildVersion
128 128
      * @param $upgradeTo
129 129
      */
130 130
     private function validateVersion($buildVersion, $upgradeTo)
Please login to merge, or discard this patch.
src/Data/Manager.php 2 patches
Doc Comments   +3 added lines, -3 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
      */
Please login to merge, or discard this patch.
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.
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/Data/Provider/SupportSugarcrm.php 2 patches
Doc Comments   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -222,7 +222,7 @@  discard block
 block discarded – undo
222 222
 
223 223
     /**
224 224
      * Returns the result (response body) of GET request
225
-     * @param $url
225
+     * @param string $url
226 226
      * @return string
227 227
      */
228 228
     private function getContent($url)
@@ -233,7 +233,7 @@  discard block
 block discarded – undo
233 233
     }
234 234
 
235 235
     /**
236
-     * @param $version
236
+     * @param string $version
237 237
      *
238 238
      * @return string
239 239
      */
@@ -243,7 +243,7 @@  discard block
 block discarded – undo
243 243
     }
244 244
 
245 245
     /**
246
-     * @param $version
246
+     * @param string $version
247 247
      *
248 248
      * @return string
249 249
      */
@@ -313,7 +313,7 @@  discard block
 block discarded – undo
313 313
      *
314 314
      * @param $keyParts
315 315
      *
316
-     * @return mixed
316
+     * @return string
317 317
      */
318 318
     private function getCacheKey(array $keyParts)
319 319
     {
@@ -327,7 +327,7 @@  discard block
 block discarded – undo
327 327
     /**
328 328
      * Lightweight HTML purifier.
329 329
      *
330
-     * @param $html
330
+     * @param string $html
331 331
      * @param string $url
332 332
      * @param array  $options
333 333
      *
Please login to merge, or discard this patch.
Spacing   +8 added lines, -8 removed lines patch added patch discarded remove patch
@@ -73,7 +73,7 @@  discard block
 block discarded – undo
73 73
         }
74 74
 
75 75
         // sort versions (ASC)
76
-        usort($versions, function ($v1, $v2) {
76
+        usort($versions, function($v1, $v2) {
77 77
             return version_compare($v1, $v2, '<') ? -1 : (version_compare($v1, $v2, '>') ? 1 : 0);
78 78
         });
79 79
 
@@ -90,13 +90,13 @@  discard block
 block discarded – undo
90 90
      */
91 91
     public function getReleaseNotes($flav, array $versions)
92 92
     {
93
-        $newVersions = array_filter($versions, function ($version) use ($flav) {
93
+        $newVersions = array_filter($versions, function($version) use ($flav) {
94 94
             return !$this->cache->has($this->getCacheKey([$flav, 'release_notes', $version]));
95 95
         });
96 96
 
97
-        $requests = function () use ($flav, $newVersions) {
97
+        $requests = function() use ($flav, $newVersions) {
98 98
             foreach ($newVersions as $version) {
99
-                yield $version => function () use ($flav, $version) {
99
+                yield $version => function() use ($flav, $version) {
100 100
                     return $this->httpClient->getAsync($this->getReleaseNotesUri($flav, $version));
101 101
                 };
102 102
             }
@@ -104,7 +104,7 @@  discard block
 block discarded – undo
104 104
 
105 105
         if ($newVersions) {
106 106
             $this->processRequestPool($requests, [
107
-                'fulfilled' => function (ResponseInterface $response, $version) use ($flav) {
107
+                'fulfilled' => function(ResponseInterface $response, $version) use ($flav) {
108 108
                     $html = $response->getBody()->getContents();
109 109
                     $crawler = new Crawler($this->purifyHtml($html, $this->getReleaseNotesUri($flav, $version)));
110 110
 
@@ -134,7 +134,7 @@  discard block
 block discarded – undo
134 134
 
135 135
                     $this->cache->set($this->getCacheKey([$flav, 'release_notes', $version]), $releaseNote);
136 136
                 },
137
-                'rejected' => function ($reason, $version) {
137
+                'rejected' => function($reason, $version) {
138 138
                     throw new \RuntimeException(
139 139
                         sprintf('Can\'t get release notes for version: %s (reason: %s)', $version, $reason)
140 140
                     );
@@ -150,7 +150,7 @@  discard block
 block discarded – undo
150 150
             }
151 151
         }
152 152
 
153
-        uksort($releaseNotes, function ($v1, $v2) {
153
+        uksort($releaseNotes, function($v1, $v2) {
154 154
             return version_compare($v1, $v2, '<') ? -1 : (version_compare($v1, $v2, '>') ? 1 : 0);
155 155
         });
156 156
 
@@ -319,7 +319,7 @@  discard block
 block discarded – undo
319 319
     {
320 320
         $delimiter = '___';
321 321
 
322
-        return implode($delimiter, array_map(function ($key) {
322
+        return implode($delimiter, array_map(function($key) {
323 323
             return preg_replace('/[^a-zA-Z0-9_\.]+/', '', mb_strtolower($key));
324 324
         }, $keyParts));
325 325
     }
Please login to merge, or discard this patch.
src/Element/Section/UpgradeChanges.php 1 patch
Doc Comments   +5 added lines, -6 removed lines patch added patch discarded remove patch
@@ -54,8 +54,7 @@  discard block
 block discarded – undo
54 54
     /**
55 55
      * Get all available SugarCRM versions (sorted ASC).
56 56
      *
57
-     * @param mixed $flav
58
-     * @param mixed $pathToUpgradePackage
57
+     * @param Context $pathToUpgradePackage
59 58
      *
60 59
      * @return mixed
61 60
      */
@@ -75,7 +74,7 @@  discard block
 block discarded – undo
75 74
      *
76 75
      * @param string $pathToUpgradePackage
77 76
      *
78
-     * @return mixed
77
+     * @return string
79 78
      */
80 79
     public function getListOfDeletedFiles($pathToUpgradePackage)
81 80
     {
@@ -87,7 +86,7 @@  discard block
 block discarded – undo
87 86
      *
88 87
      * @param string $pathToUpgradePackage
89 88
      *
90
-     * @return mixed
89
+     * @return string
91 90
      */
92 91
     public function getListOfModifiedFiles($pathToUpgradePackage)
93 92
     {
@@ -99,7 +98,7 @@  discard block
 block discarded – undo
99 98
      *
100 99
      * @param string $pathToUpgradePackage
101 100
      *
102
-     * @return mixed
101
+     * @return string
103 102
      */
104 103
     public function getListOfScripts($pathToUpgradePackage)
105 104
     {
@@ -111,7 +110,7 @@  discard block
 block discarded – undo
111 110
      *
112 111
      * @param string $pathToUpgradePackage
113 112
      *
114
-     * @return mixed
113
+     * @return string
115 114
      */
116 115
     public function getListOfSQLScripts($pathToUpgradePackage)
117 116
     {
Please login to merge, or discard this patch.
src/Updater/Adapter/HumbugAdapter.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -75,7 +75,7 @@
 block discarded – undo
75 75
     }
76 76
 
77 77
     /**
78
-     * @param $stability
78
+     * @param string $stability
79 79
      *
80 80
      * @return string
81 81
      */
Please login to merge, or discard this patch.