Controller::getAllLocalizations()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 6

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
dl 0
loc 6
c 0
b 0
f 0
rs 10
cc 1
nc 1
nop 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