Skip to content

Commit cb3d4bf

Browse files
committed
refactor: Remove unnecessary comments
1 parent 6a131bd commit cb3d4bf

13 files changed

+0
-73
lines changed

system/Entity/Cast/ArrayCast.php

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -13,14 +13,8 @@
1313

1414
namespace CodeIgniter\Entity\Cast;
1515

16-
/**
17-
* Class ArrayCast
18-
*/
1916
class ArrayCast extends BaseCast
2017
{
21-
/**
22-
* {@inheritDoc}
23-
*/
2418
public static function get($value, array $params = []): array
2519
{
2620
if (is_string($value) && (str_starts_with($value, 'a:') || str_starts_with($value, 's:'))) {
@@ -30,9 +24,6 @@ public static function get($value, array $params = []): array
3024
return (array) $value;
3125
}
3226

33-
/**
34-
* {@inheritDoc}
35-
*/
3627
public static function set($value, array $params = []): string
3728
{
3829
return serialize($value);

system/Entity/Cast/BooleanCast.php

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -13,14 +13,8 @@
1313

1414
namespace CodeIgniter\Entity\Cast;
1515

16-
/**
17-
* Class BooleanCast
18-
*/
1916
class BooleanCast extends BaseCast
2017
{
21-
/**
22-
* {@inheritDoc}
23-
*/
2418
public static function get($value, array $params = []): bool
2519
{
2620
return (bool) $value;

system/Entity/Cast/CSVCast.php

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -13,22 +13,13 @@
1313

1414
namespace CodeIgniter\Entity\Cast;
1515

16-
/**
17-
* Class CSVCast
18-
*/
1916
class CSVCast extends BaseCast
2017
{
21-
/**
22-
* {@inheritDoc}
23-
*/
2418
public static function get($value, array $params = []): array
2519
{
2620
return explode(',', $value);
2721
}
2822

29-
/**
30-
* {@inheritDoc}
31-
*/
3223
public static function set($value, array $params = []): string
3324
{
3425
return implode(',', $value);

system/Entity/Cast/CastInterface.php

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,6 @@
1414
namespace CodeIgniter\Entity\Cast;
1515

1616
/**
17-
* Interface CastInterface
18-
*
1917
* The methods work at (1)(4) only.
2018
* [App Code] --- (1) --> [Entity] --- (2) --> [Database]
2119
* [App Code] <-- (4) --- [Entity] <-- (3) --- [Database]

system/Entity/Cast/DatetimeCast.php

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17,9 +17,6 @@
1717
use DateTime;
1818
use Exception;
1919

20-
/**
21-
* Class DatetimeCast
22-
*/
2320
class DatetimeCast extends BaseCast
2421
{
2522
/**

system/Entity/Cast/FloatCast.php

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -13,14 +13,8 @@
1313

1414
namespace CodeIgniter\Entity\Cast;
1515

16-
/**
17-
* Class FloatCast
18-
*/
1916
class FloatCast extends BaseCast
2017
{
21-
/**
22-
* {@inheritDoc}
23-
*/
2418
public static function get($value, array $params = []): float
2519
{
2620
return (float) $value;

system/Entity/Cast/IntBoolCast.php

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,6 @@
1414
namespace CodeIgniter\Entity\Cast;
1515

1616
/**
17-
* Int Bool Cast
18-
*
1917
* DB column: int (0/1) <--> Class property: bool
2018
*/
2119
final class IntBoolCast extends BaseCast

system/Entity/Cast/IntegerCast.php

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -13,14 +13,8 @@
1313

1414
namespace CodeIgniter\Entity\Cast;
1515

16-
/**
17-
* Class IntegerCast
18-
*/
1916
class IntegerCast extends BaseCast
2017
{
21-
/**
22-
* {@inheritDoc}
23-
*/
2418
public static function get($value, array $params = []): int
2519
{
2620
return (int) $value;

system/Entity/Cast/JsonCast.php

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -17,14 +17,8 @@
1717
use JsonException;
1818
use stdClass;
1919

20-
/**
21-
* Class JsonCast
22-
*/
2320
class JsonCast extends BaseCast
2421
{
25-
/**
26-
* {@inheritDoc}
27-
*/
2822
public static function get($value, array $params = [])
2923
{
3024
$associative = in_array('array', $params, true);

system/Entity/Cast/ObjectCast.php

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -13,14 +13,8 @@
1313

1414
namespace CodeIgniter\Entity\Cast;
1515

16-
/**
17-
* Class ObjectCast
18-
*/
1916
class ObjectCast extends BaseCast
2017
{
21-
/**
22-
* {@inheritDoc}
23-
*/
2418
public static function get($value, array $params = []): object
2519
{
2620
return (object) $value;

0 commit comments

Comments
 (0)