original_string: public function checkCore(array $module)
      {
          if (!isset($module['core'])) {
              throw new OutOfBoundsException($this->translation->text('Missing core version'));
          }
  
          if (version_compare(gplcart_version(), $module['core']) < 0) {
              throw new UnexpectedValueException($this->translation->text('Module incompatible with the current system core version'));
          }
  
          return true;
      }
code: public function checkCore(array $module)
      {
          if (!isset($module['core'])) {
              throw new OutOfBoundsException($this->translation->text('Missing core version'));
          }
  
          if (version_compare(gplcart_version(), $module['core']) < 0) {
              throw new UnexpectedValueException($this->translation->text('Module incompatible with the current system core version'));
          }
  
          return true;
      }
code_tokens: public function checkCore ( array $ module ) { if ( ! isset ( $ module [ 'core' ] ) ) { throw new OutOfBoundsException ( $ this -> translation -> text ( 'Missing core version' ) ) ; } if ( version_compare ( gplcart_version ( ) , $ module [ 'core' ] ) < 0 ) { throw new UnexpectedValueException ( $ this -> translation -> text ( 'Module incompatible with the current system core version' ) ) ; } return true ; }
docstring: Checks core version requirements
  @param array $module
  @return boolean
  @throws OutOfBoundsException
  @throws UnexpectedValueException
docstring_tokens: Checks core version requirements