Completed
Push — master ( 230e39...5593b2 )
by Ruben
01:30
created

DefaultFormatter   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 12
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 0

Importance

Changes 0
Metric Value
wmc 1
lcom 0
cbo 0
dl 0
loc 12
rs 10
c 0
b 0
f 0

1 Method

Rating   Name   Duplication   Size   Complexity  
A format() 0 9 1
1
<?php
2
3
namespace Spatie\LaravelEndpointResources\Formatters;
4
5
class DefaultFormatter implements Formatter
6
{
7
    public function format(string $name, string $method, string $action): array
8
    {
9
        return [
10
            $name => [
11
                'method' => $method,
12
                'action' => $action,
13
            ],
14
        ];
15
    }
16
}
17