original_string: public function checkPhpVersion(array $module)
      {
          if (!empty($module['php'])) {
  
              $components = $this->getVersionComponents($module['php']);
  
              if (empty($components)) {
                  throw new UnexpectedValueException($this->translation->text('Failed to read PHP version'));
              }
  
              list($operator, $number) = $components;
  
              if (!version_compare(PHP_VERSION, $number, $operator)) {
                  $error = $this->translation->text('Requires incompatible version of @name', array('@name' => 'PHP'));
                  throw new UnexpectedValueException($error);
              }
          }
  
          return true;
      }
code: public function checkPhpVersion(array $module)
      {
          if (!empty($module['php'])) {
  
              $components = $this->getVersionComponents($module['php']);
  
              if (empty($components)) {
                  throw new UnexpectedValueException($this->translation->text('Failed to read PHP version'));
              }
  
              list($operator, $number) = $components;
  
              if (!version_compare(PHP_VERSION, $number, $operator)) {
                  $error = $this->translation->text('Requires incompatible version of @name', array('@name' => 'PHP'));
                  throw new UnexpectedValueException($error);
              }
          }
  
          return true;
      }
code_tokens: public function checkPhpVersion ( array $ module ) { if ( ! empty ( $ module [ 'php' ] ) ) { $ components = $ this -> getVersionComponents ( $ module [ 'php' ] ) ; if ( empty ( $ components ) ) { throw new UnexpectedValueException ( $ this -> translation -> text ( 'Failed to read PHP version' ) ) ; } list ( $ operator , $ number ) = $ components ; if ( ! version_compare ( PHP_VERSION , $ number , $ operator ) ) { $ error = $ this -> translation -> text ( 'Requires incompatible version of @name' , array ( '@name' => 'PHP' ) ) ; throw new UnexpectedValueException ( $ error ) ; } } return true ; }
docstring: Checks PHP version compatibility for the module ID
  @param array $module
  @return boolean
  @throws UnexpectedValueException
docstring_tokens: Checks PHP version compatibility for the module ID