ContactsExport   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 8
Duplicated Lines 0 %

Importance

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

1 Method

Rating   Name   Duplication   Size   Complexity  
A collection() 0 3 1
1
<?php
2
3
namespace Adminetic\Contact\Exports;
4
5
use Adminetic\Contact\Models\Admin\Contact;
6
use Maatwebsite\Excel\Concerns\FromCollection;
7
8
class ContactsExport implements FromCollection
9
{
10
    /**
11
     * @return \Illuminate\Support\Collection
12
     */
13
    public function collection()
14
    {
15
        return Contact::latest()->get();
16
    }
17
}
18