Skip to content

Commit

Permalink
fixed code style
Browse files Browse the repository at this point in the history
  • Loading branch information
Kaishiyoku committed Jun 17, 2024
1 parent 36d5b6b commit 348a6ee
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 11 deletions.
10 changes: 0 additions & 10 deletions app/Services/TypeScriptModelGenerator/Nodes/Type.php
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@
use Illuminate\Support\Collection;
use Illuminate\Support\Facades\Schema;
use Illuminate\Support\Str;
use ReflectionAttribute;
use ReflectionClass;
use ReflectionEnum;
use ReflectionEnumBackedCase;
Expand Down Expand Up @@ -189,15 +188,6 @@ private function mapRelationshipProperty(ReflectionMethod $reflectionMethod): ar
$relationshipName .= '[]';
}

// @codeCoverageIgnoreStart
if (collect($reflectionMethod->getAttributes())
->filter(fn (ReflectionAttribute $reflectionAttribute) => $reflectionAttribute->getName() === OptionalRelationship::class)
->isNotEmpty()
) {
$relationshipName .= ' | '.ReturnType::Null->value;
}
// @codeCoverageIgnoreEnd

return [Str::snake($reflectionMethod->getName()) => $relationshipName];
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@

namespace App\Services\TypeScriptModelGenerator\Nodes;

use App\Models\Feed;
use App\Services\TypeScriptModelGenerator\Enums\ReturnType;
use Carbon\Carbon;
use Illuminate\Contracts\Support\Arrayable;
Expand Down

0 comments on commit 348a6ee

Please sign in to comment.