original_string: public function determineLocale(Request $request)
      {
          $locale = $this->determiners
              ->map(function ($determiner) use ($request) {
                  return $determiner->determineLocale($request);
              })
              ->filter()
              ->first();
  
          return $locale ?: $this->fallback;
      }
code: public function determineLocale(Request $request)
      {
          $locale = $this->determiners
              ->map(function ($determiner) use ($request) {
                  return $determiner->determineLocale($request);
              })
              ->filter()
              ->first();
  
          return $locale ?: $this->fallback;
      }
code_tokens: public function determineLocale ( Request $ request ) { $ locale = $ this -> determiners -> map ( function ( $ determiner ) use ( $ request ) { return $ determiner -> determineLocale ( $ request ) ; } ) -> filter ( ) -> first ( ) ; return $ locale ? : $ this -> fallback ; }
docstring: Determine the locale from the underlying determiner stack.
  
  @param  \Illuminate\Http\Request  $request
  @return  string|null
docstring_tokens: Determine the locale from the underlying determiner stack .