Code cleanup.

This commit is contained in:
James Cole
2023-12-20 19:35:52 +01:00
parent c4f6366642
commit 64ec0cf62e
997 changed files with 12908 additions and 28136 deletions

View File

@@ -40,8 +40,6 @@ class BudgetTransformer extends AbstractTransformer
/**
* BudgetTransformer constructor.
*
*/
public function __construct()
{
@@ -52,10 +50,6 @@ class BudgetTransformer extends AbstractTransformer
/**
* Transform a budget.
*
* @param Budget $budget
*
* @return array
*/
public function transform(Budget $budget): array
{
@@ -106,17 +100,12 @@ class BudgetTransformer extends AbstractTransformer
'links' => [
[
'rel' => 'self',
'uri' => '/budgets/' . $budget->id,
'uri' => '/budgets/'.$budget->id,
],
],
];
}
/**
* @param array $array
*
* @return array
*/
private function beautify(array $array): array
{
$return = [];