1
0
mirror of https://github.com/flarum/core.git synced 2025-08-04 15:37:51 +02:00

Apply fixes from StyleCI

This commit is contained in:
StyleCI Bot
2024-01-09 15:06:12 +00:00
parent 74ce4cf1a7
commit 5399c86a1b
25 changed files with 118 additions and 116 deletions

View File

@@ -32,6 +32,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

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