src/BreadcrumbsTrait.php
protected function removeElementClasses(string $option, $classes): Breadcrumbs
    {
        if (is_string($classes)) {
            $classes = explode(' ', $classes);
        }
        $this->validateClasses($classes);

        $classes = array_diff(
            $this->getOption($option),
            $classes
        );
        $this->setOption($option, array_unique($classes));

        return $this;
    }
protected function removeElementClasses(string $option, $classes): Breadcrumbs
    {
        if (is_string($classes)) {
            $classes = explode(' ', $classes);
        }
        $this->validateClasses($classes);

        $classes = array_diff(
            $this->getOption($option),
            $classes
        );
        $this->setOption($option, array_unique($classes));

        return $this;
    }
protected function removeElementClasses ( string $ option , $ classes ) : Breadcrumbs { if ( is_string ( $ classes ) ) { $ classes = explode ( ' ' , $ classes ) ; } $ this -> validateClasses ( $ classes ) ; $ classes = array_diff ( $ this -> getOption ( $ option ) , $ classes ) ; $ this -> setOption ( $ option , array_unique ( $ classes ) ) ; return $ this ; }
Remove one or more CSS classes related to the option type.

@param string $option The option from where we must remove the classes.
@param string|array $classes The classes to remove.

@return \Xety\Breadcrumbs\Breadcrumbs
Remove one or more CSS classes related to the option type .