Completed
Branch master (c7f662)
by Antonio Carlos
02:01
created
src/package/Services/Config.php 1 patch
Doc Comments   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -16,7 +16,7 @@  discard block
 block discarded – undo
16 16
     /**
17 17
      * Config constructor.
18 18
      *
19
-     * @param array|null $config
19
+     * @param Helper $config
20 20
      */
21 21
     public function __construct($config = null)
22 22
     {
@@ -24,7 +24,7 @@  discard block
 block discarded – undo
24 24
     }
25 25
 
26 26
     /**
27
-     * @param $key
27
+     * @param string $key
28 28
      * @return \PragmaRX\Coollection\Package\Coollection
29 29
      */
30 30
     public function get($key)
Please login to merge, or discard this patch.
src/package/Services/Countries.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -235,7 +235,7 @@
 block discarded – undo
235 235
     }
236 236
 
237 237
     /**
238
-     * @param $repository
238
+     * @param null|Repository $repository
239 239
      * @return Repository
240 240
      */
241 241
     protected function instantiateRepository($repository)
Please login to merge, or discard this patch.
src/package/Services/Cache.php 1 patch
Doc Comments   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -119,7 +119,7 @@  discard block
 block discarded – undo
119 119
      * Delete an item from the cache by its unique key.
120 120
      *
121 121
      * @param string $key
122
-     * @return bool
122
+     * @return boolean|null
123 123
      */
124 124
     public function delete($key)
125 125
     {
@@ -207,7 +207,7 @@  discard block
 block discarded – undo
207 207
      * Get an item from the cache, or store the default value.
208 208
      *
209 209
      * @param  string $key
210
-     * @param  \DateTimeInterface|\DateInterval|float|int $minutes
210
+     * @param  integer $minutes
211 211
      * @param Closure $callback
212 212
      * @return mixed
213 213
      */
Please login to merge, or discard this patch.
src/package/Services/Helper.php 1 patch
Doc Comments   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -64,7 +64,7 @@  discard block
 block discarded – undo
64 64
     /**
65 65
      * Load json files from dir.
66 66
      *
67
-     * @param $dir
67
+     * @param string $dir
68 68
      * @return \PragmaRX\Coollection\Package\Coollection
69 69
      */
70 70
     public function loadJsonFiles($dir)
@@ -105,7 +105,7 @@  discard block
 block discarded – undo
105 105
     }
106 106
 
107 107
     /**
108
-     * @param $contents
108
+     * @param string $contents
109 109
      * @return string
110 110
      */
111 111
     public function sanitizeFile($contents)
Please login to merge, or discard this patch.
src/package/Services/Hydrator.php 1 patch
Doc Comments   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -57,7 +57,7 @@  discard block
 block discarded – undo
57 57
      * Can hydrate?
58 58
      *
59 59
      * @param $element
60
-     * @param $enabled
60
+     * @param boolean $enabled
61 61
      * @param $countryCode
62 62
      * @return bool
63 63
      */
@@ -84,7 +84,7 @@  discard block
 block discarded – undo
84 84
      *
85 85
      * @param $countries
86 86
      * @param $elements
87
-     * @return mixed
87
+     * @return \PragmaRX\Countries\Package\Support\Collection
88 88
      */
89 89
     private function hydrateCountries($countries, $elements = null)
90 90
     {
@@ -100,7 +100,7 @@  discard block
 block discarded – undo
100 100
      *
101 101
      * @param $country
102 102
      * @param $elements
103
-     * @return mixed
103
+     * @return \PragmaRX\Countries\Package\Support\Collection
104 104
      */
105 105
     private function hydrateCountry($country, $elements)
106 106
     {
@@ -381,7 +381,7 @@  discard block
 block discarded – undo
381 381
      * Get country by country code.
382 382
      *
383 383
      * @param $countryCode
384
-     * @return mixed
384
+     * @return \PragmaRX\Countries\Package\Support\Collection
385 385
      */
386 386
     public function getCountry($countryCode)
387 387
     {
@@ -438,7 +438,7 @@  discard block
 block discarded – undo
438 438
     /**
439 439
      * Repository setter.
440 440
      *
441
-     * @param $repository
441
+     * @param \PragmaRX\Countries\Package\Data\Repository $repository
442 442
      */
443 443
     public function setRepository($repository)
444 444
     {
Please login to merge, or discard this patch.
src/update/Countries.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -83,7 +83,7 @@
 block discarded – undo
83 83
     /**
84 84
      * Build countries collection.
85 85
      *
86
-     * @param $dataDir
86
+     * @param string $dataDir
87 87
      * @return \PragmaRX\Coollection\Package\Coollection
88 88
      */
89 89
     public function buildCountriesCoollection($dataDir)
Please login to merge, or discard this patch.
src/update/Helper.php 1 patch
Doc Comments   +18 added lines, -13 removed lines patch added patch discarded remove patch
@@ -70,9 +70,9 @@  discard block
 block discarded – undo
70 70
     /**
71 71
      * Add suffix to string.
72 72
      *
73
-     * @param $suffix
74
-     * @param $string
75
-     * @return mixed
73
+     * @param string string
74
+     * @param string $string
75
+     * @return string
76 76
      */
77 77
     protected function addSuffix($suffix, $string)
78 78
     {
@@ -99,7 +99,7 @@  discard block
 block discarded – undo
99 99
     /**
100 100
      * Delete a whole directory.
101 101
      *
102
-     * @param $dir
102
+     * @param string $dir
103 103
      */
104 104
     protected function deleteDirectory($dir)
105 105
     {
@@ -117,6 +117,11 @@  discard block
 block discarded – undo
117 117
         rmdir($dir);
118 118
     }
119 119
 
120
+    /**
121
+     * @param string $string
122
+     *
123
+     * @return resource
124
+     */
120 125
     protected function fopenOrFail($url, $string)
121 126
     {
122 127
         if (($handle = @fopen($url, $string)) === false) {
@@ -185,7 +190,7 @@  discard block
 block discarded – undo
185 190
 
186 191
     /**
187 192
      * @param $url
188
-     * @param $destination
193
+     * @param string $destination
189 194
      */
190 195
     public function downloadFile($url, $destination)
191 196
     {
@@ -256,8 +261,8 @@  discard block
 block discarded – undo
256 261
     /**
257 262
      * @param $file
258 263
      * @param $subPath
259
-     * @param $path
260
-     * @param $exclude
264
+     * @param string $path
265
+     * @param string $exclude
261 266
      */
262 267
     protected function renameMasterToPackage($file, $subPath, $path, $exclude): void
263 268
     {
@@ -311,8 +316,8 @@  discard block
 block discarded – undo
311 316
     /**
312 317
      * Load a shapeFile.
313 318
      *
314
-     * @param $dir
315
-     * @return \PragmaRX\Coollection\Package\Coollection
319
+     * @param string $dir
320
+     * @return string
316 321
      */
317 322
     public function shapeFile($dir)
318 323
     {
@@ -392,7 +397,7 @@  discard block
 block discarded – undo
392 397
      * Unzip a file.
393 398
      *
394 399
      * @param $file
395
-     * @param $path
400
+     * @param string $path
396 401
      */
397 402
     public function unzip($file, $path)
398 403
     {
@@ -480,7 +485,7 @@  discard block
 block discarded – undo
480 485
     /**
481 486
      * Load json files from dir.
482 487
      *
483
-     * @param $dir
488
+     * @param string $dir
484 489
      * @return \PragmaRX\Coollection\Package\Coollection
485 490
      */
486 491
     public function loadJsonFiles($dir)
@@ -566,7 +571,7 @@  discard block
 block discarded – undo
566 571
     /**
567 572
      * Loads a json file.
568 573
      *
569
-     * @param $file
574
+     * @param string $file
570 575
      * @param string $dir
571 576
      * @return \PragmaRX\Coollection\Package\Coollection
572 577
      * @throws \Exception
@@ -603,7 +608,7 @@  discard block
 block discarded – undo
603 608
     /**
604 609
      * Put contents into a file.
605 610
      *
606
-     * @param $file
611
+     * @param string $file
607 612
      * @param $contents
608 613
      */
609 614
     public function putFile($file, $contents)
Please login to merge, or discard this patch.
src/update/Rinvex.php 1 patch
Doc Comments   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -156,8 +156,8 @@  discard block
 block discarded – undo
156 156
      * Merge country data with Rinvex data.
157 157
      *
158 158
      * @param Coollection $natural
159
-     * @param Coollection $rinvex
160
-     * @param $translation
159
+     * @param null|Coollection $rinvex
160
+     * @param null|Coollection $translation
161 161
      * @param string $suffix
162 162
      * @return mixed|\PragmaRX\Coollection\Package\Coollection
163 163
      */
@@ -259,7 +259,7 @@  discard block
 block discarded – undo
259 259
     }
260 260
 
261 261
     /**
262
-     * @param \PragmaRX\Coollection\Package\Coollection $rinvex
262
+     * @param null|Coollection $rinvex
263 263
      * @param $cca3
264 264
      * @param $postal
265 265
      * @param $country
Please login to merge, or discard this patch.
src/update/Updater.php 1 patch
Doc Comments   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -125,7 +125,7 @@  discard block
 block discarded – undo
125 125
     }
126 126
 
127 127
     /**
128
-     * @return mixed
128
+     * @return Command
129 129
      */
130 130
     public function getCommand()
131 131
     {
@@ -205,7 +205,7 @@  discard block
 block discarded – undo
205 205
 
206 206
     /**
207 207
      * @param $result
208
-     * @param $type
208
+     * @param string $type
209 209
      * @return \PragmaRX\Coollection\Package\Coollection
210 210
      */
211 211
     public function addRecordType($result, $type)
@@ -244,7 +244,7 @@  discard block
 block discarded – undo
244 244
      * @param \PragmaRX\Coollection\Package\Coollection $on
245 245
      * @param \PragmaRX\Coollection\Package\Coollection $by
246 246
      * @param $fields
247
-     * @param $codeField
247
+     * @param string $codeField
248 248
      * @return array
249 249
      */
250 250
     public function findByFields($on, $by, $fields, $codeField)
@@ -324,7 +324,7 @@  discard block
 block discarded – undo
324 324
     /**
325 325
      * @param $result
326 326
      * @param $dir
327
-     * @param $normalizerClosure
327
+     * @param Closure $normalizerClosure
328 328
      * @return array
329 329
      */
330 330
     public function normalizeData($result, $dir, $normalizerClosure)
Please login to merge, or discard this patch.