original_string: protected function getCustomizedRuleKeysToKeepDefault(array $customRules)
      {
          $keys = [];
  
          foreach ($customRules as $key => $ruleParts) {
  
              // If the configured value is the name of a key (and so it is a non-associative
              // part of the rules), it indicates that the default should be kept/copied over,
              // for the key the value denotes.
              if (is_string($ruleParts) && is_numeric($key)) {
                  $keys[] = $ruleParts;
              }
          }
  
          return $keys;
      }
code: protected function getCustomizedRuleKeysToKeepDefault(array $customRules)
      {
          $keys = [];
  
          foreach ($customRules as $key => $ruleParts) {
  
              // If the configured value is the name of a key (and so it is a non-associative
              // part of the rules), it indicates that the default should be kept/copied over,
              // for the key the value denotes.
              if (is_string($ruleParts) && is_numeric($key)) {
                  $keys[] = $ruleParts;
              }
          }
  
          return $keys;
      }
code_tokens: protected function getCustomizedRuleKeysToKeepDefault ( array $ customRules ) { $ keys = [ ] ; foreach ( $ customRules as $ key => $ ruleParts ) { // If the configured value is the name of a key (and so it is a non-associative // part of the rules), it indicates that the default should be kept/copied over, // for the key the value denotes. if ( is_string ( $ ruleParts ) && is_numeric ( $ key ) ) { $ keys [ ] = $ ruleParts ; } } return $ keys ; }
docstring: Returns keys for rules that should be kept from the default generated rules,
  even when in replace mode.
  
  @param array $customRules
  @return string[]
docstring_tokens: Returns keys for rules that should be kept from the default generated rules even when in replace mode .