original_string: protected function _modifyRulesChecker(Event $event)
      {
          $rulesChecker = $event->subject->viewVars['rulesChecker'];
  
          foreach ($rulesChecker as $key => $config) {
              if (Hash::get($config, 'extra') !== 'Versions' || $key !== 'version_id') {
                  continue;
              }
  
              unset($rulesChecker[$key]);
          }
  
          return $rulesChecker;
      }
code: protected function _modifyRulesChecker(Event $event)
      {
          $rulesChecker = $event->subject->viewVars['rulesChecker'];
  
          foreach ($rulesChecker as $key => $config) {
              if (Hash::get($config, 'extra') !== 'Versions' || $key !== 'version_id') {
                  continue;
              }
  
              unset($rulesChecker[$key]);
          }
  
          return $rulesChecker;
      }
code_tokens: protected function _modifyRulesChecker ( Event $ event ) { $ rulesChecker = $ event -> subject -> viewVars [ 'rulesChecker' ] ; foreach ( $ rulesChecker as $ key => $ config ) { if ( Hash :: get ( $ config , 'extra' ) !== 'Versions' || $ key !== 'version_id' ) { continue ; } unset ( $ rulesChecker [ $ key ] ) ; } return $ rulesChecker ; }
docstring: Removes unnecessary rulesChecker entries
  
  @param Event $event An Event instance
  @return array
docstring_tokens: Removes unnecessary rulesChecker entries