original_string: public static function getLanguages($languages, $owner)
      {
          if (!$languages && isset(Yii::$app->params['languages'])) {
              $languages = Yii::$app->params['languages'];
          }
  
          if (!is_array($languages) || empty($languages)) {
              throw new InvalidConfigException('Please specify array of available languages in the '
              . get_class($owner) . ' or in the application parameters');
          }
  
          return $languages;
      }
code: public static function getLanguages($languages, $owner)
      {
          if (!$languages && isset(Yii::$app->params['languages'])) {
              $languages = Yii::$app->params['languages'];
          }
  
          if (!is_array($languages) || empty($languages)) {
              throw new InvalidConfigException('Please specify array of available languages in the '
              . get_class($owner) . ' or in the application parameters');
          }
  
          return $languages;
      }
code_tokens: public static function getLanguages ( $ languages , $ owner ) { if ( ! $ languages && isset ( Yii :: $ app -> params [ 'languages' ] ) ) { $ languages = Yii :: $ app -> params [ 'languages' ] ; } if ( ! is_array ( $ languages ) || empty ( $ languages ) ) { throw new InvalidConfigException ( 'Please specify array of available languages in the ' . get_class ( $ owner ) . ' or in the application parameters' ) ; } return $ languages ; }
docstring: Validates and returns list of languages.
  
  @param array $languages
  @param \yii\base\Object $owner
  @return array
  @throws InvalidConfigException
docstring_tokens: Validates and returns list of languages .