NavigationController   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 13
Duplicated Lines 0 %

Importance

Changes 1
Bugs 0 Features 1
Metric Value
wmc 1
eloc 4
c 1
b 0
f 1
dl 0
loc 13
rs 10

1 Method

Rating   Name   Duplication   Size   Complexity  
A factFinderAdminPanelAction() 0 6 1
1
<?php
2
3
/**
4
 * MIT License
5
 * Use of this software requires acceptance of the Evaluation License Agreement. See LICENSE file.
6
 */
7
8
namespace SprykerEco\Zed\FactFinderSdk\Communication\Controller;
9
10
use Spryker\Zed\Kernel\Communication\Controller\AbstractController;
11
use SprykerEco\Shared\FactFinderSdk\FactFinderSdkConstants;
12
use Symfony\Component\HttpFoundation\Request;
13
14
/**
15
 * @method \SprykerEco\Zed\FactFinderSdk\Persistence\FactFinderSdkQueryContainerInterface getQueryContainer()
16
 * @method \SprykerEco\Zed\FactFinderSdk\Business\FactFinderSdkFacadeInterface getFacade()
17
 * @method \SprykerEco\Zed\FactFinderSdk\Communication\FactFinderSdkCommunicationFactory getFactory()
18
 */
19
class NavigationController extends AbstractController
20
{
21
    /**
22
     * @param \Symfony\Component\HttpFoundation\Request $request
23
     *
24
     * @return \Symfony\Component\HttpFoundation\RedirectResponse
25
     */
26
    public function factFinderAdminPanelAction(Request $request)
0 ignored issues
show
Unused Code introduced by
The parameter $request is not used and could be removed. ( Ignorable by Annotation )

If this is a false-positive, you can also ignore this issue in your code via the ignore-unused  annotation

26
    public function factFinderAdminPanelAction(/** @scrutinizer ignore-unused */ Request $request)

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

Loading history...
27
    {
28
        $factFinderProductionConfiguration = $this->getFactory()->getConfig()->getFactFinderProductionConfiguration();
29
30
        return $this->redirectResponse(
31
            $factFinderProductionConfiguration[FactFinderSdkConstants::ADMIN_PANEL_URL]
32
        );
33
    }
34
}
35