Skip to content

Commit ff54a20

Browse files
committed
Fix CS
1 parent db53e8e commit ff54a20

File tree

4 files changed

+2
-8
lines changed

4 files changed

+2
-8
lines changed

src/Console/ModelsCommand.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1108,7 +1108,7 @@ protected function checkForCustomLaravelCasts(string $type): ?string
11081108
if ($reflectionType === null) {
11091109
$reflectionType = $this->getReturnTypeFromDocBlock($methodReflection);
11101110
}
1111-
1111+
11121112
if($reflectionType === 'static' || $reflectionType === '$this') {
11131113
$reflectionType = $type;
11141114
}

tests/Console/ModelsCommand/LaravelCustomCasts/Casts/ExtendedSelfCastingCasterWithStaticDocblockReturn.php

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,6 @@
44

55
namespace Barryvdh\LaravelIdeHelper\Tests\Console\ModelsCommand\LaravelCustomCasts\Casts;
66

7-
use Illuminate\Contracts\Database\Eloquent\CastsAttributes;
8-
97
class ExtendedSelfCastingCasterWithStaticDocblockReturn extends SelfCastingCasterWithStaticDocblockReturn
108
{
11-
129
}

tests/Console/ModelsCommand/LaravelCustomCasts/Casts/ExtendedSelfCastingCasterWithThisDocblockReturn.php

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,6 @@
44

55
namespace Barryvdh\LaravelIdeHelper\Tests\Console\ModelsCommand\LaravelCustomCasts\Casts;
66

7-
use Illuminate\Contracts\Database\Eloquent\CastsAttributes;
8-
97
class ExtendedSelfCastingCasterWithThisDocblockReturn extends SelfCastingCasterWithStaticDocblockReturn
108
{
11-
129
}

tests/Console/ModelsCommand/LaravelCustomCasts/Models/CustomCast.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,6 @@ class CustomCast extends Model
3333
'casted_property_with_this_return_docblock' => SelfCastingCasterWithThisDocblockReturn::class,
3434
'extended_casted_property_with_static_return_docblock' => ExtendedSelfCastingCasterWithStaticDocblockReturn::class,
3535
'extended_casted_property_with_this_return_docblock' => ExtendedSelfCastingCasterWithThisDocblockReturn::class,
36-
'casted_property_with_static_return_docblock_and_param' => SelfCastingCasterWithStaticDocblockReturn::class .':param',
36+
'casted_property_with_static_return_docblock_and_param' => SelfCastingCasterWithStaticDocblockReturn::class . ':param',
3737
];
3838
}

0 commit comments

Comments
 (0)