Merged Pull Request Introduce code formatting with PHP-CS-Fixer

This commit is contained in:
Kevin Frantz
2018-09-13 03:29:34 +02:00
42 changed files with 553 additions and 299 deletions

View File

@@ -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;
}

View File

@@ -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;
}

View File

@@ -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');
}
}

View File

@@ -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;
}

View File

@@ -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
{}
{
}
}

View File

@@ -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;
}