Completed
Push — master ( cf0a63...b69372 )
by ARCANEDEV
17s
created

AbstractManager::getDriverOptions()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 2
CRAP Score 1

Importance

Changes 0
Metric Value
dl 0
loc 4
ccs 2
cts 2
cp 1
rs 10
c 0
b 0
f 0
cc 1
eloc 2
nc 1
nop 1
crap 1
1
<?php namespace Arcanedev\LaravelExcel;
2
3
use Illuminate\Support\Manager;
4
5
/**
6
 * Class     AbstractManager
7
 *
8
 * @package  Arcanedev\LaravelExcel
9
 * @author   ARCANEDEV <[email protected]>
10
 */
11
abstract class AbstractManager extends Manager
12
{
13
    /* -----------------------------------------------------------------
14
     |  Getters & Setters
15
     | -----------------------------------------------------------------
16
     */
17
18
    /**
19
     * Get the default driver name.
20
     *
21
     * @return string
22
     */
23 3
    public function getDefaultDriver()
24
    {
25 3
        return $this->app['config']->get('excel.default');
26
    }
27
28
    /* -----------------------------------------------------------------
29
     |  Other Methods
30
     | -----------------------------------------------------------------
31
     */
32
33
    /**
34
     * Get the driver options.
35
     *
36
     * @param  string  $driver
37
     *
38
     * @return array
39
     */
40 21
    protected function getDriverOptions($driver)
41
    {
42 21
        return $this->app['config']->get("excel.drivers.$driver.options", []);
43
    }
44
}
45