![]() Server : Apache System : Linux server2.corals.io 4.18.0-348.2.1.el8_5.x86_64 #1 SMP Mon Nov 15 09:17:08 EST 2021 x86_64 User : corals ( 1002) PHP Version : 7.4.33 Disable Function : exec,passthru,shell_exec,system Directory : /home/corals/demo.cartinsight.co/vendor/spatie/ray/src/Concerns/ |
<?php namespace Spatie\Ray\Concerns; use Spatie\Backtrace\Frame; trait RemovesRayFrames { protected function removeRayFrames(array $frames): array { $frames = array_filter($frames, function (Frame $frame) { return ! $this->isRayFrame($frame); }); return array_values($frames); } protected function isRayFrame(Frame $frame): bool { foreach ($this->rayNamespaces() as $rayNamespace) { if (substr((string)$frame->class, 0, strlen($rayNamespace)) === $rayNamespace) { return true; } } return false; } protected function rayNamespaces(): array { return [ 'Spatie\Ray', 'Spatie\LaravelRay', 'Spatie\WordPressRay', ]; } }