<?php 'Etag' => md5($content)
]);
}])->where(['template' => join('|', array_keys($config->get('imagecache::templates'))), 'filename' => '[ \w\\.\\/\\-]+']);
}
}
}
<?php public function stageException(string $method, string $path, FilesystemOperationFailed $exception): void
{
$this->stagedExceptions[join('@', [$method, $path])] = $exception;
}
private function throwStagedException(string $method, $path): void
<?php private function throwStagedException(string $method, $path): void
{
$method = preg_replace('~.+::~', '', $method);
$key = join('@', [$method, $path]);
if ( ! array_key_exists($key, $this->stagedExceptions)) {
return;
<?php return null;
}
return self::tidy(join('/', $args));
}
<?php $key = 'statamic::validation.'.$this->name;
if (in_array($this->name, ['mimes', 'mimetypes'])) {
$replace = ['values' => join(', ', $this->parameters)];
}
return __($key, $replace ?? []);
<?php unset($submission['id']);
return collect($submission)->map(function ($value) {
return (is_array($value)) ? join(', ', $value) : $value;
})->all();
})->all();
<?php switch ($length) {
case 0:
case 1:
return join('', $list);
break;
case 2:
<?php break;
case 2:
return join(' '.$glue.' ', $list);
break;
default:
<?php default:
$last = array_pop($list);
$sentence = join(', ', $list);
$sentence .= ($oxford_comma) ? ',' : '';
return $sentence.' '.$glue.' '.$last;
<?php ];
$allowed_tags = array_diff($all_tags, $tags_list);
$allowed_tag_string = '<'.join('><', $allowed_tags).'>';
return strip_tags($html, $allowed_tag_string);
}
<?php }
$crumbs = collect($segments)->map(function () use (&$segments) {
$uri = URL::tidy(join('/', $segments));
array_pop($segments);
return $uri;
<?php $segment_urls = [];
for ($i = 1; $i <= $segment_count; $i++) {
$segment_urls[] = URL::tidy(join('/', $segments));
array_pop($segments);
}
<?php explode('/', $packageName)
);
return join('\\', $namespace);
}