Reformat various code.

This commit is contained in:
James Cole committed 2022-03-29 15:10:05 +02:00
1 parent 60786461a9
commit 123693096c
134 files changed
+336 -141

No files matched your search

@@ -70,7 +70,6 @@ class AccountController extends Controller
* @param AutocompleteRequest $request
*
* @return JsonResponse
* @throws FireflyException
* @throws JsonException
*/
public function accounts(AutocompleteRequest $request): JsonResponse
@@ -77,6 +77,9 @@ class AccountController extends Controller
*
* @return JsonResponse
* @throws FireflyException
* @throws \JsonException
* @throws \Psr\Container\ContainerExceptionInterface
* @throws \Psr\Container\NotFoundExceptionInterface
*/
public function overview(DateRequest $request): JsonResponse
{
+2
View File
@@ -74,6 +74,8 @@ abstract class Controller extends BaseController
* Method to grab all parameters from the URI.
*
* @return ParameterBag
* @throws \Psr\Container\ContainerExceptionInterface
* @throws \Psr\Container\NotFoundExceptionInterface
*/
private function getParameters(): ParameterBag
{
@@ -209,8 +209,6 @@ class ListController extends Controller
*
* @param Request $request
*
* @param Budget $budget
*
* @return JsonResponse
* @throws FireflyException
* @codeCoverageIgnore
@@ -72,6 +72,7 @@ class ShowController extends Controller
*
* @return JsonResponse
* @throws FireflyException
* @throws \JsonException
* @codeCoverageIgnore
*/
public function index(): JsonResponse
@@ -106,6 +107,8 @@ class ShowController extends Controller
* @param TransactionCurrency $currency
*
* @return JsonResponse
* @throws FireflyException
* @throws \JsonException
* @codeCoverageIgnore
*/
public function show(TransactionCurrency $currency): JsonResponse
@@ -130,6 +133,8 @@ class ShowController extends Controller
* Show a currency.
*
* @return JsonResponse
* @throws FireflyException
* @throws \JsonException
* @codeCoverageIgnore
*/
public function showDefault(): JsonResponse
@@ -74,6 +74,7 @@ class StoreController extends Controller
*
* @return JsonResponse
* @throws FireflyException
* @throws \JsonException
*/
public function store(StoreRequest $request): JsonResponse
{
@@ -75,6 +75,8 @@ class UpdateController extends Controller
* @param TransactionCurrency $currency
*
* @return JsonResponse
* @throws FireflyException
* @throws JsonException
* @codeCoverageIgnore
*/
public function disable(TransactionCurrency $currency): JsonResponse
@@ -108,6 +110,8 @@ class UpdateController extends Controller
* @param TransactionCurrency $currency
*
* @return JsonResponse
* @throws FireflyException
* @throws JsonException
* @codeCoverageIgnore
*/
public function enable(TransactionCurrency $currency): JsonResponse
@@ -113,7 +113,7 @@ class BasicController extends Controller
// give new keys
$return = [];
foreach ($total as $entry) {
if (null === $code || (null !== $code && $code === $entry['currency_code'])) {
if (null === $code || ($code === $entry['currency_code'])) {
$return[$entry['key']] = $entry;
}
}
@@ -94,6 +94,8 @@ class ConfigurationController extends Controller
*
* @return array
* @throws FireflyException
* @throws \Psr\Container\ContainerExceptionInterface
* @throws \Psr\Container\NotFoundExceptionInterface
*/
private function getDynamicConfiguration(): array
{