Code Duplication    Length = 10-10 lines in 2 locations

src/Mapping/Driver/YamlDriver.php 2 locations

@@ 59-68 (lines=10) @@
56
     * @param SchemaContainer $schemaContainer
57
     * @param array           $mapping
58
     */
59
    private function mapQuery(SchemaContainer $schemaContainer, array $mapping)
60
    {
61
        $querySchema = $schemaContainer->getQuerySchema();
62
        if (null === $querySchema) {
63
            $querySchema = new Query();
64
            $schemaContainer->setQuerySchema($querySchema);
65
        }
66
67
        $this->populateFieldContainer($querySchema, $mapping);
68
    }
69
70
    /**
71
     * @param SchemaContainer $schemaContainer
@@ 74-83 (lines=10) @@
71
     * @param SchemaContainer $schemaContainer
72
     * @param array           $mapping
73
     */
74
    private function mapMutation(SchemaContainer $schemaContainer, array $mapping)
75
    {
76
        $mutationSchema = $schemaContainer->getMutationSchema();
77
        if (null === $mutationSchema) {
78
            $mutationSchema = new Query();
79
            $schemaContainer->setMutationSchema($mutationSchema);
80
        }
81
82
        $this->populateFieldContainer($mutationSchema, $mapping);
83
    }
84
85
    /**
86
     * @param SchemaContainer $schemaContainer