<?php preg_match( string $pattern, string $subject, array &$matches = null, int $flags = 0, int $offset = 0): int|false
<?php } $contents = $filesystem->get($draft); $using_indexes = preg_match('/^\s+indexes:\R/m', $contents) !== 1; $tokens = $blueprint->parse($contents, $using_indexes); $tokens['cache'] = $cache['models'] ?? [];
<?php function ($option) { $raw_value = str_replace("''", "'", trim($option, "'")); if (!preg_match('/\s/', $raw_value)) { return $raw_value; }
<?php { $to = null; $found = preg_match('/\\s+to:(\\S+)/', $statement, $matches); if ($found) { $to = $matches[1]; $statement = str_replace($matches[0], '', $statement);
<?php return new QueryStatement('all'); } $found = preg_match('/^all:(\\S+)$/', $statement, $matches); if ($found) { return new QueryStatement('all', [$matches[1]]); }
<?php return new QueryStatement('pluck', $this->extractTokens($statement)); } $found = preg_match('/\b(count|exists)\b/', $statement, $matches); if ($found) { return new QueryStatement($matches[1], $this->extractTokens(trim(str_replace($matches[1], '', $statement)))); }
<?php public function isNamedEvent(): bool { return preg_match('/^[a-z0-9.]+$/', $this->event) === 1; }
<?php } $content = $this->filesystem->get($file->getPathName()); preg_match("/namespace ([\w\\\\]+)/", $content, $namespace); preg_match("/class (\w+)/", $content, $class); return ($namespace[1] ?? '').'\\'.($class[1] ?? '');
<?php $content = $this->filesystem->get($file->getPathName()); preg_match("/namespace ([\w\\\\]+)/", $content, $namespace); preg_match("/class (\w+)/", $content, $class); return ($namespace[1] ?? '').'\\'.($class[1] ?? ''); }, $classes));