Total Complexity | 4 |
Total Lines | 30 |
Duplicated Lines | 0 % |
Changes | 0 |
1 | <?php |
||
20 | class Typo3 implements \Aimeos\MShop\Common\Helper\Password\Iface |
||
21 | { |
||
22 | private $hasher; |
||
23 | |||
24 | |||
25 | /** |
||
26 | * Initializes the password helper. |
||
27 | * |
||
28 | * @param array Associative list of key/value pairs of options specific for the hashing method |
||
|
|||
29 | */ |
||
30 | public function __construct( array $options ) |
||
31 | { |
||
32 | if( !array_key_exists( 'object', $options ) ) { |
||
33 | throw new \Aimeos\MShop\Exception( sprintf( 'No TYPO3 password hash object available' ) ); |
||
34 | } |
||
35 | |||
36 | $this->hasher = $options['object']; |
||
37 | } |
||
38 | |||
39 | |||
40 | /** |
||
41 | * Returns the hashed password. |
||
42 | * |
||
43 | * @param string $password Clear text password string |
||
44 | * @param string|null $salt Password salt |
||
45 | * @return string Hashed password |
||
46 | */ |
||
47 | public function encode( $password, $salt = null ) |
||
50 | } |
||
51 | } |
||
52 |
The issue could also be caused by a filter entry in the build configuration. If the path has been excluded in your configuration, e.g.
excluded_paths: ["lib/*"]
, you can move it to the dependency path list as follows:For further information see https://scrutinizer-ci.com/docs/tools/php/php-scrutinizer/#list-dependency-paths