protected function skipNullValue(array $attributes)
    {
        $attr = [];

        foreach ($attributes as $key => $value) {
            if (null !== $value) {
                $attr[$key] = \is_array($value)
                    ? $this->skipNullValue($value)
                    : $value;
            }
        }

        return $attr;
    }
protected function skipNullValue(array $attributes)
    {
        $attr = [];

        foreach ($attributes as $key => $value) {
            if (null !== $value) {
                $attr[$key] = \is_array($value)
                    ? $this->skipNullValue($value)
                    : $value;
            }
        }

        return $attr;
    }
protected function skipNullValue ( array $ attributes ) { $ attr = [ ] ; foreach ( $ attributes as $ key => $ value ) { if ( null !== $ value ) { $ attr [ $ key ] = \ is_array ( $ value ) ? $ this -> skipNullValue ( $ value ) : $ value ; } } return $ attr ; }
Remove the key with null values.

@param array $attributes The view attributes

@return array The view attributes without null values
Remove the key with null values .