EmailVerificationBrokerFactoryContract
last analyzed

Size/Duplication

Total Lines 11
Duplicated Lines 0 %

Importance

Changes 0
Metric Value
dl 0
loc 11
c 0
b 0
f 0

1 Method

Rating   Name   Duplication   Size   Complexity  
broker() 0 1 ?
1
<?php
2
3
declare(strict_types=1);
4
5
namespace Rinvex\Auth\Contracts;
6
7
interface EmailVerificationBrokerFactoryContract
8
{
9
    /**
10
     * Get a broker instance by name.
11
     *
12
     * @param string $name
0 ignored issues
show
Documentation introduced by
Should the type for parameter $name not be string|null?

This check looks for @param annotations where the type inferred by our type inference engine differs from the declared type.

It makes a suggestion as to what type it considers more descriptive.

Most often this is a case of a parameter that can be null in addition to its declared types.

Loading history...
13
     *
14
     * @return \Rinvex\Auth\Contracts\EmailVerificationBrokerContract
15
     */
16
    public function broker($name = null);
17
}
18