| Total Complexity | 5 |
| Total Lines | 35 |
| Duplicated Lines | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 7 | class DatastoreDatastore extends Model |
||
| 8 | { |
||
| 9 | // |
||
| 10 | protected $table = 'datastore_datastore'; |
||
| 11 | |||
| 12 | public $timestamps = false; |
||
| 13 | |||
| 14 | |||
| 15 | protected $fillable = [ |
||
| 16 | 'datastore_id', |
||
| 17 | 'datastore2_id' |
||
| 18 | ]; |
||
| 19 | |||
| 20 | |||
| 21 | public function parent() |
||
| 22 | { |
||
| 23 | return $this->belongsTo(DatastoreModel::class, 'datastore2_id'); |
||
| 24 | } |
||
| 25 | |||
| 26 | public function page() |
||
| 27 | { |
||
| 28 | return $this->hasOne(DatastorePages::class, 'asset', 'datastore_id'); |
||
| 29 | } |
||
| 30 | |||
| 31 | |||
| 32 | public function datastore(){ |
||
| 33 | return $this->belongsTo(DatastoreModel::class, 'datastore_id'); |
||
| 34 | } |
||
| 35 | |||
| 36 | public function getItemAttribute(){ |
||
| 38 | } |
||
| 39 | |||
| 40 | public function prop($key){ |
||
| 42 | } |
||
| 43 | |||
| 44 | } |
||
| 45 |
This check looks for calls to methods that do not seem to exist on a given type. It looks for the method on the type itself as well as in inherited classes or implemented interfaces.
This is most likely a typographical error or the method has been renamed.