mirror of
https://github.com/flarum/core.git
synced 2025-07-28 12:10:51 +02:00
Apply fixes from StyleCI
[ci skip] [skip ci]
This commit is contained in:
committed by
StyleCI Bot
parent
c87c2bcd4c
commit
56ef8b4613
@@ -35,7 +35,9 @@ class Model implements ExtenderInterface
|
|||||||
*/
|
*/
|
||||||
public function dateAttribute(string $attribute)
|
public function dateAttribute(string $attribute)
|
||||||
{
|
{
|
||||||
Arr::set(AbstractModel::$dateAttributes, $this->modelClass,
|
Arr::set(
|
||||||
|
AbstractModel::$dateAttributes,
|
||||||
|
$this->modelClass,
|
||||||
array_merge(
|
array_merge(
|
||||||
Arr::get(AbstractModel::$dateAttributes, $this->modelClass, []),
|
Arr::get(AbstractModel::$dateAttributes, $this->modelClass, []),
|
||||||
[$attribute]
|
[$attribute]
|
||||||
|
@@ -204,6 +204,7 @@ class ModelTest extends TestCase
|
|||||||
(new Extend\Model(Group::class))
|
(new Extend\Model(Group::class))
|
||||||
->default('counter', function () {
|
->default('counter', function () {
|
||||||
static $counter = 0;
|
static $counter = 0;
|
||||||
|
|
||||||
return ++$counter;
|
return ++$counter;
|
||||||
})
|
})
|
||||||
);
|
);
|
||||||
|
Reference in New Issue
Block a user