src/Image/Eve.php
public function detect_type($id)
    {

        if ($id > 90000000 && $id < 98000000)
            return 'character';

        elseif (($id > 98000000 && $id < 99000000) || ($id > 1000000 && $id < 2000000))
            return 'corporation';

        elseif (($id > 99000000 && $id < 100000000) || ($id > 0 && $id < 1000000))
            return 'alliance';

        return 'character';
    }
public function detect_type($id)
    {

        if ($id > 90000000 && $id < 98000000)
            return 'character';

        elseif (($id > 98000000 && $id < 99000000) || ($id > 1000000 && $id < 2000000))
            return 'corporation';

        elseif (($id > 99000000 && $id < 100000000) || ($id > 0 && $id < 1000000))
            return 'alliance';

        return 'character';
    }
public function detect_type ( $ id ) { if ( $ id > 90000000 && $ id < 98000000 ) return 'character' ; elseif ( ( $ id > 98000000 && $ id < 99000000 ) || ( $ id > 1000000 && $ id < 2000000 ) ) return 'corporation' ; elseif ( ( $ id > 99000000 && $ id < 100000000 ) || ( $ id > 0 && $ id < 1000000 ) ) return 'alliance' ; return 'character' ; }
Attempt to detect the image type based on the
range in which an integer falls.

@param $id

@return string
Attempt to detect the image type based on the range in which an integer falls .