Conditions | 1 |
Paths | 1 |
Total Lines | 9 |
Code Lines | 6 |
Lines | 9 |
Ratio | 100 % |
Tests | 6 |
CRAP Score | 1 |
Changes | 0 |
1 | <?php declare(strict_types = 1); |
||
13 | 2 | public function __construct(string $publicKeyFile, \Throwable $previous = null) |
|
14 | { |
||
15 | 2 | parent::__construct(sprintf( |
|
16 | 2 | 'Public key could not be loaded from file \'%s\'. Please make sure that the file contains valid public key in PEM format.', |
|
17 | $publicKeyFile |
||
18 | 2 | ), 0, $previous); |
|
19 | |||
20 | 2 | $this->publicKeyFile = $publicKeyFile; |
|
21 | 2 | } |
|
22 | |||
29 |
Duplicated code is one of the most pungent code smells. If you need to duplicate the same code in three or more different places, we strongly encourage you to look into extracting the code into a single class or operation.
You can also find more detailed suggestions in the “Code” section of your repository.