@@ -336,6 +336,9 @@ discard block |
||
| 336 | 336 | } |
| 337 | 337 | } |
| 338 | 338 | |
| 339 | + /** |
|
| 340 | + * @param string $root |
|
| 341 | + */ |
|
| 339 | 342 | static public function init($user, $root) { |
| 340 | 343 | if (self::$defaultInstance) { |
| 341 | 344 | return false; |
@@ -624,11 +627,15 @@ discard block |
||
| 624 | 627 | |
| 625 | 628 | /** |
| 626 | 629 | * following functions are equivalent to their php builtin equivalents for arguments/return values. |
| 630 | + * @param string $path |
|
| 627 | 631 | */ |
| 628 | 632 | static public function mkdir($path) { |
| 629 | 633 | return self::$defaultInstance->mkdir($path); |
| 630 | 634 | } |
| 631 | 635 | |
| 636 | + /** |
|
| 637 | + * @param string $path |
|
| 638 | + */ |
|
| 632 | 639 | static public function rmdir($path) { |
| 633 | 640 | return self::$defaultInstance->rmdir($path); |
| 634 | 641 | } |
@@ -645,6 +652,9 @@ discard block |
||
| 645 | 652 | return self::$defaultInstance->is_dir($path); |
| 646 | 653 | } |
| 647 | 654 | |
| 655 | + /** |
|
| 656 | + * @param string $path |
|
| 657 | + */ |
|
| 648 | 658 | static public function is_file($path) { |
| 649 | 659 | return self::$defaultInstance->is_file($path); |
| 650 | 660 | } |
@@ -657,6 +667,9 @@ discard block |
||
| 657 | 667 | return self::$defaultInstance->filetype($path); |
| 658 | 668 | } |
| 659 | 669 | |
| 670 | + /** |
|
| 671 | + * @param string $path |
|
| 672 | + */ |
|
| 660 | 673 | static public function filesize($path) { |
| 661 | 674 | return self::$defaultInstance->filesize($path); |
| 662 | 675 | } |
@@ -669,6 +682,9 @@ discard block |
||
| 669 | 682 | return self::$defaultInstance->isCreatable($path); |
| 670 | 683 | } |
| 671 | 684 | |
| 685 | + /** |
|
| 686 | + * @param string $path |
|
| 687 | + */ |
|
| 672 | 688 | static public function isReadable($path) { |
| 673 | 689 | return self::$defaultInstance->isReadable($path); |
| 674 | 690 | } |
@@ -681,6 +697,9 @@ discard block |
||
| 681 | 697 | return self::$defaultInstance->isDeletable($path); |
| 682 | 698 | } |
| 683 | 699 | |
| 700 | + /** |
|
| 701 | + * @param string $path |
|
| 702 | + */ |
|
| 684 | 703 | static public function isSharable($path) { |
| 685 | 704 | return self::$defaultInstance->isSharable($path); |
| 686 | 705 | } |
@@ -689,37 +708,64 @@ discard block |
||
| 689 | 708 | return self::$defaultInstance->file_exists($path); |
| 690 | 709 | } |
| 691 | 710 | |
| 711 | + /** |
|
| 712 | + * @param string $path |
|
| 713 | + */ |
|
| 692 | 714 | static public function filemtime($path) { |
| 693 | 715 | return self::$defaultInstance->filemtime($path); |
| 694 | 716 | } |
| 695 | 717 | |
| 718 | + /** |
|
| 719 | + * @param string $path |
|
| 720 | + * @param integer $mtime |
|
| 721 | + */ |
|
| 696 | 722 | static public function touch($path, $mtime = null) { |
| 697 | 723 | return self::$defaultInstance->touch($path, $mtime); |
| 698 | 724 | } |
| 699 | 725 | |
| 700 | 726 | /** |
| 727 | + * @param string $path |
|
| 701 | 728 | * @return string |
| 702 | 729 | */ |
| 703 | 730 | static public function file_get_contents($path) { |
| 704 | 731 | return self::$defaultInstance->file_get_contents($path); |
| 705 | 732 | } |
| 706 | 733 | |
| 734 | + /** |
|
| 735 | + * @param string $path |
|
| 736 | + * @param string $data |
|
| 737 | + */ |
|
| 707 | 738 | static public function file_put_contents($path, $data) { |
| 708 | 739 | return self::$defaultInstance->file_put_contents($path, $data); |
| 709 | 740 | } |
| 710 | 741 | |
| 742 | + /** |
|
| 743 | + * @param string $path |
|
| 744 | + */ |
|
| 711 | 745 | static public function unlink($path) { |
| 712 | 746 | return self::$defaultInstance->unlink($path); |
| 713 | 747 | } |
| 714 | 748 | |
| 749 | + /** |
|
| 750 | + * @param string $path1 |
|
| 751 | + * @param string $path2 |
|
| 752 | + */ |
|
| 715 | 753 | static public function rename($path1, $path2) { |
| 716 | 754 | return self::$defaultInstance->rename($path1, $path2); |
| 717 | 755 | } |
| 718 | 756 | |
| 757 | + /** |
|
| 758 | + * @param string $path1 |
|
| 759 | + * @param string $path2 |
|
| 760 | + */ |
|
| 719 | 761 | static public function copy($path1, $path2) { |
| 720 | 762 | return self::$defaultInstance->copy($path1, $path2); |
| 721 | 763 | } |
| 722 | 764 | |
| 765 | + /** |
|
| 766 | + * @param string $path |
|
| 767 | + * @param string $mode |
|
| 768 | + */ |
|
| 723 | 769 | static public function fopen($path, $mode) { |
| 724 | 770 | return self::$defaultInstance->fopen($path, $mode); |
| 725 | 771 | } |
@@ -735,6 +781,9 @@ discard block |
||
| 735 | 781 | return self::$defaultInstance->fromTmpFile($tmpFile, $path); |
| 736 | 782 | } |
| 737 | 783 | |
| 784 | + /** |
|
| 785 | + * @param string $path |
|
| 786 | + */ |
|
| 738 | 787 | static public function getMimeType($path) { |
| 739 | 788 | return self::$defaultInstance->getMimeType($path); |
| 740 | 789 | } |
@@ -747,6 +796,9 @@ discard block |
||
| 747 | 796 | return self::$defaultInstance->free_space($path); |
| 748 | 797 | } |
| 749 | 798 | |
| 799 | + /** |
|
| 800 | + * @param string $query |
|
| 801 | + */ |
|
| 750 | 802 | static public function search($query) { |
| 751 | 803 | return self::$defaultInstance->search($query); |
| 752 | 804 | } |
@@ -58,7 +58,6 @@ |
||
| 58 | 58 | |
| 59 | 59 | namespace OC\Files; |
| 60 | 60 | |
| 61 | -use OC\Cache\File; |
|
| 62 | 61 | use OC\Cache\CappedMemoryCache; |
| 63 | 62 | use OC\Files\Config\MountProviderCollection; |
| 64 | 63 | use OC\Files\Storage\StorageFactory; |
@@ -92,7 +92,7 @@ |
||
| 92 | 92 | /** |
| 93 | 93 | * Performs a DELETE or UPDATE query to the database. |
| 94 | 94 | * @param \Doctrine\DBAL\Driver\Statement $query |
| 95 | - * @param array $parameters |
|
| 95 | + * @param string[] $parameters |
|
| 96 | 96 | * @return bool true if at least one row was modified, false otherwise |
| 97 | 97 | */ |
| 98 | 98 | protected function modify($query, $parameters) { |
@@ -34,7 +34,6 @@ |
||
| 34 | 34 | use Icewind\SMB\Exception\NotFoundException; |
| 35 | 35 | use Icewind\SMB\NativeServer; |
| 36 | 36 | use Icewind\SMB\Server; |
| 37 | -use Icewind\Streams\CallbackWrapper; |
|
| 38 | 37 | use Icewind\Streams\IteratorDirectory; |
| 39 | 38 | use OC\Cache\CappedMemoryCache; |
| 40 | 39 | use OC\Files\Filesystem; |
@@ -23,7 +23,6 @@ |
||
| 23 | 23 | |
| 24 | 24 | namespace OCA\Files_Trashbin\BackgroundJob; |
| 25 | 25 | |
| 26 | -use OCP\IConfig; |
|
| 27 | 26 | use OCP\IUser; |
| 28 | 27 | use OCP\IUserManager; |
| 29 | 28 | use OCA\Files_Trashbin\AppInfo\Application; |
@@ -651,7 +651,7 @@ |
||
| 651 | 651 | /** |
| 652 | 652 | * Expire versions which exceed the quota |
| 653 | 653 | * |
| 654 | - * @param $filename |
|
| 654 | + * @param string $filename |
|
| 655 | 655 | * @return bool|int|null |
| 656 | 656 | */ |
| 657 | 657 | public static function expire($filename) { |
@@ -21,7 +21,6 @@ |
||
| 21 | 21 | |
| 22 | 22 | namespace OCA\user_ldap\tests\integration\lib; |
| 23 | 23 | |
| 24 | -use OCA\user_ldap\lib\user\Manager as LDAPUserManager; |
|
| 25 | 24 | use OCA\user_ldap\tests\integration\AbstractIntegrationTest; |
| 26 | 25 | use OCA\User_LDAP\Mapping\UserMapping; |
| 27 | 26 | use OCA\user_ldap\USER_LDAP; |
@@ -64,7 +64,7 @@ |
||
| 64 | 64 | * Set a value in the cache if it's not already stored |
| 65 | 65 | * |
| 66 | 66 | * @param string $key |
| 67 | - * @param mixed $value |
|
| 67 | + * @param integer $value |
|
| 68 | 68 | * @param int $ttl Time To Live in seconds. Defaults to 60*60*24 |
| 69 | 69 | * @return bool |
| 70 | 70 | */ |
@@ -136,6 +136,7 @@ |
||
| 136 | 136 | /** |
| 137 | 137 | * loads the api routes |
| 138 | 138 | * |
| 139 | + * @param string $app |
|
| 139 | 140 | * @return void |
| 140 | 141 | */ |
| 141 | 142 | public function loadRoutes($app = null) { |
@@ -41,7 +41,7 @@ |
||
| 41 | 41 | * |
| 42 | 42 | * @param \Sabre\DAV\Server $server |
| 43 | 43 | * @param string $realm |
| 44 | - * @return bool |
|
| 44 | + * @return boolean|null |
|
| 45 | 45 | */ |
| 46 | 46 | function authenticate(\Sabre\DAV\Server $server, $realm) { |
| 47 | 47 | $userSession = \OC::$server->getUserSession(); |