mirror of
https://github.com/firefly-iii/firefly-iii.git
synced 2025-02-25 18:45:27 -06:00
Some alignment
This commit is contained in:
parent
fa8dc1ae4b
commit
d4488f041b
@ -22,12 +22,12 @@
|
|||||||
$current = __DIR__;
|
$current = __DIR__;
|
||||||
|
|
||||||
$paths = [
|
$paths = [
|
||||||
$current . '/../../app',
|
$current . '/../../app/Api/V1/Controllers/Autocomplete',
|
||||||
$current . '/../../config',
|
// $current . '/../../config',
|
||||||
$current . '/../../database',
|
// $current . '/../../database',
|
||||||
$current . '/../../routes',
|
// $current . '/../../routes',
|
||||||
$current . '/../../tests',
|
// $current . '/../../tests',
|
||||||
$current . '/../../resources/lang',
|
// $current . '/../../resources/lang',
|
||||||
];
|
];
|
||||||
|
|
||||||
$finder = PhpCsFixer\Finder::create()
|
$finder = PhpCsFixer\Finder::create()
|
||||||
@ -57,7 +57,13 @@ return $config->setRules([
|
|||||||
'statement_indentation' => true,
|
'statement_indentation' => true,
|
||||||
'type_declaration_spaces' => false,
|
'type_declaration_spaces' => false,
|
||||||
'cast_spaces' => false,
|
'cast_spaces' => false,
|
||||||
'binary_operator_spaces' => false,
|
'binary_operator_spaces' => [
|
||||||
|
'default' => 'at_least_single_space',
|
||||||
|
'operators' => [
|
||||||
|
'=>' => 'align_single_space_minimal',
|
||||||
|
'=' => 'align_single_space_minimal',
|
||||||
|
],
|
||||||
|
],
|
||||||
'void_return' => true,
|
'void_return' => true,
|
||||||
])
|
])
|
||||||
->setFinder($finder);
|
->setFinder($finder);
|
||||||
|
@ -104,12 +104,12 @@ class PiggyBankController extends Controller
|
|||||||
/** @var PiggyBank $piggy */
|
/** @var PiggyBank $piggy */
|
||||||
foreach ($piggies as $piggy) {
|
foreach ($piggies as $piggy) {
|
||||||
$currency = $this->accountRepository->getAccountCurrency($piggy->account) ?? $defaultCurrency;
|
$currency = $this->accountRepository->getAccountCurrency($piggy->account) ?? $defaultCurrency;
|
||||||
$currentAmount = $this->piggyRepository->getRepetition($piggy)->currentamount ?? '0';
|
$currentAmount = $this->piggyRepository->getRepetition($piggy)->currentamount ?? '0';
|
||||||
$objectGroup = $piggy->objectGroups()->first();
|
$objectGroup = $piggy->objectGroups()->first();
|
||||||
$response[] = [
|
$response[] = [
|
||||||
'id' => (string) $piggy->id,
|
'id' => (string) $piggy->id,
|
||||||
'name' => $piggy->name,
|
'name' => $piggy->name,
|
||||||
'name_with_balance' => sprintf(
|
'name_with_balance' => sprintf(
|
||||||
'%s (%s / %s)',
|
'%s (%s / %s)',
|
||||||
$piggy->name,
|
$piggy->name,
|
||||||
app('amount')->formatAnything($currency, $currentAmount, false),
|
app('amount')->formatAnything($currency, $currentAmount, false),
|
||||||
|
@ -61,7 +61,7 @@ class TagController extends Controller
|
|||||||
*/
|
*/
|
||||||
public function tags(AutocompleteRequest $request): JsonResponse
|
public function tags(AutocompleteRequest $request): JsonResponse
|
||||||
{
|
{
|
||||||
$data = $request->getData();
|
$data = $request->getData();
|
||||||
$result = $this->repository->searchTags($data['query'], $this->parameters->get('limit'));
|
$result = $this->repository->searchTags($data['query'], $this->parameters->get('limit'));
|
||||||
$array = [];
|
$array = [];
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user