original_string: public function getAvailableLanguageCodes()
      {
          $cache = Cache::getTransientCache();
          $cacheId = 'transifex_languagescodes_' . $this->projectSlug;
          $languageCodes = $cache->fetch($cacheId);
  
          if (empty($languageCodes)) {
              $apiData = $this->getApiResults('project/' . $this->projectSlug . '/languages');
              foreach ($apiData as $languageData) {
                  $languageCodes[] = $languageData->language_code;
              }
              $cache->save($cacheId, $languageCodes);
          }
          return $languageCodes;
      }
code: public function getAvailableLanguageCodes()
      {
          $cache = Cache::getTransientCache();
          $cacheId = 'transifex_languagescodes_' . $this->projectSlug;
          $languageCodes = $cache->fetch($cacheId);
  
          if (empty($languageCodes)) {
              $apiData = $this->getApiResults('project/' . $this->projectSlug . '/languages');
              foreach ($apiData as $languageData) {
                  $languageCodes[] = $languageData->language_code;
              }
              $cache->save($cacheId, $languageCodes);
          }
          return $languageCodes;
      }
code_tokens: public function getAvailableLanguageCodes ( ) { $ cache = Cache :: getTransientCache ( ) ; $ cacheId = 'transifex_languagescodes_' . $ this -> projectSlug ; $ languageCodes = $ cache -> fetch ( $ cacheId ) ; if ( empty ( $ languageCodes ) ) { $ apiData = $ this -> getApiResults ( 'project/' . $ this -> projectSlug . '/languages' ) ; foreach ( $ apiData as $ languageData ) { $ languageCodes [ ] = $ languageData -> language_code ; } $ cache -> save ( $ cacheId , $ languageCodes ) ; } return $ languageCodes ; }
docstring: Returns all language codes the transifex project is available for
  
  @return array
  @throws AuthenticationFailedException
  @throws Exception
docstring_tokens: Returns all language codes the transifex project is available for