Skip to content

Commit 5d550dd

Browse files
authored
Merge pull request #449 from Astrotomic/fix-php-cs
fix php cs
2 parents 2762449 + 97c471a commit 5d550dd

File tree

2 files changed

+204
-197
lines changed

2 files changed

+204
-197
lines changed

tests/Eloquent/VegetableNumeric.php

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
<?php
2+
3+
namespace Tests\Eloquent;
4+
5+
class VegetableNumeric extends Vegetable
6+
{
7+
public $translationModel = VegetableTranslation::class;
8+
9+
protected $table = 'vegetables';
10+
11+
protected function isEmptyTranslatableAttribute(string $key, $value): bool
12+
{
13+
if ($key === 'name') {
14+
return is_null($value);
15+
}
16+
17+
return parent::isEmptyTranslatableAttribute($key, $value);
18+
}
19+
}

0 commit comments

Comments
 (0)