original_string: protected function checkDependenciesModule($module_id)
      {
          $modules = $this->module->getList();
          $validated = $this->validateDependencies($modules, true);
  
          if (empty($validated[$module_id]['errors'])) {
              return true;
          }
  
          $messages = array();
          foreach ($validated[$module_id]['errors'] as $error) {
              list($text, $arguments) = $error;
              $messages[] = $this->translation->text($text, $arguments);
          }
  
          throw new UnexpectedValueException(implode('<br>', $messages));
      }
code: protected function checkDependenciesModule($module_id)
      {
          $modules = $this->module->getList();
          $validated = $this->validateDependencies($modules, true);
  
          if (empty($validated[$module_id]['errors'])) {
              return true;
          }
  
          $messages = array();
          foreach ($validated[$module_id]['errors'] as $error) {
              list($text, $arguments) = $error;
              $messages[] = $this->translation->text($text, $arguments);
          }
  
          throw new UnexpectedValueException(implode('<br>', $messages));
      }
code_tokens: protected function checkDependenciesModule ( $ module_id ) { $ modules = $ this -> module -> getList ( ) ; $ validated = $ this -> validateDependencies ( $ modules , true ) ; if ( empty ( $ validated [ $ module_id ] [ 'errors' ] ) ) { return true ; } $ messages = array ( ) ; foreach ( $ validated [ $ module_id ] [ 'errors' ] as $ error ) { list ( $ text , $ arguments ) = $ error ; $ messages [ ] = $ this -> translation -> text ( $ text , $ arguments ) ; } throw new UnexpectedValueException ( implode ( '<br>' , $ messages ) ) ; }
docstring: Checks module dependencies
  @param string $module_id
  @return boolean
  @throws UnexpectedValueException
docstring_tokens: Checks module dependencies