Completed
Push — master ( f2ed00...07b62e )
by Antonio Carlos
05:36
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/update/Updater.php 1 patch
Doc Comments   +5 added lines, -5 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
     {
@@ -204,8 +204,8 @@  discard block
 block discarded – undo
204 204
     }
205 205
 
206 206
     /**
207
-     * @param $result
208
-     * @param $type
207
+     * @param Coollection $result
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.
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   +17 added lines, -12 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,7 +316,7 @@  discard block
 block discarded – undo
311 316
     /**
312 317
      * Load a shapeFile.
313 318
      *
314
-     * @param $dir
319
+     * @param string $dir
315 320
      * @return \PragmaRX\Coollection\Package\Coollection
316 321
      */
317 322
     public function shapeFile($dir)
@@ -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/Mledoze.php 1 patch
Doc Comments   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -60,7 +60,7 @@  discard block
 block discarded – undo
60 60
      * Fill mledoze fields with natural earth vector data.
61 61
      *
62 62
      * @param $fields
63
-     * @return mixed
63
+     * @return Coollection
64 64
      */
65 65
     public function fillMledozeFields($fields)
66 66
     {
@@ -110,7 +110,7 @@  discard block
 block discarded – undo
110 110
      * @param \PragmaRX\Coollection\Package\Coollection $mledoze
111 111
      * @param \PragmaRX\Coollection\Package\Coollection $natural
112 112
      * @param string $suffix
113
-     * @return mixed
113
+     * @return Coollection
114 114
      */
115 115
     public function mergeWithMledoze($mledoze, $natural, $suffix = '_nev')
116 116
     {
Please login to merge, or discard this patch.
src/update/Rinvex.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -157,7 +157,7 @@
 block discarded – undo
157 157
      *
158 158
      * @param Coollection $natural
159 159
      * @param Coollection $rinvex
160
-     * @param $translation
160
+     * @param null|Coollection $translation
161 161
      * @param string $suffix
162 162
      * @return mixed|\PragmaRX\Coollection\Package\Coollection
163 163
      */
Please login to merge, or discard this patch.
src/package/Data/Repository.php 1 patch
Doc Comments   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -63,7 +63,7 @@  discard block
 block discarded – undo
63 63
      * @param CacheContract $cache
64 64
      * @param Hydrator $hydrator
65 65
      * @param Helper $helper
66
-     * @param object $config
66
+     * @param \PragmaRX\Countries\Package\Services\Config $config
67 67
      */
68 68
     public function __construct(CacheContract $cache, Hydrator $hydrator, Helper $helper, $config)
69 69
     {
@@ -179,7 +179,7 @@  discard block
 block discarded – undo
179 179
      * Load currency json file.
180 180
      *
181 181
      * @param $code
182
-     * @return string
182
+     * @return \PragmaRX\Coollection\Package\Coollection
183 183
      */
184 184
     public function loadCurrenciesForCountry($code)
185 185
     {
@@ -311,7 +311,7 @@  discard block
 block discarded – undo
311 311
      * Find a country timezone.
312 312
      *
313 313
      * @param $countryCode
314
-     * @return null
314
+     * @return \PragmaRX\Coollection\Package\Coollection
315 315
      */
316 316
     public function findTimezones($countryCode)
317 317
     {
Please login to merge, or discard this patch.
src/package/Services/Cache.php 1 patch
Doc Comments   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -71,7 +71,7 @@  discard block
 block discarded – undo
71 71
     /**
72 72
      * Check if cache is enabled.
73 73
      *
74
-     * @return bool
74
+     * @return \PragmaRX\Coollection\Package\Coollection
75 75
      */
76 76
     protected function enabled()
77 77
     {
@@ -132,7 +132,7 @@  discard block
 block discarded – undo
132 132
      * Delete an item from the cache by its unique key.
133 133
      *
134 134
      * @param string $key
135
-     * @return bool
135
+     * @return boolean|null
136 136
      */
137 137
     public function delete($key)
138 138
     {
@@ -197,7 +197,7 @@  discard block
 block discarded – undo
197 197
      * Get an item from the cache, or store the default value.
198 198
      *
199 199
      * @param  string $key
200
-     * @param  \DateTimeInterface|\DateInterval|float|int $minutes
200
+     * @param  integer $minutes
201 201
      * @param Closure $callback
202 202
      * @return mixed
203 203
      */
Please login to merge, or discard this patch.