Auto commit for release 'develop' on 2024-02-22

This commit is contained in:
github-actions
2024-02-22 01:29:01 +01:00
parent 356b217692
commit 89ce2838d5
147 changed files with 636 additions and 635 deletions

View File

@@ -128,11 +128,11 @@ class ForgotPasswordController extends Controller
private function validateHost(): void
{
$configuredHost = parse_url((string)config('app.url'), PHP_URL_HOST);
if(false === $configuredHost || null === $configuredHost) {
if (false === $configuredHost || null === $configuredHost) {
throw new FireflyException('Please set a valid and correct Firefly III URL in the APP_URL environment variable.');
}
$host = request()->host();
if($configuredHost !== $host) {
if ($configuredHost !== $host) {
throw new FireflyException('The Host-header does not match the host in the APP_URL environment variable. Please make sure these match. See also: https://bit.ly/FF3-host-header');
}
}

View File

@@ -66,7 +66,7 @@ class IndexController extends Controller
*/
public function export(): LaravelResponse|RedirectResponse
{
if(auth()->user()->hasRole('demo')) {
if (auth()->user()->hasRole('demo')) {
session()->flash('info', (string) trans('firefly.demo_user_export'));
return redirect(route('export.index'));

View File

@@ -387,7 +387,7 @@ class TagController extends Controller
/** @var array $tag */
foreach ($currency['tags'] as $tag) {
$tagId = $tag['id'];
if(!array_key_exists($tagId, $report)) {
if (!array_key_exists($tagId, $report)) {
continue;
}
foreach ($tag['transaction_journals'] as $journal) {
@@ -425,7 +425,7 @@ class TagController extends Controller
/** @var array $tag */
foreach ($currency['tags'] as $tag) {
$tagId = $tag['id'];
if(!array_key_exists($tagId, $report)) {
if (!array_key_exists($tagId, $report)) {
continue;
}
foreach ($tag['transaction_journals'] as $journal) {

View File

@@ -140,7 +140,7 @@ class SelectController extends Controller
$trigger = new RuleTrigger();
$trigger->trigger_type = $textTrigger['type'];
$trigger->trigger_value = $textTrigger['value'];
if(false === $needsContext) {
if (false === $needsContext) {
$trigger->trigger_value = 'true';
}
$trigger->stop_processing = $textTrigger['stop_processing'];

View File

@@ -59,7 +59,7 @@ class CreateController extends Controller
*/
public function index()
{
if(false === config('firefly.allow_webhooks')) {
if (false === config('firefly.allow_webhooks')) {
Log::channel('audit')->warning('User visits webhook create page, but webhooks are DISABLED.');
throw new NotFoundHttpException('Webhooks are not enabled.');

View File

@@ -63,7 +63,7 @@ class DeleteController extends Controller
*/
public function index(Webhook $webhook)
{
if(false === config('firefly.allow_webhooks')) {
if (false === config('firefly.allow_webhooks')) {
Log::channel('audit')->warning('User visits webhook delete page, but webhooks are DISABLED.');
throw new NotFoundHttpException('Webhooks are not enabled.');

View File

@@ -62,7 +62,7 @@ class EditController extends Controller
*/
public function index(Webhook $webhook)
{
if(false === config('firefly.allow_webhooks')) {
if (false === config('firefly.allow_webhooks')) {
Log::channel('audit')->warning('User visits webhook edit page, but webhooks are DISABLED.');
throw new NotFoundHttpException('Webhooks are not enabled.');

View File

@@ -55,7 +55,7 @@ class IndexController extends Controller
*/
public function index()
{
if(false === config('firefly.allow_webhooks')) {
if (false === config('firefly.allow_webhooks')) {
Log::channel('audit')->warning('User visits webhook index page, but webhooks are DISABLED.');
throw new NotFoundHttpException('Webhooks are not enabled.');

View File

@@ -62,7 +62,7 @@ class ShowController extends Controller
*/
public function index(Webhook $webhook)
{
if(false === config('firefly.allow_webhooks')) {
if (false === config('firefly.allow_webhooks')) {
Log::channel('audit')->warning(sprintf('User visits webhook #%d page, but webhooks are DISABLED.', $webhook->id));
throw new NotFoundHttpException('Webhooks are not enabled.');

View File

@@ -136,7 +136,7 @@ class AccountFormRequest extends FormRequest
public function withValidator(Validator $validator): void
{
if($validator->fails()) {
if ($validator->fails()) {
Log::channel('audit')->error(sprintf('Validation errors in %s', __CLASS__), $validator->errors()->toArray());
}
}

View File

@@ -62,7 +62,7 @@ class AttachmentFormRequest extends FormRequest
public function withValidator(Validator $validator): void
{
if($validator->fails()) {
if ($validator->fails()) {
Log::channel('audit')->error(sprintf('Validation errors in %s', __CLASS__), $validator->errors()->toArray());
}
}

View File

@@ -82,7 +82,7 @@ class BillStoreRequest extends FormRequest
public function withValidator(Validator $validator): void
{
if($validator->fails()) {
if ($validator->fails()) {
Log::channel('audit')->error(sprintf('Validation errors in %s', __CLASS__), $validator->errors()->toArray());
}
}

View File

@@ -86,7 +86,7 @@ class BillUpdateRequest extends FormRequest
public function withValidator(Validator $validator): void
{
if($validator->fails()) {
if ($validator->fails()) {
Log::channel('audit')->error(sprintf('Validation errors in %s', __CLASS__), $validator->errors()->toArray());
}
}

View File

@@ -83,7 +83,7 @@ class BudgetFormStoreRequest extends FormRequest
}
);
if($validator->fails()) {
if ($validator->fails()) {
Log::channel('audit')->error(sprintf('Validation errors in %s', __CLASS__), $validator->errors()->toArray());
}
}

View File

@@ -92,7 +92,7 @@ class BudgetFormUpdateRequest extends FormRequest
$this->validateAutoBudgetAmount($validator);
}
);
if($validator->fails()) {
if ($validator->fails()) {
Log::channel('audit')->error(sprintf('Validation errors in %s', __CLASS__), $validator->errors()->toArray());
}
}

View File

@@ -51,7 +51,7 @@ class BudgetIncomeRequest extends FormRequest
public function withValidator(Validator $validator): void
{
if($validator->fails()) {
if ($validator->fails()) {
Log::channel('audit')->error(sprintf('Validation errors in %s', __CLASS__), $validator->errors()->toArray());
}
}

View File

@@ -51,7 +51,7 @@ class BulkEditJournalRequest extends FormRequest
public function withValidator(Validator $validator): void
{
if($validator->fails()) {
if ($validator->fails()) {
Log::channel('audit')->error(sprintf('Validation errors in %s', __CLASS__), $validator->errors()->toArray());
}
}

View File

@@ -72,7 +72,7 @@ class CategoryFormRequest extends FormRequest
public function withValidator(Validator $validator): void
{
if($validator->fails()) {
if ($validator->fails()) {
Log::channel('audit')->error(sprintf('Validation errors in %s', __CLASS__), $validator->errors()->toArray());
}
}

View File

@@ -60,7 +60,7 @@ class ConfigurationRequest extends FormRequest
public function withValidator(Validator $validator): void
{
if($validator->fails()) {
if ($validator->fails()) {
Log::channel('audit')->error(sprintf('Validation errors in %s', __CLASS__), $validator->errors()->toArray());
}
}

View File

@@ -84,7 +84,7 @@ class CurrencyFormRequest extends FormRequest
public function withValidator(Validator $validator): void
{
if($validator->fails()) {
if ($validator->fails()) {
Log::channel('audit')->error(sprintf('Validation errors in %s', __CLASS__), $validator->errors()->toArray());
}
}

View File

@@ -48,7 +48,7 @@ class DeleteAccountFormRequest extends FormRequest
public function withValidator(Validator $validator): void
{
if($validator->fails()) {
if ($validator->fails()) {
Log::channel('audit')->error(sprintf('Validation errors in %s', __CLASS__), $validator->errors()->toArray());
}
}

View File

@@ -50,7 +50,7 @@ class EmailFormRequest extends FormRequest
public function withValidator(Validator $validator): void
{
if($validator->fails()) {
if ($validator->fails()) {
Log::channel('audit')->error(sprintf('Validation errors in %s', __CLASS__), $validator->errors()->toArray());
}
}

View File

@@ -50,7 +50,7 @@ class InviteUserFormRequest extends FormRequest
public function withValidator(Validator $validator): void
{
if($validator->fails()) {
if ($validator->fails()) {
Log::channel('audit')->error(sprintf('Validation errors in %s', __CLASS__), $validator->errors()->toArray());
}
}

View File

@@ -79,7 +79,7 @@ class JournalLinkRequest extends FormRequest
public function withValidator(Validator $validator): void
{
if($validator->fails()) {
if ($validator->fails()) {
Log::channel('audit')->error(sprintf('Validation errors in %s', __CLASS__), $validator->errors()->toArray());
}
}

View File

@@ -64,7 +64,7 @@ class LinkTypeFormRequest extends FormRequest
public function withValidator(Validator $validator): void
{
if($validator->fails()) {
if ($validator->fails()) {
Log::channel('audit')->error(sprintf('Validation errors in %s', __CLASS__), $validator->errors()->toArray());
}
}

View File

@@ -48,7 +48,7 @@ class MassDeleteJournalRequest extends FormRequest
public function withValidator(Validator $validator): void
{
if($validator->fails()) {
if ($validator->fails()) {
Log::channel('audit')->error(sprintf('Validation errors in %s', __CLASS__), $validator->errors()->toArray());
}
}

View File

@@ -54,7 +54,7 @@ class MassEditJournalRequest extends FormRequest
public function withValidator(Validator $validator): void
{
if($validator->fails()) {
if ($validator->fails()) {
Log::channel('audit')->error(sprintf('Validation errors in %s', __CLASS__), $validator->errors()->toArray());
}
}

View File

@@ -57,7 +57,7 @@ class NewUserFormRequest extends FormRequest
public function withValidator(Validator $validator): void
{
if($validator->fails()) {
if ($validator->fails()) {
Log::channel('audit')->error(sprintf('Validation errors in %s', __CLASS__), $validator->errors()->toArray());
}
}

View File

@@ -68,7 +68,7 @@ class ObjectGroupFormRequest extends FormRequest
public function withValidator(Validator $validator): void
{
if($validator->fails()) {
if ($validator->fails()) {
Log::channel('audit')->error(sprintf('Validation errors in %s', __CLASS__), $validator->errors()->toArray());
}
}

View File

@@ -73,7 +73,7 @@ class PiggyBankStoreRequest extends FormRequest
public function withValidator(Validator $validator): void
{
if($validator->fails()) {
if ($validator->fails()) {
Log::channel('audit')->error(sprintf('Validation errors in %s', __CLASS__), $validator->errors()->toArray());
}
}

View File

@@ -77,7 +77,7 @@ class PiggyBankUpdateRequest extends FormRequest
public function withValidator(Validator $validator): void
{
if($validator->fails()) {
if ($validator->fails()) {
Log::channel('audit')->error(sprintf('Validation errors in %s', __CLASS__), $validator->errors()->toArray());
}
}

View File

@@ -50,7 +50,7 @@ class ProfileFormRequest extends FormRequest
public function withValidator(Validator $validator): void
{
if($validator->fails()) {
if ($validator->fails()) {
Log::channel('audit')->error(sprintf('Validation errors in %s', __CLASS__), $validator->errors()->toArray());
}
}

View File

@@ -80,7 +80,7 @@ class ReconciliationStoreRequest extends FormRequest
public function withValidator(Validator $validator): void
{
if($validator->fails()) {
if ($validator->fails()) {
Log::channel('audit')->error(sprintf('Validation errors in %s', __CLASS__), $validator->errors()->toArray());
}
}

View File

@@ -247,7 +247,7 @@ class RecurrenceFormRequest extends FormRequest
$this->validateAccountInformation($validator);
}
);
if($validator->fails()) {
if ($validator->fails()) {
Log::channel('audit')->error(sprintf('Validation errors in %s', __CLASS__), $validator->errors()->toArray());
}
}

View File

@@ -250,7 +250,7 @@ class ReportFormRequest extends FormRequest
public function withValidator(Validator $validator): void
{
if($validator->fails()) {
if ($validator->fails()) {
Log::channel('audit')->error(sprintf('Validation errors in %s', __CLASS__), $validator->errors()->toArray());
}
}

View File

@@ -123,7 +123,7 @@ class RuleFormRequest extends FormRequest
public function withValidator(Validator $validator): void
{
if($validator->fails()) {
if ($validator->fails()) {
Log::channel('audit')->error(sprintf('Validation errors in %s', __CLASS__), $validator->errors()->toArray());
}
}

View File

@@ -79,7 +79,7 @@ class RuleGroupFormRequest extends FormRequest
public function withValidator(Validator $validator): void
{
if($validator->fails()) {
if ($validator->fails()) {
Log::channel('audit')->error(sprintf('Validation errors in %s', __CLASS__), $validator->errors()->toArray());
}
}

View File

@@ -57,7 +57,7 @@ class SelectTransactionsRequest extends FormRequest
public function withValidator(Validator $validator): void
{
if($validator->fails()) {
if ($validator->fails()) {
Log::channel('audit')->error(sprintf('Validation errors in %s', __CLASS__), $validator->errors()->toArray());
}
}

View File

@@ -82,7 +82,7 @@ class TagFormRequest extends FormRequest
public function withValidator(Validator $validator): void
{
if($validator->fails()) {
if ($validator->fails()) {
Log::channel('audit')->error(sprintf('Validation errors in %s', __CLASS__), $validator->errors()->toArray());
}
}

View File

@@ -54,7 +54,7 @@ class TestRuleFormRequest extends FormRequest
public function withValidator(Validator $validator): void
{
if($validator->fails()) {
if ($validator->fails()) {
Log::channel('audit')->error(sprintf('Validation errors in %s', __CLASS__), $validator->errors()->toArray());
}
}

View File

@@ -48,7 +48,7 @@ class TokenFormRequest extends FormRequest
public function withValidator(Validator $validator): void
{
if($validator->fails()) {
if ($validator->fails()) {
Log::channel('audit')->error(sprintf('Validation errors in %s', __CLASS__), $validator->errors()->toArray());
}
}

View File

@@ -60,7 +60,7 @@ class TriggerRecurrenceRequest extends FormRequest
public function withValidator(Validator $validator): void
{
if($validator->fails()) {
if ($validator->fails()) {
Log::channel('audit')->error(sprintf('Validation errors in %s', __CLASS__), $validator->errors()->toArray());
}
}

View File

@@ -68,7 +68,7 @@ class UserFormRequest extends FormRequest
public function withValidator(Validator $validator): void
{
if($validator->fails()) {
if ($validator->fails()) {
Log::channel('audit')->error(sprintf('Validation errors in %s', __CLASS__), $validator->errors()->toArray());
}
}

View File

@@ -58,7 +58,7 @@ class UserRegistrationRequest extends FormRequest
public function withValidator(Validator $validator): void
{
if($validator->fails()) {
if ($validator->fails()) {
Log::channel('audit')->error(sprintf('Validation errors in %s', __CLASS__), $validator->errors()->toArray());
}
}