Code Duplication    Length = 8-8 lines in 2 locations

Model/Base64FileTrait.php 2 locations

@@ 110-117 (lines=8) @@
107
        $success = @fwrite($to, $from);
108
        fseek($to, $toPosition);
109
110
        if (!$success) {
111
            $error = error_get_last();
112
113
            throw new \RuntimeException(sprintf(
114
                'An error occurred while copying the value (%s).',
115
                $error['message']
116
            ));
117
        }
118
    }
119
120
    /**
@@ 144-151 (lines=8) @@
141
142
        fseek($to, $toPosition);
143
144
        if (!$success) {
145
            $error = error_get_last();
146
147
            throw new \RuntimeException(sprintf(
148
                'An error occurred while copying the value (%s).',
149
                $error['message']
150
            ));
151
        }
152
    }
153
}
154