Completed
Push — master ( f22245...5ea4de )
by recca
03:19
created
lib/elFinderVolumeGoogleDrive.class.php 1 patch
Doc Comments   +5 added lines, -12 removed lines patch added patch discarded remove patch
@@ -327,7 +327,6 @@  discard block
 block discarded – undo
327 327
      * process of on netunmount
328 328
      * Drop `googledrive` & rm thumbs.
329 329
      *
330
-     * @param array $options
331 330
      *
332 331
      * @return bool
333 332
      */
@@ -582,7 +581,6 @@  discard block
 block discarded – undo
582 581
     /**
583 582
      * Get ID based path from item ID.
584 583
      *
585
-     * @param string $path
586 584
      */
587 585
     protected function _gd_getMountPaths($id)
588 586
     {
@@ -686,7 +684,6 @@  discard block
 block discarded – undo
686 684
      * Get thumbnail from GoogleDrive.com.
687 685
      *
688 686
      * @param string $path
689
-     * @param string $size
690 687
      *
691 688
      * @return string | boolean
692 689
      */
@@ -1204,7 +1201,6 @@  discard block
 block discarded – undo
1204 1201
      * Create thumnbnail and return it's URL on success.
1205 1202
      *
1206 1203
      * @param string $path file path
1207
-     * @param string $mime file mime type
1208 1204
      *
1209 1205
      * @return string|false
1210 1206
      *
@@ -1518,7 +1514,6 @@  discard block
 block discarded – undo
1518 1514
      * Open file and return file pointer.
1519 1515
      *
1520 1516
      * @param string $path  file path
1521
-     * @param bool   $write open file for writing
1522 1517
      *
1523 1518
      * @return resource|false
1524 1519
      *
@@ -1562,7 +1557,7 @@  discard block
 block discarded – undo
1562 1557
      *
1563 1558
      * @param resource $fp file pointer
1564 1559
      *
1565
-     * @return bool
1560
+     * @return boolean|null
1566 1561
      *
1567 1562
      * @author Dmitry (dio) Levashov
1568 1563
      **/
@@ -1685,7 +1680,7 @@  discard block
 block discarded – undo
1685 1680
      * Return new file path or false.
1686 1681
      *
1687 1682
      * @param string $source source file path
1688
-     * @param string $target target dir path
1683
+     * @param string $targetDir target dir path
1689 1684
      * @param string $name   file name
1690 1685
      *
1691 1686
      * @return string|bool
@@ -1764,7 +1759,6 @@  discard block
 block discarded – undo
1764 1759
      * Return new file path or false on error.
1765 1760
      *
1766 1761
      * @param resource $fp   file pointer
1767
-     * @param string   $dir  target dir path
1768 1762
      * @param string   $name file name
1769 1763
      * @param array    $stat file stat (required by some virtual fs)
1770 1764
      *
@@ -1897,7 +1891,7 @@  discard block
 block discarded – undo
1897 1891
      *
1898 1892
      * @param string $path file path
1899 1893
      *
1900
-     * @return string|false
1894
+     * @return boolean|string
1901 1895
      *
1902 1896
      * @author Dmitry (dio) Levashov
1903 1897
      **/
@@ -1925,7 +1919,7 @@  discard block
 block discarded – undo
1925 1919
      * @param string $path    file path
1926 1920
      * @param string $content new file content
1927 1921
      *
1928
-     * @return bool
1922
+     * @return string|boolean
1929 1923
      *
1930 1924
      * @author Dmitry (dio) Levashov
1931 1925
      **/
@@ -1987,7 +1981,7 @@  discard block
 block discarded – undo
1987 1981
      *
1988 1982
      * @param string $path file/dir path
1989 1983
      *
1990
-     * @return bool
1984
+     * @return boolean|null
1991 1985
      *
1992 1986
      * @author Dmitry (dio) Levashov
1993 1987
      **/
@@ -2033,7 +2027,6 @@  discard block
 block discarded – undo
2033 2027
     /**
2034 2028
      * Drive query and fetchAll.
2035 2029
      *
2036
-     * @param string $sql
2037 2030
      *
2038 2031
      * @return bool|array
2039 2032
      */
Please login to merge, or discard this patch.
lib/elFinderVolumeLocalFileSystem.class.php 1 patch
Doc Comments   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -828,7 +828,7 @@  discard block
 block discarded – undo
828 828
 	 *
829 829
 	 * @param  string  $path  parent dir path
830 830
 	 * @param string  $name  new directory name
831
-	 * @return string|bool
831
+	 * @return string|false
832 832
 	 * @author Dmitry (dio) Levashov
833 833
 	 **/
834 834
 	protected function _mkdir($path, $name)
@@ -850,7 +850,7 @@  discard block
 block discarded – undo
850 850
 	 *
851 851
 	 * @param  string  $path  parent dir path
852 852
 	 * @param string  $name  new file name
853
-	 * @return string|bool
853
+	 * @return string|false
854 854
 	 * @author Dmitry (dio) Levashov
855 855
 	 **/
856 856
 	protected function _mkfile($path, $name)
@@ -910,7 +910,7 @@  discard block
 block discarded – undo
910 910
 	 * @param  string $source source file path
911 911
 	 * @param $targetDir
912 912
 	 * @param  string $name file name
913
-	 * @return bool|string
913
+	 * @return string|false
914 914
 	 * @internal param string $target target dir path
915 915
 	 * @author Dmitry (dio) Levashov
916 916
 	 */
@@ -1196,7 +1196,7 @@  discard block
 block discarded – undo
1196 1196
 	 * @param  array   $files  files names list
1197 1197
 	 * @param  string  $name   archive name
1198 1198
 	 * @param  array   $arc    archiver options
1199
-	 * @return string|bool
1199
+	 * @return false|string
1200 1200
 	 * @author Dmitry (dio) Levashov,
1201 1201
 	 * @author Alexey Sukhotin
1202 1202
 	 **/
Please login to merge, or discard this patch.
lib/elFinderVolumeMySQL.class.php 1 patch
Doc Comments   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -654,7 +654,7 @@  discard block
 block discarded – undo
654 654
 	 *
655 655
 	 * @param  resource $fp file pointer
656 656
 	 * @param string $path
657
-	 * @return bool
657
+	 * @return boolean|null
658 658
 	 * @author Dmitry (dio) Levashov
659 659
 	 */
660 660
 	protected function _fclose($fp, $path = '')
@@ -672,7 +672,7 @@  discard block
 block discarded – undo
672 672
 	 *
673 673
 	 * @param  string  $path  parent dir path
674 674
 	 * @param string  $name  new directory name
675
-	 * @return string|bool
675
+	 * @return string|false
676 676
 	 * @author Dmitry (dio) Levashov
677 677
 	 **/
678 678
 	protected function _mkdir($path, $name)
@@ -685,7 +685,7 @@  discard block
 block discarded – undo
685 685
 	 *
686 686
 	 * @param  string  $path  parent dir path
687 687
 	 * @param string  $name  new file name
688
-	 * @return string|bool
688
+	 * @return string|false
689 689
 	 * @author Dmitry (dio) Levashov
690 690
 	 **/
691 691
 	protected function _mkfile($path, $name)
@@ -735,7 +735,7 @@  discard block
 block discarded – undo
735 735
 	 * @param  string $source source file path
736 736
 	 * @param $targetDir
737 737
 	 * @param  string $name file name
738
-	 * @return bool|string
738
+	 * @return string|false
739 739
 	 * @internal param string $target target dir path
740 740
 	 * @author Dmitry (dio) Levashov
741 741
 	 */
@@ -929,7 +929,7 @@  discard block
 block discarded – undo
929 929
 	 *
930 930
 	 * @param  string  $path  archive path
931 931
 	 * @param  array   $arc   archiver command and arguments (same as in $this->archivers)
932
-	 * @return true
932
+	 * @return boolean
933 933
 	 * @author Dmitry (dio) Levashov,
934 934
 	 * @author Alexey Sukhotin
935 935
 	 **/
Please login to merge, or discard this patch.
lib/elFinderVolumeOneDrive.class.php 1 patch
Doc Comments   +12 added lines, -16 removed lines patch added patch discarded remove patch
@@ -294,7 +294,6 @@  discard block
 block discarded – undo
294 294
      * process of on netunmount
295 295
      * Drop `onedrive` & rm thumbs.
296 296
      *
297
-     * @param array $options
298 297
      *
299 298
      * @return bool
300 299
      */
@@ -382,11 +381,9 @@  discard block
 block discarded – undo
382 381
     /**
383 382
      * Obtains a new access token from OAuth. This token is valid for one hour.
384 383
      *
385
-     * @param string $clientSecret The OneDrive client secret
384
+     * @param string $client_secret The OneDrive client secret
386 385
      * @param string $code         The code returned by OneDrive after
387 386
      *                             successful log in
388
-     * @param string $redirectUri  Must be the same as the redirect URI passed
389
-     *                             to LoginUrl
390 387
      *
391 388
      * @throws \Exception Thrown if this Client instance's clientId is not set
392 389
      * @throws \Exception Thrown if the redirect URI of this Client instance's
@@ -456,7 +453,7 @@  discard block
 block discarded – undo
456 453
     /**
457 454
      * Get token and auto refresh.
458 455
      *
459
-     * @return true|Exception
456
+     * @return boolean
460 457
      */
461 458
     protected function _od_refreshToken()
462 459
     {
@@ -563,6 +560,7 @@  discard block
 block discarded – undo
563 560
     /**
564 561
      * Creates a base cURL object which is compatible with the OneDrive API.
565 562
      *
563
+     * @param string $url
566 564
      * @return resource A compatible cURL object
567 565
      */
568 566
     protected function _od_prepareCurl($url = null)
@@ -621,7 +619,6 @@  discard block
 block discarded – undo
621 619
     /**
622 620
      * Drive query and fetchAll.
623 621
      *
624
-     * @param string $sql
625 622
      *
626 623
      * @return object|array
627 624
      */
@@ -716,7 +713,7 @@  discard block
 block discarded – undo
716 713
      *
717 714
      * @param string $path
718 715
      *
719
-     * @return array|object onedrive metadata
716
+     * @return string onedrive metadata
720 717
      */
721 718
     protected function _od_getFileRaw($path)
722 719
     {
@@ -734,7 +731,6 @@  discard block
 block discarded – undo
734 731
      * Get thumbnail from OneDrive.com.
735 732
      *
736 733
      * @param string $path
737
-     * @param string $size
738 734
      *
739 735
      * @return string | boolean
740 736
      */
@@ -854,6 +850,9 @@  discard block
 block discarded – undo
854 850
         $this->disabled[] = 'extract';
855 851
     }
856 852
 
853
+    /**
854
+     * @param string $path
855
+     */
857 856
     protected function isNameExists($path)
858 857
     {
859 858
         list($pid, $name) = $this->_od_splitPath($path);
@@ -907,7 +906,7 @@  discard block
 block discarded – undo
907 906
      * @param string $dst  destination dir path
908 907
      * @param string $name new file name (optionaly)
909 908
      *
910
-     * @return string|false
909
+     * @return boolean
911 910
      *
912 911
      * @author Dmitry (dio) Levashov
913 912
      * @author Naoki Sawada
@@ -974,7 +973,6 @@  discard block
 block discarded – undo
974 973
      * Create thumnbnail and return it's URL on success.
975 974
      *
976 975
      * @param string $path file path
977
-     * @param string $mime file mime type
978 976
 
979 977
      * @return string|false
980 978
      *
@@ -1296,7 +1294,6 @@  discard block
 block discarded – undo
1296 1294
      * Open file and return file pointer.
1297 1295
      *
1298 1296
      * @param string $path  file path
1299
-     * @param bool   $write open file for writing
1300 1297
      *
1301 1298
      * @return resource|false
1302 1299
      *
@@ -1322,7 +1319,7 @@  discard block
 block discarded – undo
1322 1319
      *
1323 1320
      * @param resource $fp file pointer
1324 1321
      *
1325
-     * @return bool
1322
+     * @return boolean|null
1326 1323
      *
1327 1324
      * @author Dmitry (dio) Levashov
1328 1325
      **/
@@ -1494,7 +1491,7 @@  discard block
 block discarded – undo
1494 1491
      * Return new file path or false.
1495 1492
      *
1496 1493
      * @param string $source source file path
1497
-     * @param string $target target dir path
1494
+     * @param string $targetDir target dir path
1498 1495
      * @param string $name   file name
1499 1496
      *
1500 1497
      * @return string|bool
@@ -1589,7 +1586,6 @@  discard block
 block discarded – undo
1589 1586
      * Return new file path or false on error.
1590 1587
      *
1591 1588
      * @param resource $fp   file pointer
1592
-     * @param string   $dir  target dir path
1593 1589
      * @param string   $name file name
1594 1590
      * @param array    $stat file stat (required by some virtual fs)
1595 1591
      *
@@ -1680,7 +1676,7 @@  discard block
 block discarded – undo
1680 1676
      * @param string $path    file path
1681 1677
      * @param string $content new file content
1682 1678
      *
1683
-     * @return bool
1679
+     * @return string|boolean
1684 1680
      *
1685 1681
      * @author Dmitry (dio) Levashov
1686 1682
      **/
@@ -1742,7 +1738,7 @@  discard block
 block discarded – undo
1742 1738
      *
1743 1739
      * @param string $path file/dir path
1744 1740
      *
1745
-     * @return bool
1741
+     * @return boolean|null
1746 1742
      *
1747 1743
      * @author Dmitry (dio) Levashov
1748 1744
      **/
Please login to merge, or discard this patch.
lib/libs/GdBmp.php 1 patch
Doc Comments   +7 added lines, -1 removed lines patch added patch discarded remove patch
@@ -61,7 +61,7 @@  discard block
 block discarded – undo
61 61
  *
62 62
  * 以下のものは非対応
63 63
  *   BITMAPV4HEADER と BITMAPV5HEADER に含まれる色空間に関する様々な機能
64
- * @param $filename_or_stream_or_binary
64
+ * @param string $filename_or_stream_or_binary
65 65
  * @return bool|resource
66 66
  */
67 67
 function imagecreatefrombmp($filename_or_stream_or_binary)
@@ -99,6 +99,9 @@  discard block
 block discarded – undo
99 99
         return $bmp;
100 100
     }
101 101
 
102
+    /**
103
+     * @param string $str
104
+     */
102 105
     public static function loadFromString($str)
103 106
     {
104 107
         //data scheme より古いバージョンから対応しているようなので php://memory を使う
@@ -126,6 +129,9 @@  discard block
 block discarded – undo
126 129
         return $bmp;
127 130
     }
128 131
 
132
+    /**
133
+     * @param resource $stream
134
+     */
129 135
     public static function loadFromStream($stream)
130 136
     {
131 137
         $buf = fread($stream, 14); //2+4+2+2+4
Please login to merge, or discard this patch.
lib/elFinder.class.php 1 patch
Doc Comments   +8 added lines, -8 removed lines patch added patch discarded remove patch
@@ -595,7 +595,7 @@  discard block
 block discarded – undo
595 595
     /**
596 596
      * Return elFinder session wrapper instance.
597 597
      *
598
-     * @return  object  elFinderSessionInterface
598
+     * @return  elFinderSessionInterface  elFinderSessionInterface
599 599
      **/
600 600
     public function getSession()
601 601
     {
@@ -1195,7 +1195,7 @@  discard block
 block discarded – undo
1195 1195
     /**
1196 1196
      * Return elFinder static variable.
1197 1197
      *
1198
-     * @param $key
1198
+     * @param string $key
1199 1199
      * @return mixed|null
1200 1200
      */
1201 1201
     public static function getStaticVar($key)
@@ -1275,8 +1275,8 @@  discard block
 block discarded – undo
1275 1275
      * Get stream resource pointer by URL.
1276 1276
      *
1277 1277
      * @param array  $data  array('target'=>'URL', 'headers' => array())
1278
-     * @param number $redirectLimit
1279
-     * @return resource|bool
1278
+     * @param integer $redirectLimit
1279
+     * @return resource
1280 1280
      *
1281 1281
      * @author Naoki Sawada
1282 1282
      */
@@ -1376,7 +1376,7 @@  discard block
 block discarded – undo
1376 1376
      *
1377 1377
      * @throws \Exception
1378 1378
      *
1379
-     * @return mixed
1379
+     * @return string
1380 1380
      *
1381 1381
      * @author Naoki Sawada
1382 1382
      */
@@ -2428,7 +2428,7 @@  discard block
 block discarded – undo
2428 2428
      * @param  string $str
2429 2429
      * @param  array  $extTable
2430 2430
      * @param  array  $args
2431
-     * @return array
2431
+     * @return string[]
2432 2432
      * @author Naoki Sawada
2433 2433
      */
2434 2434
     protected function parse_data_scheme($str, $extTable, $args = null)
@@ -3570,7 +3570,7 @@  discard block
 block discarded – undo
3570 3570
      *
3571 3571
      * @param array|string $hashes
3572 3572
      * @param bool $autoUnlock
3573
-     * @return bool
3573
+     * @return false|null
3574 3574
      */
3575 3575
     protected function itemLock($hashes, $autoUnlock = true)
3576 3576
     {
@@ -3599,7 +3599,7 @@  discard block
 block discarded – undo
3599 3599
      * Do unlock target item.
3600 3600
      *
3601 3601
      * @param string $hash
3602
-     * @return bool
3602
+     * @return boolean|null
3603 3603
      */
3604 3604
     protected function itemUnlock($hash)
3605 3605
     {
Please login to merge, or discard this patch.