Code Duplication    Length = 10-10 lines in 2 locations

code/model/file/PerfectCMSImageDataExtension.php 2 locations

@@ 228-237 (lines=10) @@
225
     *
226
     * @return int
227
     */
228
    public static function get_width($name, $forceInteger = false)
229
    {
230
        $v = self::get_one_value_for_image($name, "width", 0);
231
        if($forceInteger) {
232
            $v = intval($v) - 0;
233
        }
234
235
        return $v;
236
237
    }
238
239
    /**
240
     * @param string           $name
@@ 245-254 (lines=10) @@
242
     *
243
     * @return int
244
     */
245
    public static function get_height($name, $forceInteger)
246
    {
247
248
        $v = self::get_one_value_for_image($name, "height", 0);
249
        if($forceInteger) {
250
            $v = intval($v) - 0;
251
        }
252
253
        return $v;
254
    }
255
256
    /**
257
     * @param string           $name