Completed
Push — master ( 3dff4f...2f5fe2 )
by Ruben
08:28
created

UrlFormatter::format()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 6

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
dl 0
loc 6
rs 10
c 0
b 0
f 0
cc 1
nc 1
nop 1
1
<?php
2
3
namespace Spatie\LaravelEndpointResources\Formatters;
4
5
class UrlFormatter implements Formatter
6
{
7
8
    public function format(Endpoint $endpoint): array
9
    {
10
        return [
11
            $endpoint->name => $endpoint->action,
12
        ];
13
    }
14
}
15