Code Duplication    Length = 3-3 lines in 3 locations

class/PublicWallUpdates.php 1 location

@@ 213-215 (lines=3) @@
210
        ];
211
212
        $ext    = explode('.', $image);
213
        if (array_key_exists(1, $ext) && in_array(mb_strtolower($ext[1]), $type)) {
214
            $avatar = $image;
215
        }
216
217
        return $avatar;
218
    }

class/WallUpdates.php 1 location

@@ 169-171 (lines=3) @@
166
        ];
167
168
        $ext    = explode('.', $image);
169
        if (array_key_exists(1, $ext) && in_array(mb_strtolower($ext[1]), $type)) {
170
            $avatar = $image;
171
        }
172
173
        return $avatar;
174
    }

include/functions.php 1 location

@@ 811-813 (lines=3) @@
808
    $ext = explode('.', $image);
809
810
    $avatar = '';
811
    if (array_key_exists(1, $ext) && in_array(mb_strtolower($ext[1]), $type)) {
812
        $avatar = '';
813
    }
814
815
    return $avatar;
816
}