| Total Complexity | 6 |
| Total Lines | 25 |
| Duplicated Lines | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 11 | class SetPhpBinarySubscriber implements EventSubscriberInterface { |
||
| 12 | |||
| 13 | private function setPhpBinary(): void { |
||
| 14 | $binary = $_ENV['PHP_BINARY']; |
||
| 15 | |||
| 16 | if($binary !== null && $binary !== false) { |
||
| 17 | putenv('PHP_BINARY=' . $binary); |
||
| 18 | } |
||
| 19 | } |
||
| 20 | |||
| 21 | public function onCommand(ConsoleCommandEvent $commandEvent): void { |
||
| 23 | } |
||
| 24 | |||
| 25 | public function onKernelRequest(RequestEvent $requestEvent): void { |
||
| 26 | $this->setPhpBinary(); |
||
| 27 | } |
||
| 28 | |||
| 29 | /** |
||
| 30 | * @inheritDoc |
||
| 31 | */ |
||
| 32 | public static function getSubscribedEvents() { |
||
| 36 | ]; |
||
| 37 | } |
||
| 38 | } |
This check looks for parameters that have been defined for a function or method, but which are not used in the method body.