| 1 | <?php |
||
| 8 | class SchemaManagerFactory |
||
| 9 | { |
||
| 10 | /** @var KernelInterface */ |
||
| 11 | private $kernel; |
||
| 12 | |||
| 13 | 4 | public function __construct(KernelInterface $kernel) |
|
| 17 | |||
| 18 | /** |
||
| 19 | * Instantiates a new SchemaManager from a given file. |
||
| 20 | * The file can be an absolute path, a resource located in app/Resources or a resource located in a bundle. |
||
| 21 | * |
||
| 22 | * @param string $file |
||
| 23 | * |
||
| 24 | * @return SchemaManager |
||
| 25 | */ |
||
| 26 | 4 | public function createFromFile($file) |
|
| 40 | } |
||
| 41 |
This check looks for the bodies of
ifstatements that have no statements or where all statements have been commented out. This may be the result of changes for debugging or the code may simply be obsolete.These
ifbodies can be removed. If you have an empty if but statements in theelsebranch, consider inverting the condition.could be turned into
This is much more concise to read.