| Total Complexity | 8 |
| Total Lines | 45 |
| Duplicated Lines | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 7 | class VocabCite extends Model |
||
| 8 | { |
||
| 9 | protected $fillable = [ |
||
| 10 | 'file', 'line', 'function', 'class', 'code', |
||
| 11 | ]; |
||
| 12 | |||
| 13 | public function __construct(array $attributes = []) |
||
| 14 | { |
||
| 15 | $connection = config('trans-helper.database.connection') ?: config('database.default'); |
||
| 16 | $this->setConnection($connection); |
||
| 17 | $this->setTable('_trans_helper_cites'); |
||
| 18 | parent::__construct($attributes); |
||
| 19 | } |
||
| 20 | |||
| 21 | public function terms() |
||
| 30 | ); |
||
| 31 | } |
||
| 32 | |||
| 33 | public function sweep() |
||
| 55 |
Checks if undeclared accessed properties appear in database migrations and if the creating migration is correct.