original_string: protected function isWildCallable($callable, $replaceWith = false)
      {
          $isWild = false;
  
          if (is_string($callable) && strpos($callable, '*') !== false) {
              $isWild = $replaceWith ? str_replace('*', $replaceWith, $callable) : true;
          }
  
          if (is_array($callable)) {
              if (is_string($callable[0]) && strpos($callable[0], '*') !== false) {
                  if ($replaceWith) {
                      $isWild = $callable;
                      $isWild[0] = str_replace('*', $replaceWith, $callable[0]);
                  }
                  else {
                      $isWild = true;
                  }
              }
  
              if (!empty($callable[1]) && strpos($callable[1], '*') !== false) {
                  if ($replaceWith) {
                      $isWild = $isWild ?: $callable;
                      $isWild[1] = str_replace('*', $replaceWith, $callable[1]);
                  }
                  else {
                      $isWild = true;
                  }
              }
          }
  
          return $isWild;
      }
code: protected function isWildCallable($callable, $replaceWith = false)
      {
          $isWild = false;
  
          if (is_string($callable) && strpos($callable, '*') !== false) {
              $isWild = $replaceWith ? str_replace('*', $replaceWith, $callable) : true;
          }
  
          if (is_array($callable)) {
              if (is_string($callable[0]) && strpos($callable[0], '*') !== false) {
                  if ($replaceWith) {
                      $isWild = $callable;
                      $isWild[0] = str_replace('*', $replaceWith, $callable[0]);
                  }
                  else {
                      $isWild = true;
                  }
              }
  
              if (!empty($callable[1]) && strpos($callable[1], '*') !== false) {
                  if ($replaceWith) {
                      $isWild = $isWild ?: $callable;
                      $isWild[1] = str_replace('*', $replaceWith, $callable[1]);
                  }
                  else {
                      $isWild = true;
                  }
              }
          }
  
          return $isWild;
      }
code_tokens: protected function isWildCallable ( $ callable , $ replaceWith = false ) { $ isWild = false ; if ( is_string ( $ callable ) && strpos ( $ callable , '*' ) !== false ) { $ isWild = $ replaceWith ? str_replace ( '*' , $ replaceWith , $ callable ) : true ; } if ( is_array ( $ callable ) ) { if ( is_string ( $ callable [ 0 ] ) && strpos ( $ callable [ 0 ] , '*' ) !== false ) { if ( $ replaceWith ) { $ isWild = $ callable ; $ isWild [ 0 ] = str_replace ( '*' , $ replaceWith , $ callable [ 0 ] ) ; } else { $ isWild = true ; } } if ( ! empty ( $ callable [ 1 ] ) && strpos ( $ callable [ 1 ] , '*' ) !== false ) { if ( $ replaceWith ) { $ isWild = $ isWild ? : $ callable ; $ isWild [ 1 ] = str_replace ( '*' , $ replaceWith , $ callable [ 1 ] ) ; } else { $ isWild = true ; } } } return $ isWild ; }
docstring: Tests if a callable type contains a wildcard, also acts as a
  utility to replace the wildcard with a string.
  @param  callable  $callable
  @param  string|bool $replaceWith
  @return mixed
docstring_tokens: Tests if a callable type contains a wildcard also acts as a utility to replace the wildcard with a string .