Completed
Push — master ( a62be2...5c6fe5 )
by Alexander
01:07 queued 21s
created

PropelConfig   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 24
Duplicated Lines 0 %

Importance

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

2 Methods

Rating   Name   Duplication   Size   Complexity  
A getProjectPropelSchemaPathPatterns() 0 5 1
A isSharedLoggerEnabled() 0 3 1
1
<?php
2
3
/**
4
 * This file is part of the Spryker Commerce OS.
5
 * For full license information, please view the LICENSE file that was distributed with this source code.
6
 */
7
8
declare(strict_types = 1);
9
10
namespace Pyz\Zed\Propel;
11
12
use Spryker\Zed\Propel\PropelConfig as SprykerPropelConfig;
13
14
class PropelConfig extends SprykerPropelConfig
15
{
16
    /**
17
     * @return list<string>
18
     */
19
    public function getProjectPropelSchemaPathPatterns(): array
20
    {
21
        return array_merge(
0 ignored issues
show
Bug Best Practice introduced by
The expression return array_merge(array...elSchemaPathPatterns()) returns the type array which is incompatible with the documented return type Pyz\Zed\Propel\list.
Loading history...
22
            [APPLICATION_SOURCE_DIR . '/*/Zed/*/Persistence/Propel/Schema/'],
23
            parent::getProjectPropelSchemaPathPatterns(),
24
        );
25
    }
26
27
    /**
28
     * Specification:
29
     * - If true, adds additional shared logger that will send all Propel logs to the same destination as regular logs.
30
     *
31
     * @api
32
     *
33
     * @return bool
34
     */
35
    public function isSharedLoggerEnabled(): bool
36
    {
37
        return true;
38
    }
39
}
40