public function modulusFilter($number, $divider, $items = null)
    {
        if (\is_string($number)) {
            $number = strlen($number);
        }

        $remainder = $number % $divider;

        if (\is_array($items)) {
            return $items[$remainder] ?? $items[0];
        }

        return $remainder;
    }
public function modulusFilter($number, $divider, $items = null)
    {
        if (\is_string($number)) {
            $number = strlen($number);
        }

        $remainder = $number % $divider;

        if (\is_array($items)) {
            return $items[$remainder] ?? $items[0];
        }

        return $remainder;
    }
public function modulusFilter ( $ number , $ divider , $ items = null ) { if ( \ is_string ( $ number ) ) { $ number = strlen ( $ number ) ; } $ remainder = $ number % $ divider ; if ( \ is_array ( $ items ) ) { return $ items [ $ remainder ] ?? $ items [ 0 ] ; } return $ remainder ; }
Returns the modulus of an integer

@param  string|int   $number
@param  int          $divider
@param  array        $items array of items to select from to return

@return int
Returns the modulus of an integer