1
0
mirror of https://github.com/flarum/core.git synced 2025-08-03 15:07:53 +02:00

Apply fixes from StyleCI

This commit is contained in:
StyleCI Bot
2024-06-16 11:53:11 +00:00
parent f04542e8fb
commit 453d272874
24 changed files with 117 additions and 115 deletions

View File

@@ -40,6 +40,7 @@ class AddCanFlagAttribute
// If $actor is the post author, check to see if the setting is enabled
return (bool) $this->settings->get('flarum-flags.can_flag_own');
}
// $actor is not the post author
return true;
}

View File

@@ -192,6 +192,7 @@ abstract class TestCase extends \PHPUnit\Framework\TestCase
protected function database(): ConnectionInterface
{
$this->app();
// Set in `BeginTransactionAndSetDatabase` extender.
return $this->database;
}