original_string: public function readClientLocalesFromRequest(Request $request) {
          $locales = [];
  
          foreach($request->getLanguages() as $client) {
              try {
                  $locale = new Locale($client);
                  $locales[] = $locale;
              } catch(\Exception $e) {
                  trigger_error($e->getMessage(), E_USER_NOTICE);
              }
          }
  
          $this->setClientLocales($locales);
      }
code: public function readClientLocalesFromRequest(Request $request) {
          $locales = [];
  
          foreach($request->getLanguages() as $client) {
              try {
                  $locale = new Locale($client);
                  $locales[] = $locale;
              } catch(\Exception $e) {
                  trigger_error($e->getMessage(), E_USER_NOTICE);
              }
          }
  
          $this->setClientLocales($locales);
      }
code_tokens: public function readClientLocalesFromRequest ( Request $ request ) { $ locales = [ ] ; foreach ( $ request -> getLanguages ( ) as $ client ) { try { $ locale = new Locale ( $ client ) ; $ locales [ ] = $ locale ; } catch ( \ Exception $ e ) { trigger_error ( $ e -> getMessage ( ) , E_USER_NOTICE ) ; } } $ this -> setClientLocales ( $ locales ) ; }
docstring: Reads the client locales from the request
  @param Request $request
  @throws BadLocaleException
docstring_tokens: Reads the client locales from the request