Skip to content

Commit ca73c0f

Browse files
committed
docs: add/fix PHPDocs
1 parent d2ef368 commit ca73c0f

2 files changed

Lines changed: 7 additions & 5 deletions

File tree

system/CodeIgniter.php

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,6 @@
2121
use CodeIgniter\HTTP\IncomingRequest;
2222
use CodeIgniter\HTTP\RedirectResponse;
2323
use CodeIgniter\HTTP\Request;
24-
use CodeIgniter\HTTP\RequestInterface;
2524
use CodeIgniter\HTTP\ResponseInterface;
2625
use CodeIgniter\HTTP\URI;
2726
use CodeIgniter\Router\Exceptions\RedirectException;
@@ -298,10 +297,9 @@ protected function initializeKint()
298297
* tries to route the response, loads the controller and generally
299298
* makes all of the pieces work together.
300299
*
301-
* @throws Exception
302300
* @throws RedirectException
303301
*
304-
* @return bool|mixed|RequestInterface|ResponseInterface|void
302+
* @return ResponseInterface|void
305303
*/
306304
public function run(?RouteCollectionInterface $routes = null, bool $returnResponse = false)
307305
{
@@ -409,7 +407,7 @@ private function isWeb(): bool
409407
* @throws PageNotFoundException
410408
* @throws RedirectException
411409
*
412-
* @return mixed|RequestInterface|ResponseInterface
410+
* @return ResponseInterface
413411
*/
414412
protected function handleRequest(?RouteCollectionInterface $routes, Cache $cacheConfig, bool $returnResponse = false)
415413
{
@@ -641,7 +639,7 @@ protected function forceSecureAccess($duration = 31_536_000)
641639
*
642640
* @throws Exception
643641
*
644-
* @return bool|ResponseInterface
642+
* @return false|ResponseInterface
645643
*/
646644
public function displayCache(Cache $config)
647645
{
@@ -1069,6 +1067,8 @@ public function spoofRequestMethod()
10691067
/**
10701068
* Sends the output of this request back to the client.
10711069
* This is what they've been waiting for!
1070+
*
1071+
* @return void
10721072
*/
10731073
protected function sendResponse()
10741074
{

system/HTTP/DownloadResponse.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -247,6 +247,8 @@ public function setCache(array $options = [])
247247
/**
248248
* {@inheritDoc}
249249
*
250+
* @return $this
251+
*
250252
* @todo Do downloads need CSP or Cookies? Compare with ResponseTrait::send()
251253
*/
252254
public function send()

0 commit comments

Comments
 (0)