| Conditions | 1 |
| Paths | 1 |
| Total Lines | 12 |
| Code Lines | 8 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 42 | public function register(DiInterface $di): void |
||
| 43 | { |
||
| 44 | $encryptionKey = $di->getShared('config')->path('www.encryptionKey'); |
||
| 45 | $di->setShared( |
||
| 46 | self::SERVICE_NAME, |
||
| 47 | function () use ($di, $encryptionKey) { |
||
|
|
|||
| 48 | $crypt = new Crypt(); |
||
| 49 | // Set a global encryption key |
||
| 50 | $crypt->setKey( |
||
| 51 | $encryptionKey |
||
| 52 | ); |
||
| 53 | return $crypt; |
||
| 54 | } |
||
| 57 | } |
This check looks for imports that have been defined, but are not used in the scope.