<?php class_exists(string $class, bool $autoload = true): bool
<?php protected function addToDebugBar($data, $formHandle) { if (! function_exists('debugbar') || ! class_exists(ConfigCollector::class)) { return; }
<?php $exporter = 'Statamic\Forms\Exporters\\'.Str::studly($type).'Exporter'; if (! class_exists($exporter)) { throw new FatalException("Exporter of type [$type] does not exist."); }
<?php { $prefix = ''; if (class_exists(Nova::class)) { $prefix = '(?!'.trim(Nova::path(), '/').')'; }
<?php $one = Str::lower($one); $two = Str::lower($two); if (! class_exists(Collator::class)) { return strcmp($one, $two); }
<?php protected function viewException($e, $data) { if (! class_exists(ViewException::class)) { return $e; }