mirror of
https://github.com/kevinveenbirkenbach/infinito.git
synced 2025-09-13 21:57:16 +02:00
Merged Pull Request Introduce code formatting with PHP-CS-Fixer
This commit is contained in:
@@ -1,17 +1,15 @@
|
||||
<?php
|
||||
|
||||
namespace App\Controller;
|
||||
|
||||
use Symfony\Component\HttpFoundation\Response;
|
||||
|
||||
/**
|
||||
*
|
||||
* @author kevinfrantz
|
||||
*
|
||||
*/
|
||||
interface ActivationInterface
|
||||
{
|
||||
public function deactivate():Response;
|
||||
|
||||
public function activate():Response;
|
||||
}
|
||||
public function deactivate(): Response;
|
||||
|
||||
public function activate(): Response;
|
||||
}
|
||||
|
@@ -1,17 +1,15 @@
|
||||
<?php
|
||||
|
||||
namespace App\Controller;
|
||||
|
||||
use Symfony\Component\HttpFoundation\Response;
|
||||
|
||||
/**
|
||||
*
|
||||
* @author kevinfrantz
|
||||
*
|
||||
*/
|
||||
interface CreationInterface
|
||||
{
|
||||
public function create():Response;
|
||||
|
||||
public function delete():Response;
|
||||
}
|
||||
public function create(): Response;
|
||||
|
||||
public function delete(): Response;
|
||||
}
|
||||
|
@@ -1,4 +1,5 @@
|
||||
<?php
|
||||
|
||||
namespace App\Controller;
|
||||
|
||||
use Symfony\Bundle\FrameworkBundle\Controller\AbstractController;
|
||||
@@ -6,9 +7,7 @@ use Symfony\Component\Routing\Annotation\Route;
|
||||
use Symfony\Component\HttpFoundation\Response;
|
||||
|
||||
/**
|
||||
*
|
||||
* @author kevinfrantz
|
||||
*
|
||||
*/
|
||||
class DefaultController extends AbstractController
|
||||
{
|
||||
@@ -17,15 +16,14 @@ class DefaultController extends AbstractController
|
||||
*/
|
||||
public function imprint(): Response
|
||||
{
|
||||
return $this->render("standard/imprint.html.twig");
|
||||
return $this->render('standard/imprint.html.twig');
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* @Route("/", name="homepage")
|
||||
*/
|
||||
public function homepage(): Response
|
||||
{
|
||||
return $this->render("standard/homepage.html.twig");
|
||||
return $this->render('standard/homepage.html.twig');
|
||||
}
|
||||
}
|
||||
|
||||
|
@@ -1,15 +1,13 @@
|
||||
<?php
|
||||
|
||||
namespace App\Controller;
|
||||
|
||||
use Symfony\Component\HttpFoundation\Response;
|
||||
|
||||
/**
|
||||
*
|
||||
* @author kevinfrantz
|
||||
*
|
||||
*/
|
||||
interface ModificationInterface
|
||||
{
|
||||
public function modify(int $id):Response;
|
||||
public function modify(int $id): Response;
|
||||
}
|
||||
|
||||
|
@@ -1,32 +1,35 @@
|
||||
<?php
|
||||
|
||||
namespace App\Controller;
|
||||
|
||||
use Symfony\Component\HttpFoundation\Response;
|
||||
|
||||
/**
|
||||
*
|
||||
* @author kevinfrantz
|
||||
*
|
||||
*/
|
||||
class SourceController implements SourceControllerInterface
|
||||
{
|
||||
public function modify(int $id): Response
|
||||
{}
|
||||
{
|
||||
}
|
||||
|
||||
public function show(int $id): Response
|
||||
{}
|
||||
{
|
||||
}
|
||||
|
||||
public function activate(): Response
|
||||
{}
|
||||
{
|
||||
}
|
||||
|
||||
public function create(): Response
|
||||
{}
|
||||
{
|
||||
}
|
||||
|
||||
public function delete(): Response
|
||||
{}
|
||||
{
|
||||
}
|
||||
|
||||
public function deactivate(): Response
|
||||
{}
|
||||
|
||||
{
|
||||
}
|
||||
}
|
||||
|
||||
|
@@ -1,15 +1,13 @@
|
||||
<?php
|
||||
|
||||
namespace App\Controller;
|
||||
|
||||
use Symfony\Component\HttpFoundation\Response;
|
||||
|
||||
/**
|
||||
*
|
||||
* @author kevinfrantz
|
||||
*
|
||||
*/
|
||||
interface SourceControllerInterface extends CreationInterface, ActivationInterface, ModificationInterface
|
||||
{
|
||||
public function show(int $id):Response;
|
||||
public function show(int $id): Response;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user