original_string: protected function normalizeResponse($obj) {
          $result = ['path' => ltrim($this->removePathPrefix($obj->getPathDisplay()), '/')];
  
          $objClass = get_class($obj);
          switch ($objClass) {
              case 'Kunnu\Dropbox\Models\FolderMetadata':
                  $result['type'] = 'dir';
                  break;
              
              case 'Kunnu\Dropbox\Models\FileMetadata':
              default:
                  $result['type'] = 'file';
                  $result['size'] = $obj->getSize();
                  $result['mimetype'] = MimeType::detectByFilename($obj->getName());
                  $result['timestamp'] = strtotime($obj->getServerModified());
                  break;
          }
          return $result;
      }
code: protected function normalizeResponse($obj) {
          $result = ['path' => ltrim($this->removePathPrefix($obj->getPathDisplay()), '/')];
  
          $objClass = get_class($obj);
          switch ($objClass) {
              case 'Kunnu\Dropbox\Models\FolderMetadata':
                  $result['type'] = 'dir';
                  break;
              
              case 'Kunnu\Dropbox\Models\FileMetadata':
              default:
                  $result['type'] = 'file';
                  $result['size'] = $obj->getSize();
                  $result['mimetype'] = MimeType::detectByFilename($obj->getName());
                  $result['timestamp'] = strtotime($obj->getServerModified());
                  break;
          }
          return $result;
      }
code_tokens: protected function normalizeResponse ( $ obj ) { $ result = [ 'path' => ltrim ( $ this -> removePathPrefix ( $ obj -> getPathDisplay ( ) ) , '/' ) ] ; $ objClass = get_class ( $ obj ) ; switch ( $ objClass ) { case 'Kunnu\Dropbox\Models\FolderMetadata' : $ result [ 'type' ] = 'dir' ; break ; case 'Kunnu\Dropbox\Models\FileMetadata' : default : $ result [ 'type' ] = 'file' ; $ result [ 'size' ] = $ obj -> getSize ( ) ; $ result [ 'mimetype' ] = MimeType :: detectByFilename ( $ obj -> getName ( ) ) ; $ result [ 'timestamp' ] = strtotime ( $ obj -> getServerModified ( ) ) ; break ; } return $ result ; }
docstring: Normalize a Dropbox File Response.
  
  @param object $obj
  
  @return array
docstring_tokens: Normalize a Dropbox File Response .