DefaultImporter   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 35
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 0

Importance

Changes 0
Metric Value
wmc 1
lcom 0
cbo 0
dl 0
loc 35
rs 10
c 0
b 0
f 0

1 Method

Rating   Name   Duplication   Size   Complexity  
A getFile() 0 4 1
1
<?php
2
3
declare(strict_types=1);
4
5
namespace Cortex\Foundation\Importers;
6
7
use Maatwebsite\Excel\Files\ExcelFile;
8
9
class DefaultImporter extends ExcelFile
10
{
11
    /**
12
     * The importer config.
13
     *
14
     * @var array
15
     */
16
    public $config = [
17
        'name' => 'name',
18
        'log' => true,
19
    ];
20
21
    /**
22
     * {@inheritdoc}
23
     */
24
    protected $delimiter = ';';
25
26
    /**
27
     * {@inheritdoc}
28
     */
29
    protected $enclosure = '"';
30
31
    /**
32
     * {@inheritdoc}
33
     */
34
    protected $lineEnding = '\r\n';
35
36
    /**
37
     * {@inheritdoc}
38
     */
39
    public function getFile()
0 ignored issues
show
Documentation introduced by
The return type could not be reliably inferred; please add a @return annotation.

Our type inference engine in quite powerful, but sometimes the code does not provide enough clues to go by. In these cases we request you to add a @return annotation as described here.

Loading history...
40
    {
41
        return request()->file('file');
42
    }
43
}
44