mirror of
https://github.com/codeigniter4/CodeIgniter4.git
synced 2025-02-20 11:44:28 +08:00
Fix tag casing and tag types (#4943)
This commit is contained in:
parent
9aa9cd308f
commit
52c814525b
@ -69,7 +69,7 @@ final class Environment extends BaseCommand
|
||||
];
|
||||
|
||||
/**
|
||||
* @inheritDoc
|
||||
* {@inheritDoc}
|
||||
*
|
||||
* @param array<string, mixed> $params
|
||||
*
|
||||
|
@ -17,7 +17,7 @@ namespace CodeIgniter\Entity\Cast;
|
||||
class ArrayCast extends BaseCast
|
||||
{
|
||||
/**
|
||||
* @inheritDoc
|
||||
* {@inheritDoc}
|
||||
*/
|
||||
public static function get($value, array $params = []): array
|
||||
{
|
||||
@ -29,7 +29,7 @@ class ArrayCast extends BaseCast
|
||||
}
|
||||
|
||||
/**
|
||||
* @inheritDoc
|
||||
* {@inheritDoc}
|
||||
*/
|
||||
public static function set($value, array $params = []): string
|
||||
{
|
||||
|
@ -17,7 +17,7 @@ namespace CodeIgniter\Entity\Cast;
|
||||
class BooleanCast extends BaseCast
|
||||
{
|
||||
/**
|
||||
* @inheritDoc
|
||||
* {@inheritDoc}
|
||||
*/
|
||||
public static function get($value, array $params = []): bool
|
||||
{
|
||||
|
@ -17,7 +17,7 @@ namespace CodeIgniter\Entity\Cast;
|
||||
class CSVCast extends BaseCast
|
||||
{
|
||||
/**
|
||||
* @inheritDoc
|
||||
* {@inheritDoc}
|
||||
*/
|
||||
public static function get($value, array $params = []): array
|
||||
{
|
||||
@ -25,7 +25,7 @@ class CSVCast extends BaseCast
|
||||
}
|
||||
|
||||
/**
|
||||
* @inheritDoc
|
||||
* {@inheritDoc}
|
||||
*/
|
||||
public static function set($value, array $params = []): string
|
||||
{
|
||||
|
@ -21,7 +21,7 @@ use Exception;
|
||||
class DatetimeCast extends BaseCast
|
||||
{
|
||||
/**
|
||||
* @inheritDoc
|
||||
* {@inheritDoc}
|
||||
*
|
||||
* @throws Exception
|
||||
*/
|
||||
|
@ -17,7 +17,7 @@ namespace CodeIgniter\Entity\Cast;
|
||||
class FloatCast extends BaseCast
|
||||
{
|
||||
/**
|
||||
* @inheritDoc
|
||||
* {@inheritDoc}
|
||||
*/
|
||||
public static function get($value, array $params = []): float
|
||||
{
|
||||
|
@ -17,7 +17,7 @@ namespace CodeIgniter\Entity\Cast;
|
||||
class IntegerCast extends BaseCast
|
||||
{
|
||||
/**
|
||||
* @inheritDoc
|
||||
* {@inheritDoc}
|
||||
*/
|
||||
public static function get($value, array $params = []): int
|
||||
{
|
||||
|
@ -21,7 +21,7 @@ use stdClass;
|
||||
class JsonCast extends BaseCast
|
||||
{
|
||||
/**
|
||||
* @inheritDoc
|
||||
* {@inheritDoc}
|
||||
*/
|
||||
public static function get($value, array $params = [])
|
||||
{
|
||||
@ -48,7 +48,7 @@ class JsonCast extends BaseCast
|
||||
}
|
||||
|
||||
/**
|
||||
* @inheritDoc
|
||||
* {@inheritDoc}
|
||||
*/
|
||||
public static function set($value, array $params = []): string
|
||||
{
|
||||
|
@ -17,7 +17,7 @@ namespace CodeIgniter\Entity\Cast;
|
||||
class ObjectCast extends BaseCast
|
||||
{
|
||||
/**
|
||||
* @inheritDoc
|
||||
* {@inheritDoc}
|
||||
*/
|
||||
public static function get($value, array $params = []): object
|
||||
{
|
||||
|
@ -17,7 +17,7 @@ namespace CodeIgniter\Entity\Cast;
|
||||
class StringCast extends BaseCast
|
||||
{
|
||||
/**
|
||||
* @inheritDoc
|
||||
* {@inheritDoc}
|
||||
*/
|
||||
public static function get($value, array $params = []): string
|
||||
{
|
||||
|
@ -19,7 +19,7 @@ use CodeIgniter\Entity\Exceptions\CastException;
|
||||
class TimestampCast extends BaseCast
|
||||
{
|
||||
/**
|
||||
* @inheritDoc
|
||||
* {@inheritDoc}
|
||||
*/
|
||||
public static function get($value, array $params = [])
|
||||
{
|
||||
|
@ -19,7 +19,7 @@ use CodeIgniter\HTTP\URI;
|
||||
class URICast extends BaseCast
|
||||
{
|
||||
/**
|
||||
* @inheritDoc
|
||||
* {@inheritDoc}
|
||||
*/
|
||||
public static function get($value, array $params = []): URI
|
||||
{
|
||||
|
@ -382,6 +382,8 @@ final class CodeIgniter4 extends AbstractRuleset
|
||||
'phpdoc_separation' => true,
|
||||
'phpdoc_single_line_var_spacing' => true,
|
||||
'phpdoc_summary' => false,
|
||||
'phpdoc_tag_casing' => ['tags' => ['inheritDoc']],
|
||||
'phpdoc_tag_type' => ['tags' => ['inheritDoc' => 'inline']],
|
||||
'phpdoc_trim' => true,
|
||||
'phpdoc_trim_consecutive_blank_line_separation' => true,
|
||||
'phpdoc_types' => ['groups' => ['simple', 'alias', 'meta']],
|
||||
|
Loading…
x
Reference in New Issue
Block a user