mirror of
https://github.com/flarum/framework.git
synced 2025-01-20 03:42:44 +08:00
Apply fixes from StyleCI
[ci skip] [skip ci]
This commit is contained in:
parent
9386c91af9
commit
036e519865
|
@ -35,7 +35,9 @@ class Model implements ExtenderInterface
|
|||
*/
|
||||
public function dateAttribute(string $attribute)
|
||||
{
|
||||
Arr::set(AbstractModel::$dateAttributes, $this->modelClass,
|
||||
Arr::set(
|
||||
AbstractModel::$dateAttributes,
|
||||
$this->modelClass,
|
||||
array_merge(
|
||||
Arr::get(AbstractModel::$dateAttributes, $this->modelClass, []),
|
||||
[$attribute]
|
||||
|
|
|
@ -204,6 +204,7 @@ class ModelTest extends TestCase
|
|||
(new Extend\Model(Group::class))
|
||||
->default('counter', function () {
|
||||
static $counter = 0;
|
||||
|
||||
return ++$counter;
|
||||
})
|
||||
);
|
||||
|
|
Loading…
Reference in New Issue
Block a user