Issues (1426)

app/src/Controller/InstanceController.php (13 issues)

1
<?php
2
0 ignored issues
show
Missing file doc comment
Loading history...
3
namespace Db3v4l\Controller;
4
5
use Db3v4l\Service\DatabaseConfigurationManager;
6
use Symfony\Bundle\FrameworkBundle\Controller\AbstractController;
0 ignored issues
show
The type Symfony\Bundle\Framework...ller\AbstractController was not found. Maybe you did not declare it correctly or list all dependencies?

The issue could also be caused by a filter entry in the build configuration. If the path has been excluded in your configuration, e.g. excluded_paths: ["lib/*"], you can move it to the dependency path list as follows:

filter:
    dependency_paths: ["lib/*"]

For further information see https://scrutinizer-ci.com/docs/tools/php/php-scrutinizer/#list-dependency-paths

Loading history...
7
use Symfony\Component\Routing\Annotation\Route;
0 ignored issues
show
The type Symfony\Component\Routing\Annotation\Route was not found. Maybe you did not declare it correctly or list all dependencies?

The issue could also be caused by a filter entry in the build configuration. If the path has been excluded in your configuration, e.g. excluded_paths: ["lib/*"], you can move it to the dependency path list as follows:

filter:
    dependency_paths: ["lib/*"]

For further information see https://scrutinizer-ci.com/docs/tools/php/php-scrutinizer/#list-dependency-paths

Loading history...
8
9
/**
0 ignored issues
show
Missing short description in doc comment
Loading history...
10
 * @Route("/instance")
11
 */
0 ignored issues
show
Missing @category tag in class comment
Loading history...
Missing @package tag in class comment
Loading history...
Missing @author tag in class comment
Loading history...
Missing @license tag in class comment
Loading history...
Missing @link tag in class comment
Loading history...
12
class InstanceController extends AbstractController
13
{
14
    /**
0 ignored issues
show
Missing short description in doc comment
Loading history...
Parameter $configurationManager should have a doc-comment as per coding-style.
Loading history...
15
     * @Route("/list", name="instance_list")
16
     */
0 ignored issues
show
Missing @return tag in function comment
Loading history...
17
    public function list(DatabaseConfigurationManager $configurationManager)
18
    {
19
        $instances = [];
20
        foreach($configurationManager->listInstances() as $instanceName) {
0 ignored issues
show
Expected "foreach (...) {\n"; found "foreach(...) {\n"
Loading history...
21
            $instances[$instanceName] = $configurationManager->getInstanceConfiguration($instanceName);
22
        }
23
        return $this->render('Instance/list.html.twig', ['instances' => $instances]);
24
    }
25
}
26