apply rector rules

This commit is contained in:
2023-07-28 02:40:02 +02:00
parent 157cdf6dfc
commit f570fe92a5
112 changed files with 252 additions and 562 deletions

View File

@@ -21,12 +21,9 @@ use Symfony\Component\HttpFoundation\Request;
class ChargeController extends AbstractElementController
{
/**
* @Route(
* "{_locale}/budget/charge/{id}/delete",
* name="chill_budget_charge_delete"
* )
*
* @return \Symfony\Component\HttpFoundation\Response
* @\Symfony\Component\Routing\Annotation\Route("{_locale}/budget/charge/{id}/delete", name="chill_budget_charge_delete")
*/
public function deleteAction(Request $request, Charge $charge)
{
@@ -39,12 +36,9 @@ class ChargeController extends AbstractElementController
}
/**
* @Route(
* "{_locale}/budget/charge/{id}/edit",
* name="chill_budget_charge_edit"
* )
*
* @return \Symfony\Component\HttpFoundation\Response
* @\Symfony\Component\Routing\Annotation\Route("{_locale}/budget/charge/{id}/edit", name="chill_budget_charge_edit")
*/
public function editAction(Request $request, Charge $charge)
{
@@ -57,12 +51,9 @@ class ChargeController extends AbstractElementController
}
/**
* @Route(
* "{_locale}/budget/charge/by-person/{id}/new",
* name="chill_budget_charge_new"
* )
*
* @return \Symfony\Component\HttpFoundation\Response
* @\Symfony\Component\Routing\Annotation\Route("{_locale}/budget/charge/by-person/{id}/new", name="chill_budget_charge_new")
*/
public function newAction(Request $request, Person $person)
{
@@ -75,12 +66,9 @@ class ChargeController extends AbstractElementController
}
/**
* @Route(
* "{_locale}/budget/charge/by-household/{id}/new",
* name="chill_budget_charge_household_new"
* )
*
* @return \Symfony\Component\HttpFoundation\Response
* @\Symfony\Component\Routing\Annotation\Route("{_locale}/budget/charge/by-household/{id}/new", name="chill_budget_charge_household_new")
*/
public function newHouseholdAction(Request $request, Household $household)
{
@@ -93,12 +81,9 @@ class ChargeController extends AbstractElementController
}
/**
* @Route(
* "{_locale}/budget/charge/{id}/view",
* name="chill_budget_charge_view"
* )
*
* @return \Symfony\Component\HttpFoundation\Response
* @\Symfony\Component\Routing\Annotation\Route("{_locale}/budget/charge/{id}/view", name="chill_budget_charge_view")
*/
public function viewAction(Charge $charge)
{

View File

@@ -36,10 +36,7 @@ class ElementController extends AbstractController
}
/**
* @Route(
* "{_locale}/budget/elements/by-person/{id}",
* name="chill_budget_elements_index"
* )
* @\Symfony\Component\Routing\Annotation\Route("{_locale}/budget/elements/by-person/{id}", name="chill_budget_elements_index")
*/
public function indexAction(Person $person)
{
@@ -63,10 +60,7 @@ class ElementController extends AbstractController
}
/**
* @Route(
* "{_locale}/budget/elements/by-household/{id}",
* name="chill_budget_elements_household_index"
* )
* @\Symfony\Component\Routing\Annotation\Route("{_locale}/budget/elements/by-household/{id}", name="chill_budget_elements_household_index")
*/
public function indexHouseholdAction(Household $household)
{

View File

@@ -22,10 +22,7 @@ use Symfony\Component\HttpFoundation\Response;
class ResourceController extends AbstractElementController
{
/**
* @Route(
* "{_locale}/budget/resource/{id}/delete",
* name="chill_budget_resource_delete"
* )
* @\Symfony\Component\Routing\Annotation\Route("{_locale}/budget/resource/{id}/delete", name="chill_budget_resource_delete")
*/
public function deleteAction(Request $request, Resource $resource)
{
@@ -38,10 +35,7 @@ class ResourceController extends AbstractElementController
}
/**
* @Route(
* "{_locale}/budget/resource/{id}/edit",
* name="chill_budget_resource_edit"
* )
* @\Symfony\Component\Routing\Annotation\Route("{_locale}/budget/resource/{id}/edit", name="chill_budget_resource_edit")
*/
public function editAction(Request $request, Resource $resource): Response
{
@@ -56,10 +50,7 @@ class ResourceController extends AbstractElementController
/**
* Create a new budget element for a person.
*
* @Route(
* "{_locale}/budget/resource/by-person/{id}/new",
* name="chill_budget_resource_new"
* )
* @\Symfony\Component\Routing\Annotation\Route("{_locale}/budget/resource/by-person/{id}/new", name="chill_budget_resource_new")
*/
public function newAction(Request $request, Person $person): Response
{
@@ -74,10 +65,7 @@ class ResourceController extends AbstractElementController
/**
* Create new budget element for a household.
*
* @Route(
* "{_locale}/budget/resource/by-household/{id}/new",
* name="chill_budget_resource_household_new"
* )
* @\Symfony\Component\Routing\Annotation\Route("{_locale}/budget/resource/by-household/{id}/new", name="chill_budget_resource_household_new")
*/
public function newHouseholdAction(Request $request, Household $household): Response
{
@@ -90,10 +78,7 @@ class ResourceController extends AbstractElementController
}
/**
* @Route(
* "{_locale}/budget/resource/{id}/view",
* name="chill_budget_resource_view"
* )
* @\Symfony\Component\Routing\Annotation\Route("{_locale}/budget/resource/{id}/view", name="chill_budget_resource_view")
*/
public function viewAction(Resource $resource): Response
{

View File

@@ -46,10 +46,9 @@ class Charge extends AbstractElement implements HasCentersInterface
private ?ChargeKind $charge = null;
/**
* @var string
* @ORM\Column(name="help", type="string", nullable=true)
*/
private $help = self::HELP_NOT_RELEVANT;
private string $help = self::HELP_NOT_RELEVANT;
/**
* @ORM\Column(name="id", type="integer")