vendor/guzzle/guzzle/src/Guzzle/Http/Curl/CurlHandle.php 1 location
|
@@ 53-56 (lines=4) @@
|
50 |
|
|
51 |
|
// Prepare url |
52 |
|
$url = (string)$request->getUrl(); |
53 |
|
if(($pos = strpos($url, '#')) !== false ){ |
54 |
|
// strip fragment from url |
55 |
|
$url = substr($url, 0, $pos); |
56 |
|
} |
57 |
|
|
58 |
|
// Array of default cURL options. |
59 |
|
$curlOptions = array( |
vendor/psy/psysh/src/Psy/Readline/Libedit.php 1 location
|
@@ 77-79 (lines=3) @@
|
74 |
|
} |
75 |
|
// if "\0" is found in an entry, then |
76 |
|
// everything from it until the end of line is a comment. |
77 |
|
if (($pos = strpos($line, "\0")) !== false) { |
78 |
|
$line = substr($line, 0, $pos); |
79 |
|
} |
80 |
|
|
81 |
|
return ($line !== '') ? Str::unvis($line) : null; |
82 |
|
} |
vendor/symfony/console/Input/ArgvInput.php 1 location
|
@@ 325-327 (lines=3) @@
|
322 |
|
|
323 |
|
foreach ($values as $value) { |
324 |
|
if ($token === $value || 0 === strpos($token, $value.'=')) { |
325 |
|
if (false !== $pos = strpos($token, '=')) { |
326 |
|
return substr($token, $pos + 1); |
327 |
|
} |
328 |
|
|
329 |
|
return array_shift($tokens); |
330 |
|
} |