Completed
Pull Request — 1.0 (#37)
by
unknown
02:25
created
src/NodeJsInstaller.php 1 patch
Doc Comments   +10 added lines patch added patch discarded remove patch
@@ -109,6 +109,7 @@  discard block
 block discarded – undo
109 109
      *
110 110
      * Note: trailing "v" will be removed from version string.
111 111
      *
112
+     * @param string $binDir
112 113
      * @return null|string
113 114
      */
114 115
     public function getNodeJsLocalInstallVersion($binDir)
@@ -284,6 +285,10 @@  discard block
 block discarded – undo
284 285
         }
285 286
     }
286 287
 
288
+    /**
289
+     * @param string $targetDir
290
+     * @param boolean $isLocal
291
+     */
287 292
     public function createBinScripts($binDir, $targetDir, $isLocal)
288 293
     {
289 294
         $cwd = getcwd();
@@ -316,6 +321,7 @@  discard block
 block discarded – undo
316 321
      * @param string $fullTargetDir
317 322
      * @param string $scriptName
318 323
      * @param bool   $isLocal
324
+     * @param string $target
319 325
      */
320 326
     private function createBinScript($binDir, $fullTargetDir, $scriptName, $target, $isLocal)
321 327
     {
@@ -376,6 +382,10 @@  discard block
 block discarded – undo
376 382
         return (strlen($relativePath) === 0) ? './' : $relativePath;
377 383
     }
378 384
 
385
+    /**
386
+     * @param string $zipFileName
387
+     * @param string $targetDir
388
+     */
379 389
     private function unzip($zipFileName, $targetDir)
380 390
     {
381 391
         $zip = new \ZipArchive();
Please login to merge, or discard this patch.