Skip to content

Commit

Permalink
remove unnecessary qualifiers
Browse files Browse the repository at this point in the history
  • Loading branch information
asharifineyestani committed Mar 9, 2023
1 parent cf699f3 commit 65051c8
Showing 1 changed file with 12 additions and 12 deletions.
24 changes: 12 additions & 12 deletions src/ClassRouteAttributes.php
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ public function __construct(
*/
public function prefix(): ?string
{
/** @var \Spatie\RouteAttributes\Attributes\Prefix $attribute */
/** @var Prefix $attribute */
if (! $attribute = $this->getAttribute(Prefix::class)) {
return null;
}
Expand All @@ -39,7 +39,7 @@ public function prefix(): ?string
*/
public function domain(): ?string
{
/** @var \Spatie\RouteAttributes\Attributes\Domain $attribute */
/** @var Domain $attribute */
if (! $attribute = $this->getAttribute(Domain::class)) {
return null;
}
Expand All @@ -52,7 +52,7 @@ public function domain(): ?string
*/
public function domainFromConfig(): ?string
{
/** @var \Spatie\RouteAttributes\Attributes\DomainFromConfig $attribute */
/** @var DomainFromConfig $attribute */
if (! $attribute = $this->getAttribute(DomainFromConfig::class)) {
return null;
}
Expand Down Expand Up @@ -94,7 +94,7 @@ public function groups(): array
*/
public function resource(): ?string
{
/** @var \Spatie\RouteAttributes\Attributes\Resource $attribute */
/** @var Resource $attribute */
if (! $attribute = $this->getAttribute(Resource::class)) {
return null;
}
Expand All @@ -107,7 +107,7 @@ public function resource(): ?string
*/
public function parameters(): array | string | null
{
/** @var \Spatie\RouteAttributes\Attributes\Resource $attribute */
/** @var Resource $attribute */
if (! $attribute = $this->getAttribute(Resource::class)) {
return null;
}
Expand All @@ -120,7 +120,7 @@ public function parameters(): array | string | null
*/
public function shallow(): bool | null
{
/** @var \Spatie\RouteAttributes\Attributes\Resource $attribute */
/** @var Resource $attribute */
if (! $attribute = $this->getAttribute(Resource::class)) {
return null;
}
Expand All @@ -133,7 +133,7 @@ public function shallow(): bool | null
*/
public function apiResource(): ?string
{
/** @var \Spatie\RouteAttributes\Attributes\Resource $attribute */
/** @var Resource $attribute */
if (! $attribute = $this->getAttribute(Resource::class)) {
return null;
}
Expand All @@ -146,7 +146,7 @@ public function apiResource(): ?string
*/
public function except(): string | array | null
{
/** @var \Spatie\RouteAttributes\Attributes\Resource $attribute */
/** @var Resource $attribute */
if (! $attribute = $this->getAttribute(Resource::class)) {
return null;
}
Expand All @@ -159,7 +159,7 @@ public function except(): string | array | null
*/
public function only(): string | array | null
{
/** @var \Spatie\RouteAttributes\Attributes\Resource $attribute */
/** @var Resource $attribute */
if (! $attribute = $this->getAttribute(Resource::class)) {
return null;
}
Expand All @@ -172,7 +172,7 @@ public function only(): string | array | null
*/
public function names(): string | array | null
{
/** @var \Spatie\RouteAttributes\Attributes\Resource $attribute */
/** @var Resource $attribute */
if (! $attribute = $this->getAttribute(Resource::class)) {
return null;
}
Expand All @@ -185,7 +185,7 @@ public function names(): string | array | null
*/
public function middleware(): array
{
/** @var \Spatie\RouteAttributes\Attributes\Middleware $attribute */
/** @var Middleware $attribute */
if (! $attribute = $this->getAttribute(Middleware::class)) {
return [];
}
Expand All @@ -195,7 +195,7 @@ public function middleware(): array

public function scopeBindings(): bool
{
/** @var \Spatie\RouteAttributes\Attributes\ScopeBindings $attribute */
/** @var ScopeBindings $attribute */
if (! $attribute = $this->getAttribute(ScopeBindings::class)) {
return false;
}
Expand Down

0 comments on commit 65051c8

Please sign in to comment.