Completed
Push — master ( c68144...d8c2c6 )
by Daniel
02:46
created
source/CommonCode.php 2 patches
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -194,7 +194,7 @@  discard block
 block discarded – undo
194 194
         curl_setopt($chanel, CURLOPT_FAILONERROR, true);
195 195
         $rspJsonFromClient = curl_exec($chanel);
196 196
         if (curl_errno($chanel)) {
197
-            $aReturn['info']     = $this->setArrayToJson([
197
+            $aReturn['info'] = $this->setArrayToJson([
198 198
                 '#'           => curl_errno($chanel),
199 199
                 'description' => curl_error($chanel)
200 200
             ]);
@@ -477,7 +477,7 @@  discard block
 block discarded – undo
477 477
                 ->ignoreUnreadableDirs(true)
478 478
                 ->followLinks()
479 479
                 ->in($sourcePath);
480
-        $sFiles     = [];
480
+        $sFiles = [];
481 481
         foreach ($iterator as $file) {
482 482
             $relativePathFile = str_replace($sourcePath, '', $file->getRealPath());
483 483
             if (!file_exists($targetPath . $relativePathFile)) {
@@ -517,7 +517,7 @@  discard block
 block discarded – undo
517 517
                     ->ignoreUnreadableDirs(true)
518 518
                     ->followLinks()
519 519
                     ->in($inputArray['path']);
520
-            $aFiles   = null;
520
+            $aFiles = null;
521 521
             foreach ($iterator as $file) {
522 522
                 if ($file->getATime() < strtotime($inputArray['dateRule'])) {
523 523
                     $aFiles[] = $file->getRealPath();
@@ -660,7 +660,7 @@  discard block
 block discarded – undo
660 660
      */
661 661
     private function setJsonErrorInPlainEnglish()
662 662
     {
663
-        $knownErrors  = [
663
+        $knownErrors = [
664 664
             JSON_ERROR_NONE           => null,
665 665
             JSON_ERROR_DEPTH          => 'Maximum stack depth exceeded',
666 666
             JSON_ERROR_STATE_MISMATCH => 'Underflow or the modes mismatch',
Please login to merge, or discard this patch.
Doc Comments   +13 added lines, -5 removed lines patch added patch discarded remove patch
@@ -166,7 +166,7 @@  discard block
 block discarded – undo
166 166
      *
167 167
      * @param string $fullURL
168 168
      * @param array $features
169
-     * @return blob
169
+     * @return string
170 170
      */
171 171
     protected function getContentFromUrlThroughCurl($fullURL, $features = null)
172 172
     {
@@ -367,6 +367,9 @@  discard block
 block discarded – undo
367 367
         return $interval->format('%a days ago');
368 368
     }
369 369
 
370
+    /**
371
+     * @param string $defaultNA
372
+     */
370 373
     private function getPkgBasicInfo($value, $defaultNA)
371 374
     {
372 375
         return [
@@ -383,6 +386,9 @@  discard block
 block discarded – undo
383 386
         ];
384 387
     }
385 388
 
389
+    /**
390
+     * @param string $fileToRead
391
+     */
386 392
     private function getPkgFileInListOfPackageArrayOut($fileToRead)
387 393
     {
388 394
         $handle       = fopen($fileToRead, 'r');
@@ -400,6 +406,9 @@  discard block
 block discarded – undo
400 406
         return $lcns;
401 407
     }
402 408
 
409
+    /**
410
+     * @param string $defaultNA
411
+     */
403 412
     private function getPkgOptAtributeAll($value, $defaultNA)
404 413
     {
405 414
         $attr    = ['description', 'homepage', 'type', 'url', 'version'];
@@ -485,8 +494,7 @@  discard block
 block discarded – undo
485 494
      *
486 495
      * @param type $sourcePath
487 496
      * @param type $targetPath
488
-     * @param type $overwrite
489
-     * @return type
497
+     * @return string
490 498
      */
491 499
     protected function moveFilesIntoTargetFolder($sourcePath, $targetPath)
492 500
     {
@@ -653,7 +661,7 @@  discard block
 block discarded – undo
653 661
      *
654 662
      * @param float $fAbove
655 663
      * @param float $fBelow
656
-     * @param mixed $mArguments
664
+     * @param integer $mArguments
657 665
      * @return decimal
658 666
      */
659 667
     protected function setDividedResult($fAbove, $fBelow, $mArguments = 0)
@@ -677,7 +685,7 @@  discard block
 block discarded – undo
677 685
     /**
678 686
      * Provides a list of all known JSON errors and their description
679 687
      *
680
-     * @return type
688
+     * @return null|string
681 689
      */
682 690
     private function setJsonErrorInPlainEnglish()
683 691
     {
Please login to merge, or discard this patch.