original_string: protected function setAuthenticationHeader($response, $token = null)
      {
          $token = $token ?: $this->auth->refresh();
          $response->headers->set('Authorization', 'Bearer '.$token);
  
          return $response;
      }
code: protected function setAuthenticationHeader($response, $token = null)
      {
          $token = $token ?: $this->auth->refresh();
          $response->headers->set('Authorization', 'Bearer '.$token);
  
          return $response;
      }
code_tokens: protected function setAuthenticationHeader ( $ response , $ token = null ) { $ token = $ token ? : $ this -> auth -> refresh ( ) ; $ response -> headers -> set ( 'Authorization' , 'Bearer ' . $ token ) ; return $ response ; }
docstring: Set the authentication header.
  
  @param  \Illuminate\Http\Response|\Illuminate\Http\JsonResponse  $response
  @param  string|null  $token
  
  @return \Illuminate\Http\Response|\Illuminate\Http\JsonResponse
docstring_tokens: Set the authentication header .