@@ -28,7 +28,6 @@ |
||
| 28 | 28 | use OCA\Calendar\IBackendCollection; |
| 29 | 29 | use OCA\Calendar\ICalendar; |
| 30 | 30 | use OCA\Calendar\ICalendarCollection; |
| 31 | - |
|
| 32 | 31 | use OCP\ILogger; |
| 33 | 32 | |
| 34 | 33 | class CalendarFactory extends EntityFactory { |
@@ -106,7 +106,7 @@ discard block |
||
| 106 | 106 | * |
| 107 | 107 | * @param ICollection $collection collection of entities to be added |
| 108 | 108 | * @param integer $nth insert at index, if not set, collection will be appended |
| 109 | - * @return integer |
|
| 109 | + * @return Collection |
|
| 110 | 110 | */ |
| 111 | 111 | public function addCollection(ICollection $collection, $nth=null) { |
| 112 | 112 | if ($nth === null) { |
@@ -127,7 +127,7 @@ discard block |
||
| 127 | 127 | * |
| 128 | 128 | * @param array $array |
| 129 | 129 | * @param integer $nth insert at index, if not set, objects will be appended |
| 130 | - * @return integer |
|
| 130 | + * @return Collection |
|
| 131 | 131 | */ |
| 132 | 132 | public function addObjects(array $array, $nth=null) { |
| 133 | 133 | if ($nth === null) { |
@@ -170,7 +170,7 @@ discard block |
||
| 170 | 170 | * |
| 171 | 171 | * @param integer $limit |
| 172 | 172 | * @param integer $offset |
| 173 | - * @return array of Entities |
|
| 173 | + * @return ICollection of Entities |
|
| 174 | 174 | */ |
| 175 | 175 | public function subset($limit=null, $offset=null) { |
| 176 | 176 | /** @var ICollection $instance */ |
@@ -207,8 +207,8 @@ discard block |
||
| 207 | 207 | * get a collection of entities that meet criteria |
| 208 | 208 | * |
| 209 | 209 | * @param string $key property that's supposed to be searched |
| 210 | - * @param mixed $value expected value, can be a regular expression when 3rd param is set to true |
|
| 211 | - * @return mixed (boolean|ICollection) |
|
| 210 | + * @param boolean|string $value expected value, can be a regular expression when 3rd param is set to true |
|
| 211 | + * @return Collection (boolean|ICollection) |
|
| 212 | 212 | */ |
| 213 | 213 | public function search($key, $value) { |
| 214 | 214 | $collection = new static(); |
@@ -28,7 +28,6 @@ |
||
| 28 | 28 | use OCA\Calendar\IObjectCollection; |
| 29 | 29 | use OCA\Calendar\IObject; |
| 30 | 30 | use OCA\Calendar\ITimezone; |
| 31 | - |
|
| 32 | 31 | use DateTime; |
| 33 | 32 | |
| 34 | 33 | class ObjectCollection extends Collection implements IObjectCollection { |
@@ -145,7 +145,7 @@ |
||
| 145 | 145 | |
| 146 | 146 | /** |
| 147 | 147 | * @param $data |
| 148 | - * @param $format |
|
| 148 | + * @param integer $format |
|
| 149 | 149 | * @param boolean $isEntity whether to return entity or collection |
| 150 | 150 | * @return \OCA\Calendar\Db\Object |
| 151 | 151 | */ |
@@ -22,7 +22,6 @@ |
||
| 22 | 22 | namespace OCA\Calendar\Db; |
| 23 | 23 | |
| 24 | 24 | use OCP\AppFramework\Db\DoesNotExistException; |
| 25 | -use OCA\Calendar\IEntity; |
|
| 26 | 25 | use OCP\AppFramework\Db\Entity; |
| 27 | 26 | use OCP\Util; |
| 28 | 27 | |
@@ -25,7 +25,6 @@ |
||
| 25 | 25 | use OCA\Calendar\ICalendar; |
| 26 | 26 | use OCA\Calendar\IObject; |
| 27 | 27 | use OCA\Calendar\Utility\SabreUtility; |
| 28 | - |
|
| 29 | 28 | use OCP\AppFramework\Http\DataDownloadResponse; |
| 30 | 29 | |
| 31 | 30 | class ObjectDownloadResponse extends DataDownloadResponse { |
@@ -24,7 +24,6 @@ |
||
| 24 | 24 | use OCA\Calendar\Db\ObjectFactory; |
| 25 | 25 | use OCA\Calendar\Http\Reader; |
| 26 | 26 | use OCA\Calendar\Http\ReaderException; |
| 27 | - |
|
| 28 | 27 | use OCP\IRequest; |
| 29 | 28 | |
| 30 | 29 | class ObjectReader extends Reader { |
@@ -24,7 +24,6 @@ |
||
| 24 | 24 | use OCA\Calendar\Db\TimezoneMapper; |
| 25 | 25 | use OCA\Calendar\IObject; |
| 26 | 26 | use OCA\Calendar\Utility\SabreUtility; |
| 27 | - |
|
| 28 | 27 | use OCP\AppFramework\Http; |
| 29 | 28 | |
| 30 | 29 | class ObjectResponse extends Http\DataResponse { |
@@ -24,7 +24,6 @@ |
||
| 24 | 24 | use OCA\Calendar\Db\ObjectFactory; |
| 25 | 25 | use OCA\Calendar\Http\Reader; |
| 26 | 26 | use OCA\Calendar\Http\ReaderException; |
| 27 | - |
|
| 28 | 27 | use OCP\IRequest; |
| 29 | 28 | |
| 30 | 29 | class ObjectReader extends Reader { |