| Total Complexity | 9 |
| Total Lines | 63 |
| Duplicated Lines | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 9 | trait HasBaseEncryption |
||
| 10 | { |
||
| 11 | /** |
||
| 12 | * @var Exception |
||
| 13 | */ |
||
| 14 | protected $encryptionException; |
||
| 15 | |||
| 16 | /** |
||
| 17 | * @return Exception |
||
| 18 | */ |
||
| 19 | public function getEncryptionException() |
||
| 20 | { |
||
| 21 | return $this->encryptionException; |
||
| 22 | } |
||
| 23 | |||
| 24 | /** |
||
| 25 | * @param CipherSweet $engine |
||
|
|
|||
| 26 | * @return EncryptedField |
||
| 27 | */ |
||
| 28 | public function getEncryptedField($engine = null) |
||
| 35 | } |
||
| 36 | |||
| 37 | /** |
||
| 38 | * @return string |
||
| 39 | */ |
||
| 40 | public function getDecryptedValue() |
||
| 41 | { |
||
| 42 | if (EncryptHelper::isEncrypted($this->value)) { |
||
| 43 | return $this->decryptValue($this->value); |
||
| 44 | } |
||
| 45 | return $this->value; |
||
| 46 | } |
||
| 47 | |||
| 48 | /** |
||
| 49 | * @param string $value |
||
| 50 | * @return string |
||
| 51 | */ |
||
| 52 | protected function decryptValue($value) |
||
| 72 | } |
||
| 73 | } |
||
| 74 |
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