Code Duplication    Length = 4-4 lines in 2 locations

src/View/Helper/ContentsFileHelper.php 2 locations

@@ 29-32 (lines=4) @@
26
        if ($title === null) {
27
            $title = $fileInfo['file_name'];
28
        }
29
        if (isset($options['resize'])) {
30
            $fileInfo['resize'] = $options['resize'];
31
            unset($options['resize']);
32
        }
33
        $options = array_merge(
34
            $this->defaultOption,
35
            $options
@@ 54-57 (lines=4) @@
51
    public function image($fileInfo, $options = [])
52
    {
53
        if (!empty($fileInfo)) {
54
            if (isset($options['resize'])) {
55
                $fileInfo['resize'] = $options['resize'];
56
                unset($options['resize']);
57
            }
58
            return $this->Html->image($this->urlArray($fileInfo, $options), $options);
59
        }
60
        return '';