Completed
Push — develop ( 32e215...792e1e )
by Peter
10:26
created

Developer::toArray()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 17
Code Lines 10

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
cc 1
eloc 10
nc 1
nop 1
dl 0
loc 17
rs 9.4285
c 0
b 0
f 0
1
<?php
2
3
namespace WebinoDev\Config\App;
4
5
/**
6
 * Application developer config
7
 */
8
class Developer
9
{
10
    /**
11
     * @param array $options
12
     * @return array
13
     */
14
    public function toArray(array $options = [])
15
    {
16
        return array_replace_recursive(
17
            $options,
18
            [
19
                'modules' => [
20
                    110 => 'WebinoDev',
21
                    130 => 'AssetManager',
22
                ],
23
                'module_listener_options' => [
24
                    'config_cache_enabled'     => false,
25
                    'module_map_cache_enabled' => false,
26
                    'check_dependencies'       => true,
27
                ],
28
            ]
29
        );
30
    }
31
}
32