app/Census/AbstractCensusColumn.php
protected function notCountry(string $place): string
    {
        $parts = explode(', ', $place);

        if (end($parts) === $this->place()) {
            return implode(', ', array_slice($parts, 0, -1));
        }

        return $place;
    }
protected function notCountry(string $place): string
    {
        $parts = explode(', ', $place);

        if (end($parts) === $this->place()) {
            return implode(', ', array_slice($parts, 0, -1));
        }

        return $place;
    }
protected function notCountry ( string $ place ) : string { $ parts = explode ( ', ' , $ place ) ; if ( end ( $ parts ) === $ this -> place ( ) ) { return implode ( ', ' , array_slice ( $ parts , 0 , - 1 ) ) ; } return $ place ; }
Remove the country of a place name, where it is the same as the census place

@param string $place - e.g. "London, England"

@return string - e.g. "London" (for census of England) and "London, England" elsewhere
Remove the country of a place name where it is the same as the census place