Passed
Push — master ( 9975a0...1b82ab )
by Jeroen
02:06
created

SolrEngineTestModel   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 14
Duplicated Lines 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
wmc 1
eloc 5
c 1
b 0
f 0
dl 0
loc 14
rs 10

1 Method

Rating   Name   Duplication   Size   Complexity  
A toSearchableArray() 0 5 1
1
<?php
2
3
declare(strict_types=1);
4
5
use Illuminate\Database\Eloquent\Model;
6
use Laravel\Scout\Searchable;
7
8
class SolrEngineTestModel extends Model
9
{
10
    use Searchable;
0 ignored issues
show
Bug introduced by
The trait Laravel\Scout\Searchable requires the property $queryCallback which is not provided by SolrEngineTestModel.
Loading history...
11
12
    /**
13
     * Get the indexable data array for the model.
14
     *
15
     * @return array
16
     */
17
    public function toSearchableArray()
18
    {
19
        return [
20
            'id' => 1,
21
            'name' => 'Laravel Scout Solr Engine'
22
        ];
23
    }
24
}