original_string: public function getAvailableResources()
      {
          $cache = Cache::getTransientCache();
          $cacheId = 'transifex_resources_' . $this->projectSlug;
          $resources = $cache->fetch($cacheId);
  
          if (empty($resources)) {
              $apiPath = 'project/' . $this->projectSlug . '/resources';
              $resources = $this->getApiResults($apiPath);
              $cache->save($cacheId, $resources);
          }
  
          return $resources;
      }
code: public function getAvailableResources()
      {
          $cache = Cache::getTransientCache();
          $cacheId = 'transifex_resources_' . $this->projectSlug;
          $resources = $cache->fetch($cacheId);
  
          if (empty($resources)) {
              $apiPath = 'project/' . $this->projectSlug . '/resources';
              $resources = $this->getApiResults($apiPath);
              $cache->save($cacheId, $resources);
          }
  
          return $resources;
      }
code_tokens: public function getAvailableResources ( ) { $ cache = Cache :: getTransientCache ( ) ; $ cacheId = 'transifex_resources_' . $ this -> projectSlug ; $ resources = $ cache -> fetch ( $ cacheId ) ; if ( empty ( $ resources ) ) { $ apiPath = 'project/' . $ this -> projectSlug . '/resources' ; $ resources = $ this -> getApiResults ( $ apiPath ) ; $ cache -> save ( $ cacheId , $ resources ) ; } return $ resources ; }
docstring: Returns all resources available on Transifex project
  
  @return array
docstring_tokens: Returns all resources available on Transifex project