concrete/src/Permission/IPRangesCsvWriter.php
private function projectRange(IPRange $range)
    {
        $result = [
            $range->getIpRange()->toString(),
            $range->getIpRange()->getComparableStartString(),
            $range->getIpRange()->getComparableEndString(),
        ];
        if ($this->type === IPService::IPRANGETYPE_BLACKLIST_AUTOMATIC) {
            $dt = $range->getExpires();
            if ($dt === null) {
                $result[] = '';
            } else {
                $result[] = $this->dateHelper->formatCustom('c', $dt);
            }
        }

        return $result;
    }
private function projectRange(IPRange $range)
    {
        $result = [
            $range->getIpRange()->toString(),
            $range->getIpRange()->getComparableStartString(),
            $range->getIpRange()->getComparableEndString(),
        ];
        if ($this->type === IPService::IPRANGETYPE_BLACKLIST_AUTOMATIC) {
            $dt = $range->getExpires();
            if ($dt === null) {
                $result[] = '';
            } else {
                $result[] = $this->dateHelper->formatCustom('c', $dt);
            }
        }

        return $result;
    }
private function projectRange ( IPRange $ range ) { $ result = [ $ range -> getIpRange ( ) -> toString ( ) , $ range -> getIpRange ( ) -> getComparableStartString ( ) , $ range -> getIpRange ( ) -> getComparableEndString ( ) , ] ; if ( $ this -> type === IPService :: IPRANGETYPE_BLACKLIST_AUTOMATIC ) { $ dt = $ range -> getExpires ( ) ; if ( $ dt === null ) { $ result [ ] = '' ; } else { $ result [ ] = $ this -> dateHelper -> formatCustom ( 'c' , $ dt ) ; } } return $ result ; }
Turn an IPRange instance into an array.

@param IPRange $range

@return string[]
Turn an IPRange instance into an array .