->implode('.');
if (str($fullName)->startsWith($namespace)) {
return (string) str($fullName)->substr(strlen($namespace) + 1);
}
return $fullName;
if (str($fullName)->startsWith($namespace)) {
return (string) str($fullName)->substr(strlen($namespace) + 1);
}
return $fullName;
);
$tagName = $matches[1][0];
$lengthOfTagName = strlen($tagName);
$positionOfFirstCharacterInTagName = $matches[1][1];
return substr_replace(
$tagName = $matches[1][0];
$lengthOfTagName = strlen($tagName);
$positionOfFirstCharacterInTagName = $matches[1][1];
return substr_replace(
Validator::make(
[
'foo_length' => strlen($this->foo),
'bar_length' => strlen($this->bar),
],
[ 'foo_length' => 'same:bar_length' ],
[
'foo_length' => strlen($this->foo),
'bar_length' => strlen($this->bar),
],
[ 'foo_length' => 'same:bar_length' ],
Validator::make(
[
'foo_length' => strlen($this->foo),
'bar_length' => strlen($this->bar),
],
[ 'foo_length' => 'same:bar_length' ],
[ 'same' => 'Lengths must be the same' ]
[
'foo_length' => strlen($this->foo),
'bar_length' => strlen($this->bar),
],
[ 'foo_length' => 'same:bar_length' ],
[ 'same' => 'Lengths must be the same' ]
foreach ($this->eagerLoad as $name => $constraints) {
if ($this->isNestedUnder($relation, $name)) {
$nested[substr($name, strlen($relation.'.'))] = $constraints;
}
}
if ($this->isNestedUnder($relation, $name)) {
$nested[substr($name, strlen($relation.'.'))] = $constraints;
}
}
$migrations = collect(preg_split("/\r\n|\n|\r/", $process->getOutput()))->filter(function ($line) {
return stripos($line, 'sqlite_sequence') === false &&
strlen($line) > 0;
})->all();
$this->files->put($path, implode(PHP_EOL, $migrations).PHP_EOL);
return stripos($line, 'sqlite_sequence') === false &&
strlen($line) > 0;
})->all();
$this->files->put($path, implode(PHP_EOL, $migrations).PHP_EOL);
$migrations = collect(preg_split("/\r\n|\n|\r/", $process->getOutput()))->filter(function ($line) {
return preg_match('/^\s*(--|INSERT\s)/iu', $line) === 1 &&
strlen($line) > 0;
})->all();
$this->files->append($path, implode(PHP_EOL, $migrations).PHP_EOL);
return preg_match('/^\s*(--|INSERT\s)/iu', $line) === 1 &&
strlen($line) > 0;
})->all();
$this->files->append($path, implode(PHP_EOL, $migrations).PHP_EOL);
protected function validPayload($payload)
{
return is_array($payload) && isset($payload['iv'], $payload['value'], $payload['mac']) &&
strlen(base64_decode($payload['iv'], true)) === openssl_cipher_iv_length(strtolower($this->cipher));
}
{
return is_array($payload) && isset($payload['iv'], $payload['value'], $payload['mac']) &&
strlen(base64_decode($payload['iv'], true)) === openssl_cipher_iv_length(strtolower($this->cipher));
}
protected function ensureTagIsValid($tag)
{
if (self::$supportedCiphers[strtolower($this->cipher)]['aead'] && strlen($tag) !== 16) {
throw new DecryptException('Could not decrypt the data.');
}
{
if (self::$supportedCiphers[strtolower($this->cipher)]['aead'] && strlen($tag) !== 16) {
throw new DecryptException('Could not decrypt the data.');
}
$replacements = [
str_replace('/', '\\', dirname(str_replace('\\', '/', $alias))),
class_basename($alias),
substr($alias, strlen(static::$facadeNamespace)),
];
return str_replace(
str_replace('/', '\\', dirname(str_replace('\\', '/', $alias))),
class_basename($alias),
substr($alias, strlen(static::$facadeNamespace)),
];
return str_replace(
{
$currentKey = $this->laravel['config']['app.key'];
if (strlen($currentKey) !== 0 && (! $this->confirmToProceed())) {
return false;
}
$currentKey = $this->laravel['config']['app.key'];
if (strlen($currentKey) !== 0 && (! $this->confirmToProceed())) {
return false;
}
public function check($value, $hashedValue, array $options = [])
{
if (strlen($hashedValue) === 0) {
return false;
}
{
if (strlen($hashedValue) === 0) {
return false;
}
throw new RuntimeException('This password does not use the Argon2id algorithm.');
}
if (strlen($hashedValue) === 0) {
return false;
}
}
if (strlen($hashedValue) === 0) {
return false;
}
$parameters = array_intersect_key($matches, array_flip($parameterNames));
return array_filter($parameters, function ($value) {
return is_string($value) && strlen($value) > 0;
});
}
return array_filter($parameters, function ($value) {
return is_string($value) && strlen($value) > 0;
});
}
public function isValidId($id)
{
return is_string($id) && ctype_alnum($id) && strlen($id) === 40;
}
{
return is_string($id) && ctype_alnum($id) && strlen($id) === 40;
}