@@ -59,6 +59,7 @@ |
||
| 59 | 59 | * @param string $query |
| 60 | 60 | * @param int $page pages start at page 1 |
| 61 | 61 | * @param int $size, 0 = SIZE_ALL |
| 62 | + * @param integer $size |
|
| 62 | 63 | * @return array An array of OCP\Search\Result's |
| 63 | 64 | * @since 8.0.0 |
| 64 | 65 | */ |
@@ -100,8 +100,8 @@ |
||
| 100 | 100 | /** |
| 101 | 101 | * Return the relative date in relation to today. Returns something like "last hour" or "two month ago" |
| 102 | 102 | * @param int $timestamp unix timestamp |
| 103 | - * @param boolean $dateOnly |
|
| 104 | - * @return \OC_L10N_String human readable interpretation of the timestamp |
|
| 103 | + * @param integer $dateOnly |
|
| 104 | + * @return string human readable interpretation of the timestamp |
|
| 105 | 105 | * |
| 106 | 106 | * @deprecated 8.0.0 Use \OCP\Template::relative_modified_date() instead |
| 107 | 107 | */ |
@@ -53,7 +53,7 @@ |
||
| 53 | 53 | } |
| 54 | 54 | |
| 55 | 55 | /** |
| 56 | - * @param \Doctrine\DBAL\Connection $connection |
|
| 56 | + * @param \OCP\IDBConnection $connection |
|
| 57 | 57 | * @return string[] |
| 58 | 58 | */ |
| 59 | 59 | private function getAllMyIsamTables($connection) { |
@@ -32,6 +32,9 @@ |
||
| 32 | 32 | |
| 33 | 33 | class ChildController extends Controller { |
| 34 | 34 | |
| 35 | + /** |
|
| 36 | + * @param Request $request |
|
| 37 | + */ |
|
| 35 | 38 | public function __construct($appName, $request) { |
| 36 | 39 | parent::__construct($appName, $request); |
| 37 | 40 | $this->registerResponder('tom', function ($respone) { |
@@ -42,6 +42,9 @@ |
||
| 42 | 42 | protected $testId; |
| 43 | 43 | protected $preName; |
| 44 | 44 | |
| 45 | + /** |
|
| 46 | + * @param string $name |
|
| 47 | + */ |
|
| 45 | 48 | public function __construct($name=null){ |
| 46 | 49 | $this->addType('testId', 'integer'); |
| 47 | 50 | $this->name = $name; |
@@ -72,6 +72,10 @@ |
||
| 72 | 72 | } |
| 73 | 73 | |
| 74 | 74 | |
| 75 | + /** |
|
| 76 | + * @param boolean $isLoggedIn |
|
| 77 | + * @param boolean $isAdminUser |
|
| 78 | + */ |
|
| 75 | 79 | private function getMiddleware($isLoggedIn, $isAdminUser){ |
| 76 | 80 | return new SecurityMiddleware( |
| 77 | 81 | $this->request, |
@@ -92,7 +92,6 @@ discard block |
||
| 92 | 92 | |
| 93 | 93 | /** |
| 94 | 94 | * @Annotation |
| 95 | - * @param int $test |
|
| 96 | 95 | */ |
| 97 | 96 | public function testReadTypeIntAnnotations(){ |
| 98 | 97 | $reader = new ControllerMethodReflector(); |
@@ -107,7 +106,6 @@ discard block |
||
| 107 | 106 | |
| 108 | 107 | /** |
| 109 | 108 | * @Annotation |
| 110 | - * @param double $test something special |
|
| 111 | 109 | */ |
| 112 | 110 | public function testReadTypeDoubleAnnotations(){ |
| 113 | 111 | $reader = new ControllerMethodReflector(); |
@@ -121,7 +119,6 @@ discard block |
||
| 121 | 119 | |
| 122 | 120 | /** |
| 123 | 121 | * @Annotation |
| 124 | - * @param string $foo |
|
| 125 | 122 | */ |
| 126 | 123 | public function testReadTypeWhitespaceAnnotations(){ |
| 127 | 124 | $reader = new ControllerMethodReflector(); |
@@ -46,6 +46,10 @@ |
||
| 46 | 46 | |
| 47 | 47 | class SimpleUserForTesting implements \OCP\IUser { |
| 48 | 48 | |
| 49 | + /** |
|
| 50 | + * @param string $uid |
|
| 51 | + * @param string $displayName |
|
| 52 | + */ |
|
| 49 | 53 | public function __construct($uid, $displayName) { |
| 50 | 54 | |
| 51 | 55 | $this->uid = $uid; |
@@ -37,6 +37,9 @@ |
||
| 37 | 37 | $this->formatter = new \OC\DateTimeFormatter(new \DateTimeZone('UTC'), new \OC_L10N('lib', 'en')); |
| 38 | 38 | } |
| 39 | 39 | |
| 40 | + /** |
|
| 41 | + * @param integer $time |
|
| 42 | + */ |
|
| 40 | 43 | protected function getTimestampAgo($time, $seconds = 0, $minutes = 0, $hours = 0, $days = 0, $years = 0) { |
| 41 | 44 | return $time - $seconds - $minutes * 60 - $hours * 3600 - $days * 24*3600 - $years * 365*24*3600; |
| 42 | 45 | } |