| Conditions | 4 | 
| Paths | 6 | 
| Total Lines | 20 | 
| Code Lines | 10 | 
| Lines | 0 | 
| Ratio | 0 % | 
| Tests | 9 | 
| CRAP Score | 4.016 | 
| Changes | 0 | ||
| 1 | <?php  | 
            ||
| 31 | 1 | public function configure(HeaderAwareInterface $service)  | 
            |
| 32 |     { | 
            ||
| 33 | //try to set default php bin  | 
            ||
| 34 | 1 |         if ($service->getHeader('php_bin') === null) { | 
            |
| 35 | 1 |             if (defined(PHP_BINARY)) { | 
            |
| 36 | //since php 5.4  | 
            ||
| 37 |                 $service->setHeader('php_bin', PHP_BINARY); | 
            ||
| 38 |             } else { | 
            ||
| 39 | 1 |                 $service->setHeader('php_bin', PHP_BINDIR.'/php'); | 
            |
| 40 | }  | 
            ||
| 41 | }  | 
            ||
| 42 | |||
| 43 | //try to set default dispatch_path  | 
            ||
| 44 | 1 |         if ($service->getHeader('dispatch_path') === null) { | 
            |
| 45 | 1 | $service->setHeader(  | 
            |
| 46 | 1 | 'dispatch_path',  | 
            |
| 47 | 1 |                 $this->kernel->locateResource('@HappyrMq2phpBundle/Resources/bin/dispatch-message.php') | 
            |
| 48 | );  | 
            ||
| 49 | }  | 
            ||
| 50 | 1 | }  | 
            |
| 51 | }  | 
            ||
| 52 |