mirror of
https://github.com/flarum/core.git
synced 2025-08-04 07:27:39 +02:00
Apply fixes from StyleCI
This commit is contained in:
@@ -40,6 +40,7 @@ class AddCanFlagAttribute
|
|||||||
// If $actor is the post author, check to see if the setting is enabled
|
// If $actor is the post author, check to see if the setting is enabled
|
||||||
return (bool) $this->settings->get('flarum-flags.can_flag_own');
|
return (bool) $this->settings->get('flarum-flags.can_flag_own');
|
||||||
}
|
}
|
||||||
|
|
||||||
// $actor is not the post author
|
// $actor is not the post author
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
@@ -27,7 +27,7 @@ trait RetrievesRepresentativeTags
|
|||||||
['id' => 11, 'name' => 'Secondary Restricted', 'slug' => 'secondary-restricted', 'position' => null, 'parent_id' => null, 'is_restricted' => true],
|
['id' => 11, 'name' => 'Secondary Restricted', 'slug' => 'secondary-restricted', 'position' => null, 'parent_id' => null, 'is_restricted' => true],
|
||||||
['id' => 12, 'name' => 'Primary Restricted 2', 'slug' => 'primary-2-restricted', 'position' => 100, 'parent_id' => null, 'is_restricted' => true],
|
['id' => 12, 'name' => 'Primary Restricted 2', 'slug' => 'primary-2-restricted', 'position' => 100, 'parent_id' => null, 'is_restricted' => true],
|
||||||
['id' => 13, 'name' => 'Primary Restricted 2 Child 1', 'slug' => 'primary-2-restricted-child-1', 'position' => 101, 'parent_id' => 12],
|
['id' => 13, 'name' => 'Primary Restricted 2 Child 1', 'slug' => 'primary-2-restricted-child-1', 'position' => 101, 'parent_id' => 12],
|
||||||
['id' => 14, 'name' => 'Primary Restricted 3', 'slug' => 'primary-3-restricted', 'position' => 102, 'parent_id' =>null, 'is_restricted' => true],
|
['id' => 14, 'name' => 'Primary Restricted 3', 'slug' => 'primary-3-restricted', 'position' => 102, 'parent_id' => null, 'is_restricted' => true],
|
||||||
];
|
];
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@@ -192,6 +192,7 @@ abstract class TestCase extends \PHPUnit\Framework\TestCase
|
|||||||
protected function database(): ConnectionInterface
|
protected function database(): ConnectionInterface
|
||||||
{
|
{
|
||||||
$this->app();
|
$this->app();
|
||||||
|
|
||||||
// Set in `BeginTransactionAndSetDatabase` extender.
|
// Set in `BeginTransactionAndSetDatabase` extender.
|
||||||
return $this->database;
|
return $this->database;
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user