original_string: private static function explodeOnCaps(string $string): array
      {
          $string = preg_replace('/\B([A-Z])/', '_\1', $string);
          $string = preg_replace('/([0-9]+)/', '_\1', $string);
          $string = preg_replace('/_+/', '_', $string);
          $string = trim($string, '_');
  
          return explode('_', $string);
      }
code: private static function explodeOnCaps(string $string): array
      {
          $string = preg_replace('/\B([A-Z])/', '_\1', $string);
          $string = preg_replace('/([0-9]+)/', '_\1', $string);
          $string = preg_replace('/_+/', '_', $string);
          $string = trim($string, '_');
  
          return explode('_', $string);
      }
code_tokens: private static function explodeOnCaps ( string $ string ) : array { $ string = preg_replace ( '/\B([A-Z])/' , '_\1' , $ string ) ; $ string = preg_replace ( '/([0-9]+)/' , '_\1' , $ string ) ; $ string = preg_replace ( '/_+/' , '_' , $ string ) ; $ string = trim ( $ string , '_' ) ; return explode ( '_' , $ string ) ; }
docstring: Splits a string into a list on capital letters
  
  @param string $string The input string
  
  @return array
docstring_tokens: Splits a string into a list on capital letters