anonymous()
last analyzed

Size

Total Lines 4
Code Lines 3

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
eloc 3
nc 1
nop 2
dl 0
loc 4
c 0
b 0
f 0
1
<?php
2
3
use Illuminate\Database\Eloquent\Builder;
4
5
Builder::macro('addSubSelect', function ($column, $query) {
6
    $this->defaultSelectAll();
0 ignored issues
show
Comprehensibility Best Practice introduced by
The variable $this seems to be never defined.
Loading history...
7
8
    return $this->selectSub($query->limit(1)->getQuery(), $column);
9
});
10