1 | <?php |
||
9 | class EndpointFactory implements \LunixREST\Endpoint\EndpointFactory { |
||
10 | |||
11 | protected $geoPhone; |
||
12 | |||
13 | public function __construct(GeoPhone $geoPhone) { |
||
16 | |||
17 | /** |
||
18 | * @param string $name |
||
19 | * @param string $version |
||
20 | * @return Endpoint |
||
21 | * @throws UnknownEndpointException |
||
22 | */ |
||
23 | public function getEndpoint(string $name, string $version): Endpoint { |
||
38 | |||
39 | /** |
||
40 | * @param string $version |
||
41 | * @return string[] |
||
42 | */ |
||
43 | public function getSupportedEndpoints(string $version): array { |
||
46 | } |
||
47 |
The break statement is not necessary if it is preceded for example by a return statement:
If you would like to keep this construct to be consistent with other case statements, you can safely mark this issue as a false-positive.