the-matrix/finite-state-machine

View on GitHub

Showing 1 of 1 total issue

Method build has 97 lines of code (exceeds 25 allowed). Consider refactoring.
Open

    public function build(string $file, bool $validate = false): StateGraph
    {
        return FFor::create(['xmlFile' => $file, 'validate' => $validate])
            ->dom(function(string $xmlFile, bool $validate): \DOMDocument {
                if (!file_exists($xmlFile)) {
Severity: Major
Found in src/StateMachine/Builder/XmlBuilder.php - About 3 hrs to fix
    Severity
    Category
    Status
    Source
    Language