Passed
Pull Request — master (#809)
by Stanislav
06:02
created

DevelopmentConfig::getCodingStandard()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 3
Code Lines 1

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
eloc 1
dl 0
loc 3
c 0
b 0
f 0
rs 10
cc 1
nc 1
nop 0
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\Development;
11
12
use Spryker\Zed\Development\DevelopmentConfig as SprykerDevelopmentConfig;
13
14
class DevelopmentConfig extends SprykerDevelopmentConfig
15
{
16
    /**
17
     * @return string
18
     */
19
    public function getCodingStandard(): string
20
    {
21
        return APPLICATION_ROOT_DIR . DIRECTORY_SEPARATOR . 'phpcs.xml';
22
    }
23
24
    /**
25
     * @return array<string>
26
     */
27
    public function getOrganizationPathMap(): array
28
    {
29
        return [
30
            'Spryker' => $this->getPathToCore(),
0 ignored issues
show
Deprecated Code introduced by
The function Spryker\Zed\Development\...Config::getPathToCore() has been deprecated: Use {@link \Spryker\Zed\Development\Business\Module\PathBuilder\SprykerModulePathBuilder::buildPaths()} instead. ( Ignorable by Annotation )

If this is a false-positive, you can also ignore this issue in your code via the ignore-deprecated  annotation

30
            'Spryker' => /** @scrutinizer ignore-deprecated */ $this->getPathToCore(),

This function has been deprecated. The supplier of the function has supplied an explanatory message.

The explanatory message should give you some clue as to whether and when the function will be removed and what other function to use instead.

Loading history...
31
            'SprykerFeature' => $this->getPathToFeature(),
0 ignored issues
show
Deprecated Code introduced by
The function Spryker\Zed\Development\...fig::getPathToFeature() has been deprecated: Use {@link \Spryker\Zed\Development\Business\Module\PathBuilder\SprykerShopModulePathBuilder::buildPaths()} instead. ( Ignorable by Annotation )

If this is a false-positive, you can also ignore this issue in your code via the ignore-deprecated  annotation

31
            'SprykerFeature' => /** @scrutinizer ignore-deprecated */ $this->getPathToFeature(),

This function has been deprecated. The supplier of the function has supplied an explanatory message.

The explanatory message should give you some clue as to whether and when the function will be removed and what other function to use instead.

Loading history...
32
            'SprykerEco' => $this->getPathToEco(),
0 ignored issues
show
Deprecated Code introduced by
The function Spryker\Zed\Development\...tConfig::getPathToEco() has been deprecated: Use {@link \Spryker\Zed\Development\Business\Module\PathBuilder\SprykerEcoModulePathBuilder::buildPaths()} instead. ( Ignorable by Annotation )

If this is a false-positive, you can also ignore this issue in your code via the ignore-deprecated  annotation

32
            'SprykerEco' => /** @scrutinizer ignore-deprecated */ $this->getPathToEco(),

This function has been deprecated. The supplier of the function has supplied an explanatory message.

The explanatory message should give you some clue as to whether and when the function will be removed and what other function to use instead.

Loading history...
33
        ];
34
    }
35
}
36