Code Duplication    Length = 8-8 lines in 2 locations

Core/ComplexField/EzBinaryFile.php 1 location

@@ 66-73 (lines=8) @@
63
     *
64
     * @todo check out if this works in ezplatform
65
     */
66
    public function fieldValueToHash($fieldValue, array $context = array())
67
    {
68
        return array(
69
            'path' => realpath($this->legacyRootDir) . $fieldValue->uri,
70
            'filename'=> $fieldValue->fileName,
71
            'mimeType' => $fieldValue->mimeType
72
        );
73
    }
74
}
75

Core/ComplexField/EzImage.php 1 location

@@ 68-75 (lines=8) @@
65
     *
66
     * @todo check out if this works in ezplatform
67
     */
68
    public function fieldValueToHash($fieldValue, array $context = array())
69
    {
70
        return array(
71
            'path' => realpath($this->legacyRootDir) . $fieldValue->uri,
72
            'filename'=> $fieldValue->fileName,
73
            'alternativeText' => $fieldValue->alternativeText
74
        );
75
    }
76
}
77