Completed
Push — master ( 79bbce...abd19f )
by Antonio Carlos
07:57 queued 05:51
created
src/update/Helper.php 1 patch
Doc Comments   +18 added lines, -13 removed lines patch added patch discarded remove patch
@@ -69,9 +69,9 @@  discard block
 block discarded – undo
69 69
     /**
70 70
      * Add suffix to string.
71 71
      *
72
-     * @param $suffix
73
-     * @param $string
74
-     * @return mixed
72
+     * @param string string
73
+     * @param string $string
74
+     * @return string
75 75
      */
76 76
     protected function addSuffix($suffix, $string)
77 77
     {
@@ -98,7 +98,7 @@  discard block
 block discarded – undo
98 98
     /**
99 99
      * Delete a whole directory.
100 100
      *
101
-     * @param $dir
101
+     * @param string $dir
102 102
      */
103 103
     protected function deleteDirectory($dir)
104 104
     {
@@ -116,6 +116,11 @@  discard block
 block discarded – undo
116 116
         rmdir($dir);
117 117
     }
118 118
 
119
+    /**
120
+     * @param string $string
121
+     *
122
+     * @return resource
123
+     */
119 124
     protected function fopenOrFail($url, $string)
120 125
     {
121 126
         if (($handle = @fopen($url, $string)) === false) {
@@ -184,7 +189,7 @@  discard block
 block discarded – undo
184 189
 
185 190
     /**
186 191
      * @param $url
187
-     * @param $destination
192
+     * @param string $destination
188 193
      */
189 194
     public function downloadFile($url, $destination)
190 195
     {
@@ -255,8 +260,8 @@  discard block
 block discarded – undo
255 260
     /**
256 261
      * @param $file
257 262
      * @param $subPath
258
-     * @param $path
259
-     * @param $exclude
263
+     * @param string $path
264
+     * @param string $exclude
260 265
      */
261 266
     protected function renameMasterToPackage($file, $subPath, $path, $exclude)
262 267
     {
@@ -310,8 +315,8 @@  discard block
 block discarded – undo
310 315
     /**
311 316
      * Load a shapeFile.
312 317
      *
313
-     * @param $dir
314
-     * @return \PragmaRX\Coollection\Package\Coollection
318
+     * @param string $dir
319
+     * @return string
315 320
      */
316 321
     public function shapeFile($dir)
317 322
     {
@@ -391,7 +396,7 @@  discard block
 block discarded – undo
391 396
      * Unzip a file.
392 397
      *
393 398
      * @param $file
394
-     * @param $path
399
+     * @param string $path
395 400
      */
396 401
     public function unzip($file, $path)
397 402
     {
@@ -483,7 +488,7 @@  discard block
 block discarded – undo
483 488
     /**
484 489
      * Load json files from dir.
485 490
      *
486
-     * @param $dir
491
+     * @param string $dir
487 492
      * @return \PragmaRX\Coollection\Package\Coollection
488 493
      */
489 494
     public function loadJsonFiles($dir)
@@ -569,7 +574,7 @@  discard block
 block discarded – undo
569 574
     /**
570 575
      * Loads a json file.
571 576
      *
572
-     * @param $file
577
+     * @param string $file
573 578
      * @param string $dir
574 579
      * @return \PragmaRX\Coollection\Package\Coollection
575 580
      * @throws \Exception
@@ -606,7 +611,7 @@  discard block
 block discarded – undo
606 611
     /**
607 612
      * Put contents into a file.
608 613
      *
609
-     * @param $file
614
+     * @param string $file
610 615
      * @param $contents
611 616
      */
612 617
     public function putFile($file, $contents)
Please login to merge, or discard this patch.