original_string: public function create(UserInterface $user)
    {
      if($user == null || $user->getAuthIdentifier() == null) {
        return false;
      }
  
      $token = $this->generateAuthToken();
      $token->setAuthIdentifier( $user->getAuthIdentifier() );
  
      $t = new \DateTime;
      $insertData = array_merge($token->toArray(), array(
         'created_at' => $t, 'updated_at' => $t
      ));
  
      $this->db()->insert($insertData);
  
      return $token;
    }
code: public function create(UserInterface $user)
    {
      if($user == null || $user->getAuthIdentifier() == null) {
        return false;
      }
  
      $token = $this->generateAuthToken();
      $token->setAuthIdentifier( $user->getAuthIdentifier() );
  
      $t = new \DateTime;
      $insertData = array_merge($token->toArray(), array(
         'created_at' => $t, 'updated_at' => $t
      ));
  
      $this->db()->insert($insertData);
  
      return $token;
    }
code_tokens: public function create ( UserInterface $ user ) { if ( $ user == null || $ user -> getAuthIdentifier ( ) == null ) { return false ; } $ token = $ this -> generateAuthToken ( ) ; $ token -> setAuthIdentifier ( $ user -> getAuthIdentifier ( ) ) ; $ t = new \ DateTime ; $ insertData = array_merge ( $ token -> toArray ( ) , array ( 'created_at' => $ t , 'updated_at' => $ t ) ) ; $ this -> db ( ) -> insert ( $ insertData ) ; return $ token ; }
docstring: Creates an auth token for user.
  
  @param \Illuminate\Auth\UserInterface $user
  @return \TAppleby\AuthToken\AuthToken|false
docstring_tokens: Creates an auth token for user .