original_string: public function contains($needle, $caseSensitive = null)
      {
          if ('' === $needle) {
              return true;
          }
          if (null === $caseSensitive) {
              $caseSensitive = false;
          }
  
          if ($caseSensitive) {
              return false !== mb_strpos($this->string(), $needle);
          }
  
          return false !== mb_stripos($this->string(), $needle);
      }
code: public function contains($needle, $caseSensitive = null)
      {
          if ('' === $needle) {
              return true;
          }
          if (null === $caseSensitive) {
              $caseSensitive = false;
          }
  
          if ($caseSensitive) {
              return false !== mb_strpos($this->string(), $needle);
          }
  
          return false !== mb_stripos($this->string(), $needle);
      }
code_tokens: public function contains ( $ needle , $ caseSensitive = null ) { if ( '' === $ needle ) { return true ; } if ( null === $ caseSensitive ) { $ caseSensitive = false ; } if ( $ caseSensitive ) { return false !== mb_strpos ( $ this -> string ( ) , $ needle ) ; } return false !== mb_stripos ( $ this -> string ( ) , $ needle ) ; }
docstring: Determine if this path contains a substring.
  
  @param string       $needle        The substring to search for.
  @param boolean|null $caseSensitive True if case sensitive.
  
  @return boolean True if this path contains the substring.
docstring_tokens: Determine if this path contains a substring .