original_string: public function getAll(): array
      {
          $response = $this->client->request('GET', $this->resourceUri);
  
          $json = json_decode((string)$response->getBody());
  
          $dirItemCollection = [];
  
          foreach ($json as $starredFile) {
              $dirItemCollection[] = (new DirectoryItem)->fromJson($starredFile);
          }
  
          return $dirItemCollection;
      }
code: public function getAll(): array
      {
          $response = $this->client->request('GET', $this->resourceUri);
  
          $json = json_decode((string)$response->getBody());
  
          $dirItemCollection = [];
  
          foreach ($json as $starredFile) {
              $dirItemCollection[] = (new DirectoryItem)->fromJson($starredFile);
          }
  
          return $dirItemCollection;
      }
code_tokens: public function getAll ( ) : array { $ response = $ this -> client -> request ( 'GET' , $ this -> resourceUri ) ; $ json = json_decode ( ( string ) $ response -> getBody ( ) ) ; $ dirItemCollection = [ ] ; foreach ( $ json as $ starredFile ) { $ dirItemCollection [ ] = ( new DirectoryItem ) -> fromJson ( $ starredFile ) ; } return $ dirItemCollection ; }
docstring: Get all starred files
  
  @return DirectoryItem[]
  @throws \Exception
  @throws \GuzzleHttp\Exception\GuzzleException
docstring_tokens: Get all starred files