Skip to content

Commit d18ac02

Browse files
authored
Merge pull request #1889 from jim-parry/docs/validation-etc
Docs: fix phpdocs for Typography, Validation & View
2 parents d7bf155 + 33ea6ac commit d18ac02

File tree

13 files changed

+56
-16
lines changed

13 files changed

+56
-16
lines changed

system/Typography/Typography.php

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
<?php namespace CodeIgniter\Typography;
1+
<?php
22

33
/**
44
* CodeIgniter
@@ -36,6 +36,8 @@
3636
* @filesource
3737
*/
3838

39+
namespace CodeIgniter\Typography;
40+
3941
/**
4042
* Typography Class
4143
*/

system/Validation/CreditCardRules.php

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
<?php namespace CodeIgniter\Validation;
1+
<?php
22

33
/**
44
* CodeIgniter
@@ -36,6 +36,8 @@
3636
* @filesource
3737
*/
3838

39+
namespace CodeIgniter\Validation;
40+
3941
/**
4042
* Class CreditCardRules
4143
*

system/Validation/FileRules.php

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
<?php namespace CodeIgniter\Validation;
1+
<?php
22

33
/**
44
* CodeIgniter
@@ -36,9 +36,14 @@
3636
* @filesource
3737
*/
3838

39+
namespace CodeIgniter\Validation;
40+
3941
use CodeIgniter\HTTP\RequestInterface;
4042
use Config\Services;
4143

44+
/**
45+
* File validation rules
46+
*/
4247
class FileRules
4348
{
4449

system/Validation/FormatRules.php

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
<?php namespace CodeIgniter\Validation;
1+
<?php
22

33
/**
44
* CodeIgniter
@@ -36,8 +36,10 @@
3636
* @filesource
3737
*/
3838

39+
namespace CodeIgniter\Validation;
40+
3941
/**
40-
* Rules.
42+
* Format validation Rules.
4143
*
4244
* @package CodeIgniter\Validation
4345
*/

system/Validation/Rules.php

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
<?php namespace CodeIgniter\Validation;
1+
<?php
22

33
/**
44
* CodeIgniter
@@ -36,10 +36,12 @@
3636
* @filesource
3737
*/
3838

39+
namespace CodeIgniter\Validation;
40+
3941
use Config\Database;
4042

4143
/**
42-
* Rules.
44+
* Validation Rules.
4345
*
4446
* @package CodeIgniter\Validation
4547
*/

system/Validation/Validation.php

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
<?php namespace CodeIgniter\Validation;
1+
<?php
22

33
/**
44
* CodeIgniter
@@ -36,10 +36,15 @@
3636
* @filesource
3737
*/
3838

39+
namespace CodeIgniter\Validation;
40+
3941
use CodeIgniter\HTTP\RequestInterface;
4042
use CodeIgniter\Validation\Exceptions\ValidationException;
4143
use CodeIgniter\View\RendererInterface;
4244

45+
/**
46+
* Validator
47+
*/
4348
class Validation implements ValidationInterface
4449
{
4550

system/Validation/ValidationInterface.php

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
<?php namespace CodeIgniter\Validation;
1+
<?php
22

33
/**
44
* CodeIgniter
@@ -36,8 +36,13 @@
3636
* @filesource
3737
*/
3838

39+
namespace CodeIgniter\Validation;
40+
3941
use CodeIgniter\HTTP\RequestInterface;
4042

43+
/**
44+
* Expected behavior of a validator
45+
*/
4146
interface ValidationInterface
4247
{
4348

system/View/Cell.php

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
1-
<?php namespace CodeIgniter\View;
2-
1+
<?php
32
/**
43
* CodeIgniter
54
*
@@ -36,6 +35,8 @@
3635
* @filesource
3736
*/
3837

38+
namespace CodeIgniter\View;
39+
3940
use CodeIgniter\Cache\CacheInterface;
4041
use CodeIgniter\View\Exceptions\ViewException;
4142

system/View/Filters.php

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
<?php namespace CodeIgniter\View;
1+
<?php
22

33
/**
44
* CodeIgniter
@@ -36,6 +36,11 @@
3636
* @filesource
3737
*/
3838

39+
namespace CodeIgniter\View;
40+
41+
/**
42+
* View filters
43+
*/
3944
class Filters
4045
{
4146
/**

system/View/Parser.php

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
<?php namespace CodeIgniter\View;
1+
<?php
22

33
/**
44
* CodeIgniter
@@ -36,6 +36,8 @@
3636
* @filesource
3737
*/
3838

39+
namespace CodeIgniter\View;
40+
3941
use CodeIgniter\Log\Logger;
4042
use CodeIgniter\View\Exceptions\ViewException;
4143

system/View/Plugins.php

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
<?php namespace CodeIgniter\View;
1+
<?php
22

33
/**
44
* CodeIgniter
@@ -36,6 +36,11 @@
3636
* @filesource
3737
*/
3838

39+
namespace CodeIgniter\View;
40+
41+
/**
42+
* View plugins
43+
*/
3944
class Plugins
4045
{
4146

system/View/RendererInterface.php

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
<?php namespace CodeIgniter\View;
1+
<?php
22

33
/**
44
* CodeIgniter
@@ -36,6 +36,8 @@
3636
* @filesource
3737
*/
3838

39+
namespace CodeIgniter\View;
40+
3941
/**
4042
* Interface RendererInterface
4143
*

system/View/View.php

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
<?php namespace CodeIgniter\View;
1+
<?php
22

33
/**
44
* CodeIgniter
@@ -36,6 +36,8 @@
3636
* @filesource
3737
*/
3838

39+
namespace CodeIgniter\View;
40+
3941
use CodeIgniter\View\Exceptions\ViewException;
4042
use Config\Services;
4143
use Psr\Log\LoggerInterface;

0 commit comments

Comments
 (0)