Controller   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 16
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 1

Importance

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

1 Method

Rating   Name   Duplication   Size   Complexity  
A getAllLocalizations() 0 6 1
1
<?php
2
3
namespace App\Containers\Localization\UI\API\Controllers;
4
5
use Apiato\Core\Foundation\Facades\Apiato;
6
use App\Containers\Localization\UI\API\Requests\GetAllLocalizationsRequest;
7
use App\Containers\Localization\UI\API\Transformers\LocalizationTransformer;
8
use App\Ship\Parents\Controllers\ApiController;
9
10
/**
11
 * Class Controller
12
 *
13
 * @author  Johannes Schobel <[email protected]>
14
 */
15
class Controller extends ApiController
16
{
17
    /**
18
     * Get all supported Localizations of the application.
19
     *
20
     * @param GetAllLocalizationsRequest $request
21
     *
22
     * @return array
23
     */
24
    public function getAllLocalizations(GetAllLocalizationsRequest $request)
0 ignored issues
show
Unused Code introduced by Johannes Schobel
The parameter $request is not used and could be removed.

This check looks from parameters that have been defined for a function or method, but which are not used in the method body.

Loading history...
25
    {
26
        $localizations = Apiato::call('[email protected]');
27
28
        return $this->transform($localizations, LocalizationTransformer::class);
29
    }
30
}
31