| Conditions | 4 | 
| Paths | 6 | 
| Total Lines | 16 | 
| Code Lines | 9 | 
| Lines | 0 | 
| Ratio | 0 % | 
| Changes | 0 | ||
| 1 | <?php  | 
            ||
| 23 | protected function checkExtensions()  | 
            ||
| 24 |     { | 
            ||
| 25 | $extensions = $this->commandConfig['installation']['pre-check']['php']['extensions'];  | 
            ||
| 26 | $missingExtensions = array();  | 
            ||
| 27 |         foreach ($extensions as $extension) { | 
            ||
| 28 |             if (!extension_loaded($extension)) { | 
            ||
| 29 | $missingExtensions[] = $extension;  | 
            ||
| 30 | }  | 
            ||
| 31 | }  | 
            ||
| 32 | |||
| 33 |         if (count($missingExtensions) > 0) { | 
            ||
| 34 | throw new \RuntimeException(  | 
            ||
| 35 |                 'The following PHP extensions are required to start installation: ' . implode(',', $missingExtensions) | 
            ||
| 36 | );  | 
            ||
| 37 | }  | 
            ||
| 38 | }  | 
            ||
| 39 | |||
| 53 | 
This check compares the return type specified in the
@returnannotation of a function or method doc comment with the types returned by the function and raises an issue if they mismatch.