src/Parser/SearchResultUrlParser.php
public function getSearchArea()
    {
        if ($this->current()->path->getSegment(3) === 'occasions') {
            return 'toute la france';
        }

        if ($this->current()->path->getSegment(3) === 'bonnes_affaires') {
            return 'regions voisines';
        }

        return $this->current()->path->getSegment(2);
    }
public function getSearchArea()
    {
        if ($this->current()->path->getSegment(3) === 'occasions') {
            return 'toute la france';
        }

        if ($this->current()->path->getSegment(3) === 'bonnes_affaires') {
            return 'regions voisines';
        }

        return $this->current()->path->getSegment(2);
    }
public function getSearchArea ( ) { if ( $ this -> current ( ) -> path -> getSegment ( 3 ) === 'occasions' ) { return 'toute la france' ; } if ( $ this -> current ( ) -> path -> getSegment ( 3 ) === 'bonnes_affaires' ) { return 'regions voisines' ; } return $ this -> current ( ) -> path -> getSegment ( 2 ) ; }
Return the search area

@return string
Return the search area