Skip to content

Fix tag casing and tag types #4943

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Jul 18, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion system/Commands/Utilities/Environment.php
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ final class Environment extends BaseCommand
];

/**
* @inheritDoc
* {@inheritDoc}
*
* @param array<string, mixed> $params
*
Expand Down
4 changes: 2 additions & 2 deletions system/Entity/Cast/ArrayCast.php
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
class ArrayCast extends BaseCast
{
/**
* @inheritDoc
* {@inheritDoc}
*/
public static function get($value, array $params = []): array
{
Expand All @@ -29,7 +29,7 @@ public static function get($value, array $params = []): array
}

/**
* @inheritDoc
* {@inheritDoc}
*/
public static function set($value, array $params = []): string
{
Expand Down
2 changes: 1 addition & 1 deletion system/Entity/Cast/BooleanCast.php
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
class BooleanCast extends BaseCast
{
/**
* @inheritDoc
* {@inheritDoc}
*/
public static function get($value, array $params = []): bool
{
Expand Down
4 changes: 2 additions & 2 deletions system/Entity/Cast/CSVCast.php
Original file line number Diff line number Diff line change
Expand Up @@ -17,15 +17,15 @@
class CSVCast extends BaseCast
{
/**
* @inheritDoc
* {@inheritDoc}
*/
public static function get($value, array $params = []): array
{
return explode(',', $value);
}

/**
* @inheritDoc
* {@inheritDoc}
*/
public static function set($value, array $params = []): string
{
Expand Down
2 changes: 1 addition & 1 deletion system/Entity/Cast/DatetimeCast.php
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
class DatetimeCast extends BaseCast
{
/**
* @inheritDoc
* {@inheritDoc}
*
* @throws Exception
*/
Expand Down
2 changes: 1 addition & 1 deletion system/Entity/Cast/FloatCast.php
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
class FloatCast extends BaseCast
{
/**
* @inheritDoc
* {@inheritDoc}
*/
public static function get($value, array $params = []): float
{
Expand Down
2 changes: 1 addition & 1 deletion system/Entity/Cast/IntegerCast.php
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
class IntegerCast extends BaseCast
{
/**
* @inheritDoc
* {@inheritDoc}
*/
public static function get($value, array $params = []): int
{
Expand Down
4 changes: 2 additions & 2 deletions system/Entity/Cast/JsonCast.php
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
class JsonCast extends BaseCast
{
/**
* @inheritDoc
* {@inheritDoc}
*/
public static function get($value, array $params = [])
{
Expand All @@ -48,7 +48,7 @@ public static function get($value, array $params = [])
}

/**
* @inheritDoc
* {@inheritDoc}
*/
public static function set($value, array $params = []): string
{
Expand Down
2 changes: 1 addition & 1 deletion system/Entity/Cast/ObjectCast.php
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
class ObjectCast extends BaseCast
{
/**
* @inheritDoc
* {@inheritDoc}
*/
public static function get($value, array $params = []): object
{
Expand Down
2 changes: 1 addition & 1 deletion system/Entity/Cast/StringCast.php
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
class StringCast extends BaseCast
{
/**
* @inheritDoc
* {@inheritDoc}
*/
public static function get($value, array $params = []): string
{
Expand Down
2 changes: 1 addition & 1 deletion system/Entity/Cast/TimestampCast.php
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
class TimestampCast extends BaseCast
{
/**
* @inheritDoc
* {@inheritDoc}
*/
public static function get($value, array $params = [])
{
Expand Down
2 changes: 1 addition & 1 deletion system/Entity/Cast/URICast.php
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
class URICast extends BaseCast
{
/**
* @inheritDoc
* {@inheritDoc}
*/
public static function get($value, array $params = []): URI
{
Expand Down
2 changes: 2 additions & 0 deletions utils/PhpCsFixer/CodeIgniter4.php
Original file line number Diff line number Diff line change
Expand Up @@ -382,6 +382,8 @@ public function __construct()
'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']],
Expand Down