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;
    }
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;
    }
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 ; }
Removes unnecessary rulesChecker entries

@param Event $event An Event instance
@return array
Removes unnecessary rulesChecker entries