Apply fixes from StyleCI (#1632)

[ci skip] [skip ci]
This commit is contained in:
Toby Zerner 2018-11-11 17:01:34 +10:30 committed by GitHub
parent d9037fe472
commit 278bbd992b
2 changed files with 1 additions and 2 deletions

View File

@ -191,7 +191,7 @@ class Notification extends AbstractModel
*/
public function scopeWhereSubjectModel(Builder $query, string $class)
{
$notificationTypes = array_filter(Notification::getSubjectModels(), function ($modelClass) use ($class) {
$notificationTypes = array_filter(self::getSubjectModels(), function ($modelClass) use ($class) {
return $modelClass === $class or is_subclass_of($class, $modelClass);
});

View File

@ -15,7 +15,6 @@ use Flarum\Database\AbstractModel;
use Flarum\Database\ScopeVisibilityTrait;
use Flarum\Discussion\Discussion;
use Flarum\Event\GetModelIsPrivate;
use Flarum\Event\ScopeModelVisibility;
use Flarum\Foundation\EventGeneratorTrait;
use Flarum\Notification\Notification;
use Flarum\Post\Event\Deleted;