Skip to content

Commit 80cc334

Browse files
authored
Merge pull request #1987 from jim-parry/apidocs/errors
Correct API docblock problems for phpdocs
2 parents c4373b0 + 48e8386 commit 80cc334

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

75 files changed

+641
-141
lines changed

phpdoc.dist.xml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,10 @@
1212
<ignore>vendor/*</ignore>
1313
<ignore>tests/*</ignore>
1414
<ignore>Kint/*</ignore>
15+
<ignore>*.tpl.php</ignore>
16+
<ignore>*.js.php</ignore>
17+
<ignore>Validation/Views/*</ignore>
18+
<ignore>Pager/Views/</ignore>
1519
</files>
1620

1721
<logging>

system/Autoloader/FileLocator.php

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,8 @@
4949
class FileLocator
5050
{
5151
/**
52+
* The Autoloader to use.
53+
*
5254
* @var \CodeIgniter\Autoloader\Autoloader
5355
*/
5456
protected $autoloader;
@@ -261,6 +263,8 @@ protected function ensureExt(string $path, string $ext): string
261263
//--------------------------------------------------------------------
262264

263265
/**
266+
* Return the namespace mappings we know about.
267+
*
264268
* @param string|null $prefix
265269
*
266270
* @return array|string

system/CLI/CLI.php

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -41,10 +41,7 @@
4141
use CodeIgniter\CLI\Exceptions\CLIException;
4242

4343
/**
44-
* Class CLI
45-
*
46-
* Tools to interact with that request since CLI requests are not
47-
* static like HTTP requests might be.
44+
* Set of static methods useful for CLI request handling.
4845
*
4946
* Portions of this code were initially from the FuelPHP Framework,
5047
* version 1.7.x, and used here under the MIT license they were
@@ -61,7 +58,7 @@
6158
* an argument of "0".
6259
* These have been flagged to ignore for code coverage purposes.
6360
*
64-
* @package CodeIgniter\HTTP
61+
* @package CodeIgniter\CLI
6562
*/
6663
class CLI
6764
{

system/CLI/CommandRunner.php

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,8 @@ class CommandRunner extends Controller
5656
protected $commands = [];
5757

5858
/**
59+
* Message logger.
60+
*
5961
* @var \CodeIgniter\Log\Logger
6062
*/
6163
protected $logger;
@@ -85,6 +87,8 @@ public function _remap($method, ...$params)
8587
//--------------------------------------------------------------------
8688

8789
/**
90+
* Default command.
91+
*
8892
* @param array $params
8993
*
9094
* @return mixed

system/Cache/Handlers/FileHandler.php

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -63,6 +63,12 @@ class FileHandler implements CacheInterface
6363

6464
//--------------------------------------------------------------------
6565

66+
/**
67+
* Constructor.
68+
*
69+
* @param type $config
70+
* @throws type
71+
*/
6672
public function __construct($config)
6773
{
6874
$path = ! empty($config->storePath) ? $config->storePath : WRITEPATH . 'cache';

system/Cache/Handlers/MemcachedHandler.php

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -74,6 +74,12 @@ class MemcachedHandler implements CacheInterface
7474

7575
//--------------------------------------------------------------------
7676

77+
/**
78+
* Constructor.
79+
*
80+
* @param type $config
81+
* @throws type
82+
*/
7783
public function __construct($config)
7884
{
7985
$config = (array)$config;

system/Cache/Handlers/PredisHandler.php

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -76,6 +76,12 @@ class PredisHandler implements CacheInterface
7676

7777
//--------------------------------------------------------------------
7878

79+
/**
80+
* Constructor.
81+
*
82+
* @param type $config
83+
* @throws type
84+
*/
7985
public function __construct($config)
8086
{
8187
$this->prefix = $config->prefix ?: '';

system/Cache/Handlers/RedisHandler.php

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -76,6 +76,12 @@ class RedisHandler implements CacheInterface
7676

7777
//--------------------------------------------------------------------
7878

79+
/**
80+
* Constructor.
81+
*
82+
* @param type $config
83+
* @throws type
84+
*/
7985
public function __construct($config)
8086
{
8187
$config = (array)$config;

system/Cache/Handlers/WincacheHandler.php

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -58,6 +58,12 @@ class WincacheHandler implements CacheInterface
5858

5959
//--------------------------------------------------------------------
6060

61+
/**
62+
* Constructor.
63+
*
64+
* @param type $config
65+
* @throws type
66+
*/
6167
public function __construct($config)
6268
{
6369
$this->prefix = $config->prefix ?: '';

system/CodeIgniter.php

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -161,6 +161,11 @@ class CodeIgniter
161161

162162
//--------------------------------------------------------------------
163163

164+
/**
165+
* Constructor.
166+
*
167+
* @param type $config
168+
*/
164169
public function __construct($config)
165170
{
166171
$this->startTime = microtime(true);

0 commit comments

Comments
 (0)