original_string: public function getRequirements()
      {
          $requirements = &gplcart_static('install.requirements');
  
          if (isset($requirements)) {
              return (array) $requirements;
          }
  
          $requirements = (array) gplcart_config_get(GC_FILE_CONFIG_REQUIREMENT);
          $this->hook->attach('install.requirements', $requirements);
          return (array) $requirements;
      }
code: public function getRequirements()
      {
          $requirements = &gplcart_static('install.requirements');
  
          if (isset($requirements)) {
              return (array) $requirements;
          }
  
          $requirements = (array) gplcart_config_get(GC_FILE_CONFIG_REQUIREMENT);
          $this->hook->attach('install.requirements', $requirements);
          return (array) $requirements;
      }
code_tokens: public function getRequirements ( ) { $ requirements = & gplcart_static ( 'install.requirements' ) ; if ( isset ( $ requirements ) ) { return ( array ) $ requirements ; } $ requirements = ( array ) gplcart_config_get ( GC_FILE_CONFIG_REQUIREMENT ) ; $ this -> hook -> attach ( 'install.requirements' , $ requirements ) ; return ( array ) $ requirements ; }
docstring: Returns an array of requirements
  @return array
docstring_tokens: Returns an array of requirements