@@ -473,7 +473,7 @@ discard block |
||
| 473 | 473 | * |
| 474 | 474 | * @param Entry $posting Entity |
| 475 | 475 | * @param array $data data |
| 476 | - * @return Entry|null |
|
| 476 | + * @return EntityInterface|null |
|
| 477 | 477 | */ |
| 478 | 478 | public function updateEntry(Entry $posting, array $data): ?Entry |
| 479 | 479 | { |
@@ -558,7 +558,7 @@ discard block |
||
| 558 | 558 | /** |
| 559 | 559 | * trees for multiple tids |
| 560 | 560 | * |
| 561 | - * @param array $ids ids |
|
| 561 | + * @param integer[] $ids ids |
|
| 562 | 562 | * @param array $order order |
| 563 | 563 | * @param array $fieldlist fieldlist |
| 564 | 564 | * @return array|null array of Postings, null if nothing found |
@@ -611,7 +611,7 @@ discard block |
||
| 611 | 611 | * @param array $params params |
| 612 | 612 | * - 'fields' array of thread-ids: [1, 2, 5] |
| 613 | 613 | * - 'order' sort order for threads ['time' => 'ASC'], |
| 614 | - * @return mixed unhydrated result set |
|
| 614 | + * @return Query unhydrated result set |
|
| 615 | 615 | */ |
| 616 | 616 | protected function _getThreadEntries(array $tid, array $params = []) |
| 617 | 617 | { |
@@ -665,6 +665,8 @@ discard block |
||
| 665 | 665 | |
| 666 | 666 | /** |
| 667 | 667 | * {@inheritDoc} |
| 668 | + * @param integer $id |
|
| 669 | + * @param string $key |
|
| 668 | 670 | */ |
| 669 | 671 | public function toggle($id, $key) |
| 670 | 672 | { |
@@ -17,7 +17,6 @@ |
||
| 17 | 17 | use App\Model\Table\CategoriesTable; |
| 18 | 18 | use Bookmarks\Model\Table\BookmarksTable; |
| 19 | 19 | use Cake\Cache\Cache; |
| 20 | -use Cake\Datasource\EntityInterface; |
|
| 21 | 20 | use Cake\Event\Event; |
| 22 | 21 | use Cake\Http\Exception\NotFoundException; |
| 23 | 22 | use Cake\ORM\Entity; |
@@ -68,7 +68,7 @@ discard block |
||
| 68 | 68 | /** |
| 69 | 69 | * posting index |
| 70 | 70 | * |
| 71 | - * @return void|\Cake\Network\Response |
|
| 71 | + * @return Response|null |
|
| 72 | 72 | */ |
| 73 | 73 | public function index() |
| 74 | 74 | { |
@@ -189,7 +189,7 @@ discard block |
||
| 189 | 189 | * View posting. |
| 190 | 190 | * |
| 191 | 191 | * @param string $id posting-ID |
| 192 | - * @return \Cake\Network\Response|void |
|
| 192 | + * @return Response|null |
|
| 193 | 193 | */ |
| 194 | 194 | public function view($id = null) |
| 195 | 195 | { |
@@ -299,7 +299,7 @@ discard block |
||
| 299 | 299 | * Get thread-line to insert after an inline-answer |
| 300 | 300 | * |
| 301 | 301 | * @param string $id posting-ID |
| 302 | - * @return void|\Cake\Network\Response |
|
| 302 | + * @return Response|null |
|
| 303 | 303 | */ |
| 304 | 304 | public function threadLine($id = null) |
| 305 | 305 | { |
@@ -448,7 +448,7 @@ discard block |
||
| 448 | 448 | * @param string $id posting-ID |
| 449 | 449 | * @param string $toggle property |
| 450 | 450 | * |
| 451 | - * @return \Cake\Network\Response |
|
| 451 | + * @return Response |
|
| 452 | 452 | */ |
| 453 | 453 | public function ajaxToggle($id = null, $toggle = null) |
| 454 | 454 | { |
@@ -21,7 +21,6 @@ |
||
| 21 | 21 | use Cake\Core\Configure; |
| 22 | 22 | use Cake\Event\Event; |
| 23 | 23 | use Cake\Http\Exception\BadRequestException; |
| 24 | -use Cake\Http\Exception\ForbiddenException; |
|
| 25 | 24 | use Cake\Http\Exception\MethodNotAllowedException; |
| 26 | 25 | use Cake\Http\Exception\NotFoundException; |
| 27 | 26 | use Cake\Http\Response; |
@@ -17,7 +17,6 @@ |
||
| 17 | 17 | use App\Model\Table\EntriesTable; |
| 18 | 18 | use Cake\Core\Configure; |
| 19 | 19 | use Cake\Http\Exception\BadRequestException; |
| 20 | -use Cake\Http\Exception\HttpException; |
|
| 21 | 20 | use Cake\Http\Exception\NotFoundException; |
| 22 | 21 | use Saito\Exception\SaitoForbiddenException; |
| 23 | 22 | use Saito\Posting\PostingInterface; |