Completed
Push — master ( ce6f95...09fff3 )
by Roberts
05:17 queued 36s
created

ExcelExport::collection()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 3

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
cc 1
nc 1
nop 0
dl 0
loc 3
rs 10
c 0
b 0
f 0
1
<?php
2
3
namespace Arbory\Base\Admin\Exports\Type;
4
5
use Arbory\Base\Admin\Exports\DataSetExport;
6
use Maatwebsite\Excel\Concerns\FromCollection;
0 ignored issues
show
Bug introduced by
The type Maatwebsite\Excel\Concerns\FromCollection was not found. Maybe you did not declare it correctly or list all dependencies?

The issue could also be caused by a filter entry in the build configuration. If the path has been excluded in your configuration, e.g. excluded_paths: ["lib/*"], you can move it to the dependency path list as follows:

filter:
    dependency_paths: ["lib/*"]

For further information see https://scrutinizer-ci.com/docs/tools/php/php-scrutinizer/#list-dependency-paths

Loading history...
7
8
class ExcelExport implements FromCollection
9
{
10
    /**
11
     * @var DataSetExport
12
     */
13
    protected $items;
14
15
    /**
16
     * ExcelExport constructor.
17
     * @param DataSetExport $items
18
     */
19
    public function __construct(DataSetExport $items)
20
    {
21
        $this->items = $items;
22
    }
23
24
    /**
25
     * @return DataSetExport
26
     */
27
    public function collection()
28
    {
29
        return $this->items;
30
    }
31
}
32