mirror of
https://github.com/firefly-iii/firefly-iii.git
synced 2026-05-03 20:56:21 +00:00
Use PSR-12 code style
This commit is contained in:
@@ -28,6 +28,8 @@ use FireflyIII\Models\Attachment;
|
||||
use FireflyIII\Models\Note;
|
||||
use Illuminate\Console\Command;
|
||||
use Log;
|
||||
use Psr\Container\ContainerExceptionInterface;
|
||||
use Psr\Container\NotFoundExceptionInterface;
|
||||
|
||||
/**
|
||||
* Class MigrateAttachments
|
||||
@@ -70,7 +72,7 @@ class MigrateAttachments extends Command
|
||||
/** @var Attachment $att */
|
||||
foreach ($attachments as $att) {
|
||||
// move description:
|
||||
$attDescription = (string) $att->description;
|
||||
$attDescription = (string)$att->description;
|
||||
if ('' !== $attDescription) {
|
||||
// find or create note:
|
||||
$note = $att->notes()->first();
|
||||
@@ -105,14 +107,14 @@ class MigrateAttachments extends Command
|
||||
/**
|
||||
* @return bool
|
||||
* @throws FireflyException
|
||||
* @throws \Psr\Container\ContainerExceptionInterface
|
||||
* @throws \Psr\Container\NotFoundExceptionInterface
|
||||
* @throws ContainerExceptionInterface
|
||||
* @throws NotFoundExceptionInterface
|
||||
*/
|
||||
private function isExecuted(): bool
|
||||
{
|
||||
$configVar = app('fireflyconfig')->get(self::CONFIG_NAME, false);
|
||||
if (null !== $configVar) {
|
||||
return (bool) $configVar->data;
|
||||
return (bool)$configVar->data;
|
||||
}
|
||||
|
||||
return false;
|
||||
|
||||
Reference in New Issue
Block a user