protected function normalizeTypeAndLength($type)
    {
        if (empty($type)) {
            // @codeCoverageIgnoreStart
            return [null, null];
            // @codeCoverageIgnoreEnd
        }

        if (preg_match('#^(?<type>.*)\((?<length>\d+)\)$#', $type, $matches)) {
            return [ $this->normalizeType($matches['type']), (int) $matches['length'] ];
        }

        return [ $this->normalizeType($type), $this->getDefaultLengthForType($type) ];
    }
protected function normalizeTypeAndLength($type)
    {
        if (empty($type)) {
            // @codeCoverageIgnoreStart
            return [null, null];
            // @codeCoverageIgnoreEnd
        }

        if (preg_match('#^(?<type>.*)\((?<length>\d+)\)$#', $type, $matches)) {
            return [ $this->normalizeType($matches['type']), (int) $matches['length'] ];
        }

        return [ $this->normalizeType($type), $this->getDefaultLengthForType($type) ];
    }
protected function normalizeTypeAndLength ( $ type ) { if ( empty ( $ type ) ) { // @codeCoverageIgnoreStart return [ null , null ] ; // @codeCoverageIgnoreEnd } if ( preg_match ( '#^(?<type>.*)\((?<length>\d+)\)$#' , $ type , $ matches ) ) { return [ $ this -> normalizeType ( $ matches [ 'type' ] ) , ( int ) $ matches [ 'length' ] ] ; } return [ $ this -> normalizeType ( $ type ) , $ this -> getDefaultLengthForType ( $ type ) ] ; }
Returns clean type string and length value.

@param string $type  sqlite type
@return array    [ type, length (int) ]
Returns clean type string and length value .