Code Duplication    Length = 9-9 lines in 2 locations

src/StructuredData/PropertyList.php 1 location

@@ 21-29 (lines=9) @@
18
    /**
19
     * @inheritdoc
20
     */
21
    public function convert(FormatterOptions $options)
22
    {
23
        $defaults = $this->defaultOptions();
24
        $fields = $this->getFields($options, $defaults);
25
        if (FieldProcessor::hasUnstructuredFieldAccess($fields)) {
26
            return new UnstructuredData($this->getArrayCopy());
27
        }
28
        return $this;
29
    }
30
31
    /**
32
     * Restructure this data for output by converting it into a table

src/StructuredData/RowsOfFields.php 1 location

@@ 18-26 (lines=9) @@
15
    /**
16
     * @inheritdoc
17
     */
18
    public function convert(FormatterOptions $options)
19
    {
20
        $defaults = $this->defaultOptions();
21
        $fields = $this->getFields($options, $defaults);
22
        if (FieldProcessor::hasUnstructuredFieldAccess($fields)) {
23
            return new UnstructuredListData($this->getArrayCopy());
24
        }
25
        return $this;
26
    }
27
28
    /**
29
     * Restructure this data for output by converting it into a table