repo
stringlengths
7
63
file_url
stringlengths
81
284
file_path
stringlengths
5
200
content
stringlengths
0
32.8k
language
stringclasses
1 value
license
stringclasses
7 values
commit_sha
stringlengths
40
40
retrieved_at
stringdate
2026-01-04 15:02:33
2026-01-05 05:24:06
truncated
bool
2 classes
emir/kapi
https://github.com/emir/kapi/blob/56806e319da824843265d010b4f7a298f7a77795/tests/ExampleTest.php
tests/ExampleTest.php
<?php namespace Tests; class ExampleTest extends TestCase { /** * A basic test example. * * @return void */ public function testBasicTest() { $this->assertTrue(true); } }
php
MIT
56806e319da824843265d010b4f7a298f7a77795
2026-01-05T03:15:43.054374Z
false
emir/kapi
https://github.com/emir/kapi/blob/56806e319da824843265d010b4f7a298f7a77795/public/index.php
public/index.php
<?php if (PHP_SAPI === 'cli-server') { $url = parse_url($_SERVER['REQUEST_URI']); $file = __DIR__ . $url['path']; if (is_file($file)) { return false; } } require __DIR__ . '/../bootstrap.php';
php
MIT
56806e319da824843265d010b4f7a298f7a77795
2026-01-05T03:15:43.054374Z
false
emir/kapi
https://github.com/emir/kapi/blob/56806e319da824843265d010b4f7a298f7a77795/migrations/20180423125618_create_books_table.php
migrations/20180423125618_create_books_table.php
<?php use Phinx\Migration\AbstractMigration; class CreateBooksTable extends AbstractMigration { /** * Migrate Up. */ public function up() { $users = $this->table('books'); $users->addColumn('name', 'string', ['limit' => 200]) ->addColumn('created_at', 'timestamp', ['d...
php
MIT
56806e319da824843265d010b4f7a298f7a77795
2026-01-05T03:15:43.054374Z
false
taskphp/task
https://github.com/taskphp/task/blob/7618739308ba484b5f90a83d5e1a44e1d90968d2/src/Exception.php
src/Exception.php
<?php namespace Task; class Exception extends \Exception {}
php
MIT
7618739308ba484b5f90a83d5e1a44e1d90968d2
2026-01-05T03:15:52.362242Z
false
taskphp/task
https://github.com/taskphp/task/blob/7618739308ba484b5f90a83d5e1a44e1d90968d2/src/Project.php
src/Project.php
<?php namespace Task; use Symfony\Component\Console\Application; use Symfony\Component\Console\Input\InputInterface; use Symfony\Component\Console\Input\InputDefinition; use Symfony\Component\Console\Input\InputOption; use Symfony\Component\Console\Output\OutputInterface; use Task\Plugin\Console\Output\Output; use Sy...
php
MIT
7618739308ba484b5f90a83d5e1a44e1d90968d2
2026-01-05T03:15:52.362242Z
false
taskphp/task
https://github.com/taskphp/task/blob/7618739308ba484b5f90a83d5e1a44e1d90968d2/src/Injector.php
src/Injector.php
<?php namespace Task; class Injector { protected $container; public function __construct(\Pimple $container) { $this->container = $container; } public function __invoke(array $arguments, $bindTo = null) { $callback = array_pop($arguments); if (!is_callable($callback)...
php
MIT
7618739308ba484b5f90a83d5e1a44e1d90968d2
2026-01-05T03:15:52.362242Z
false
taskphp/task
https://github.com/taskphp/task/blob/7618739308ba484b5f90a83d5e1a44e1d90968d2/src/Console/Command/Command.php
src/Console/Command/Command.php
<?php namespace Task\Console\Command; use Symfony\Component\Console\Command\Command as BaseCommand; use Symfony\Component\Console\Input\InputInterface; use Symfony\Component\Console\Output\OutputInterface; use Task\Project; use Task\Plugin\Stream\WritableInterface; use Task\Plugin\Console\Output\ProxyOutput; class C...
php
MIT
7618739308ba484b5f90a83d5e1a44e1d90968d2
2026-01-05T03:15:52.362242Z
false
taskphp/task
https://github.com/taskphp/task/blob/7618739308ba484b5f90a83d5e1a44e1d90968d2/src/Console/Command/GroupCommand.php
src/Console/Command/GroupCommand.php
<?php namespace Task\Console\Command; use Task\Project; use Symfony\Component\Console\Input\InputInterface; use Symfony\Component\Console\Output\OutputInterface; use Task\Console\Command\Command; class GroupCommand extends Command { protected $project; protected $tasks; public function __construct($name...
php
MIT
7618739308ba484b5f90a83d5e1a44e1d90968d2
2026-01-05T03:15:52.362242Z
false
taskphp/task
https://github.com/taskphp/task/blob/7618739308ba484b5f90a83d5e1a44e1d90968d2/src/Console/Command/ShellCommand.php
src/Console/Command/ShellCommand.php
<?php namespace Task\Console\Command; use Symfony\Component\Console\Shell; use Symfony\Component\Console\Command\Command as BaseCommand; use Symfony\Component\Console\Input\InputInterface; use Symfony\Component\Console\Output\OutputInterface; class ShellCommand extends BaseCommand { protected $shell; public...
php
MIT
7618739308ba484b5f90a83d5e1a44e1d90968d2
2026-01-05T03:15:52.362242Z
false
taskphp/task
https://github.com/taskphp/task/blob/7618739308ba484b5f90a83d5e1a44e1d90968d2/spec/Task/ProjectSpec.php
spec/Task/ProjectSpec.php
<?php namespace spec\Task; use org\bovigo\vfs\vfsStream; use PhpSpec\ObjectBehavior; use Symfony\Component\Console\Input\InputInterface; use Symfony\Component\Console\Input\ArrayInput; use Symfony\Component\Console\Output\OutputInterface; use Task\Plugin\Console\Output\Output; use Symfony\Component\Console\Command\Co...
php
MIT
7618739308ba484b5f90a83d5e1a44e1d90968d2
2026-01-05T03:15:52.362242Z
false
taskphp/task
https://github.com/taskphp/task/blob/7618739308ba484b5f90a83d5e1a44e1d90968d2/spec/Task/InjectorSpec.php
spec/Task/InjectorSpec.php
<?php namespace spec\Task; use PhpSpec\ObjectBehavior; use Symfony\Component\Console\Output\OutputInterface; class InjectorSpec extends ObjectBehavior { function let(\Pimple $container) { $this->beConstructedWith($container); } function it_is_initializable() { $this->shouldHaveTy...
php
MIT
7618739308ba484b5f90a83d5e1a44e1d90968d2
2026-01-05T03:15:52.362242Z
false
taskphp/task
https://github.com/taskphp/task/blob/7618739308ba484b5f90a83d5e1a44e1d90968d2/spec/Task/Console/Command/ShellCommandSpec.php
spec/Task/Console/Command/ShellCommandSpec.php
<?php namespace spec\Task\Console\Command; use PhpSpec\ObjectBehavior; use Symfony\Component\Console\Shell; use Symfony\Component\Console\Input\InputInterface; use Symfony\Component\Console\Output\OutputInterface; use Symfony\Component\Console\Helper\HelperSet; use Symfony\Component\Console\Application; class ShellC...
php
MIT
7618739308ba484b5f90a83d5e1a44e1d90968d2
2026-01-05T03:15:52.362242Z
false
taskphp/task
https://github.com/taskphp/task/blob/7618739308ba484b5f90a83d5e1a44e1d90968d2/spec/Task/Console/Command/GroupCommandSpec.php
spec/Task/Console/Command/GroupCommandSpec.php
<?php namespace spec\Task\Console\Command; use PhpSpec\ObjectBehavior; use Prophecy\Argument; use Task\Project; use Task\Console\Command\Command; use Symfony\Component\Console\Input\InputInterface; use Symfony\Component\Console\Output\OutputInterface; class GroupCommandSpec extends ObjectBehavior { private $proj...
php
MIT
7618739308ba484b5f90a83d5e1a44e1d90968d2
2026-01-05T03:15:52.362242Z
false
taskphp/task
https://github.com/taskphp/task/blob/7618739308ba484b5f90a83d5e1a44e1d90968d2/spec/Task/Console/Command/CommandSpec.php
spec/Task/Console/Command/CommandSpec.php
<?php namespace spec\Task\Console\Command; use PhpSpec\ObjectBehavior; use Task\Plugin\Console\Output\Output; use Task\Plugin\Console\Output\ProxyOutput; use Task\Console\Command\Command; use Task\Project; use Symfony\Component\Console\Helper\HelperSet; use Symfony\Component\Console\Output\OutputInterface; use Symfon...
php
MIT
7618739308ba484b5f90a83d5e1a44e1d90968d2
2026-01-05T03:15:52.362242Z
false
Seldaek/signal-handler
https://github.com/Seldaek/signal-handler/blob/606a192bf4783dd811b906e4a64b0866d16e61a9/src/SignalHandler.php
src/SignalHandler.php
<?php /* * This file is part of signal-handler. * * (c) Jordi Boggiano <j.boggiano@seld.be> * * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ namespace Seld\Signal; use Psr\Log\LoggerInterface; use Closure; use WeakReference; /**...
php
MIT
606a192bf4783dd811b906e4a64b0866d16e61a9
2026-01-05T03:16:01.862255Z
false
Seldaek/signal-handler
https://github.com/Seldaek/signal-handler/blob/606a192bf4783dd811b906e4a64b0866d16e61a9/tests/SignalHandlerTest.php
tests/SignalHandlerTest.php
<?php namespace Seld\Signal; use PHPUnit\Framework\TestCase; use Psr\Log\LoggerInterface; class SignalHandlerTest extends TestCase { /** @var array<string> */ private $logs; private function getLoggerMock(int $expectedCalls): LoggerInterface { $this->logs = []; $logger = $this->getM...
php
MIT
606a192bf4783dd811b906e4a64b0866d16e61a9
2026-01-05T03:16:01.862255Z
false
justbetter/magento2-sentry
https://github.com/justbetter/magento2-sentry/blob/61bcd4528c38f4305de681ab387d595aad3e29d6/registration.php
registration.php
<?php use Magento\Framework\Component\ComponentRegistrar; ComponentRegistrar::register( ComponentRegistrar::MODULE, 'JustBetter_Sentry', __DIR__ );
php
MIT
61bcd4528c38f4305de681ab387d595aad3e29d6
2026-01-05T03:16:15.099951Z
false
justbetter/magento2-sentry
https://github.com/justbetter/magento2-sentry/blob/61bcd4528c38f4305de681ab387d595aad3e29d6/Model/SentryLog.php
Model/SentryLog.php
<?php namespace JustBetter\Sentry\Model; use JustBetter\Sentry\Helper\Data; use Magento\Customer\Model\Session; use Magento\Framework\App\Area; use Magento\Framework\App\State; use Magento\Framework\Exception\LocalizedException; use Magento\Framework\Exception\SessionException; use Magento\Framework\Logger\Monolog; u...
php
MIT
61bcd4528c38f4305de681ab387d595aad3e29d6
2026-01-05T03:16:15.099951Z
false
justbetter/magento2-sentry
https://github.com/justbetter/magento2-sentry/blob/61bcd4528c38f4305de681ab387d595aad3e29d6/Model/PerformanceTracingDto.php
Model/PerformanceTracingDto.php
<?php declare(strict_types=1); namespace JustBetter\Sentry\Model; use Sentry\State\Scope; use Sentry\Tracing\Span; class PerformanceTracingDto { /** * PerformanceTracingDto constructor. * * @param Scope $scope * @param Span|null $parentSpan * @param Span|null $span */ publi...
php
MIT
61bcd4528c38f4305de681ab387d595aad3e29d6
2026-01-05T03:16:15.099951Z
false
justbetter/magento2-sentry
https://github.com/justbetter/magento2-sentry/blob/61bcd4528c38f4305de681ab387d595aad3e29d6/Model/SentryInteraction.php
Model/SentryInteraction.php
<?php declare(strict_types=1); namespace JustBetter\Sentry\Model; // phpcs:disable Magento2.Functions.DiscouragedFunction use JustBetter\Sentry\Helper\Data; use Magento\Authorization\Model\UserContextInterface; use Magento\Backend\Model\Auth\Session as AdminSession; use Magento\Customer\Model\Session as CustomerSes...
php
MIT
61bcd4528c38f4305de681ab387d595aad3e29d6
2026-01-05T03:16:15.099951Z
false
justbetter/magento2-sentry
https://github.com/justbetter/magento2-sentry/blob/61bcd4528c38f4305de681ab387d595aad3e29d6/Model/SentryPerformance.php
Model/SentryPerformance.php
<?php declare(strict_types=1); namespace JustBetter\Sentry\Model; // phpcs:disable Magento2.Functions.DiscouragedFunction use JustBetter\Sentry\Helper\Data; use Laminas\Http\Response; use Magento\Framework\App\Area; use Magento\Framework\App\Http; use Magento\Framework\App\Request\Http as HttpRequest; use Magento\F...
php
MIT
61bcd4528c38f4305de681ab387d595aad3e29d6
2026-01-05T03:16:15.099951Z
false
justbetter/magento2-sentry
https://github.com/justbetter/magento2-sentry/blob/61bcd4528c38f4305de681ab387d595aad3e29d6/Model/ReleaseIdentifier.php
Model/ReleaseIdentifier.php
<?php declare(strict_types=1); namespace JustBetter\Sentry\Model; use JustBetter\Sentry\Helper\Version; class ReleaseIdentifier { /** * ReleaseIdentifier constructor. * * @param Version $version */ public function __construct( private Version $version ) { } /** ...
php
MIT
61bcd4528c38f4305de681ab387d595aad3e29d6
2026-01-05T03:16:15.099951Z
false
justbetter/magento2-sentry
https://github.com/justbetter/magento2-sentry/blob/61bcd4528c38f4305de681ab387d595aad3e29d6/Model/SentryCron.php
Model/SentryCron.php
<?php namespace JustBetter\Sentry\Model; use JustBetter\Sentry\Helper\Data; use Magento\Cron\Model\Schedule; use Magento\Customer\Model\Session; use Sentry\CheckInStatus; use Sentry\MonitorConfig; use Sentry\MonitorSchedule; class SentryCron { /** * @var array */ protected array $runningCheckins = ...
php
MIT
61bcd4528c38f4305de681ab387d595aad3e29d6
2026-01-05T03:16:15.099951Z
false
justbetter/magento2-sentry
https://github.com/justbetter/magento2-sentry/blob/61bcd4528c38f4305de681ab387d595aad3e29d6/Model/Collector/SentryRelatedCspCollector.php
Model/Collector/SentryRelatedCspCollector.php
<?php namespace JustBetter\Sentry\Model\Collector; use JustBetter\Sentry\Helper\Data as DataHelper; use Laminas\Uri\UriFactory; use Magento\Csp\Api\PolicyCollectorInterface; use Magento\Csp\Model\Policy\FetchPolicy; class SentryRelatedCspCollector implements PolicyCollectorInterface { /** * @param DataHelpe...
php
MIT
61bcd4528c38f4305de681ab387d595aad3e29d6
2026-01-05T03:16:15.099951Z
false
justbetter/magento2-sentry
https://github.com/justbetter/magento2-sentry/blob/61bcd4528c38f4305de681ab387d595aad3e29d6/Model/Config/Source/LogLevel.php
Model/Config/Source/LogLevel.php
<?php namespace JustBetter\Sentry\Model\Config\Source; use Magento\Framework\Option\ArrayInterface; use Monolog\Logger; class LogLevel implements ArrayInterface { /** * Mapping of Monolog values to Strings. * * @return array */ public function toOptionArray() { return [ ...
php
MIT
61bcd4528c38f4305de681ab387d595aad3e29d6
2026-01-05T03:16:15.099951Z
false
justbetter/magento2-sentry
https://github.com/justbetter/magento2-sentry/blob/61bcd4528c38f4305de681ab387d595aad3e29d6/Model/Config/Source/ScriptTagPlacement.php
Model/Config/Source/ScriptTagPlacement.php
<?php namespace JustBetter\Sentry\Model\Config\Source; use Magento\Framework\Option\ArrayInterface; class ScriptTagPlacement implements ArrayInterface { /** * Mapping of script include positions to strings. * * @return array */ public function toOptionArray() { return [ ...
php
MIT
61bcd4528c38f4305de681ab387d595aad3e29d6
2026-01-05T03:16:15.099951Z
false
justbetter/magento2-sentry
https://github.com/justbetter/magento2-sentry/blob/61bcd4528c38f4305de681ab387d595aad3e29d6/Block/SentryScript.php
Block/SentryScript.php
<?php namespace JustBetter\Sentry\Block; use JustBetter\Sentry\Helper\Data as DataHelper; use JustBetter\Sentry\Helper\Version; use Magento\Framework\Serialize\Serializer\Json; use Magento\Framework\View\Element\Template; class SentryScript extends Template { public const CURRENT_VERSION = '8.7.0'; /** ...
php
MIT
61bcd4528c38f4305de681ab387d595aad3e29d6
2026-01-05T03:16:15.099951Z
false
justbetter/magento2-sentry
https://github.com/justbetter/magento2-sentry/blob/61bcd4528c38f4305de681ab387d595aad3e29d6/Block/Adminhtml/System/Config/DeploymentConfigInfo.php
Block/Adminhtml/System/Config/DeploymentConfigInfo.php
<?php namespace JustBetter\Sentry\Block\Adminhtml\System\Config; use JustBetter\Sentry\Helper\Version; use Magento\Backend\Block\Template\Context; use Magento\Config\Block\System\Config\Form\Field; use Magento\Framework\Data\Form\Element\AbstractElement; class DeploymentConfigInfo extends Field { /** * @var...
php
MIT
61bcd4528c38f4305de681ab387d595aad3e29d6
2026-01-05T03:16:15.099951Z
false
justbetter/magento2-sentry
https://github.com/justbetter/magento2-sentry/blob/61bcd4528c38f4305de681ab387d595aad3e29d6/Block/Adminhtml/System/Config/Button.php
Block/Adminhtml/System/Config/Button.php
<?php namespace JustBetter\Sentry\Block\Adminhtml\System\Config; use Magento\Config\Block\System\Config\Form\Field; use Magento\Framework\Data\Form\Element\AbstractElement; class Button extends Field { /** * @var string */ protected $_template = 'system/config/button.phtml'; /** * Unset s...
php
MIT
61bcd4528c38f4305de681ab387d595aad3e29d6
2026-01-05T03:16:15.099951Z
false
justbetter/magento2-sentry
https://github.com/justbetter/magento2-sentry/blob/61bcd4528c38f4305de681ab387d595aad3e29d6/Controller/Adminhtml/Test/Sentry.php
Controller/Adminhtml/Test/Sentry.php
<?php namespace JustBetter\Sentry\Controller\Adminhtml\Test; use JustBetter\Sentry\Helper\Data; use Magento\Backend\App\Action; use Magento\Backend\App\Action\Context; use Magento\Framework\Logger\Monolog; use Magento\Framework\Serialize\Serializer\Json; use Magento\Framework\View\Result\PageFactory; use Psr\Log\Logg...
php
MIT
61bcd4528c38f4305de681ab387d595aad3e29d6
2026-01-05T03:16:15.099951Z
false
justbetter/magento2-sentry
https://github.com/justbetter/magento2-sentry/blob/61bcd4528c38f4305de681ab387d595aad3e29d6/Logger/Handler/Sentry.php
Logger/Handler/Sentry.php
<?php namespace JustBetter\Sentry\Logger\Handler; use JustBetter\Sentry\Helper\Data; use JustBetter\Sentry\Model\SentryLog; use Magento\Framework\App\DeploymentConfig; use Monolog\Handler\AbstractHandler; use Monolog\Logger; use Monolog\LogRecord; // TODO: Remove once V2 support is dropped. // phpcs:disable Generic....
php
MIT
61bcd4528c38f4305de681ab387d595aad3e29d6
2026-01-05T03:16:15.099951Z
false
justbetter/magento2-sentry
https://github.com/justbetter/magento2-sentry/blob/61bcd4528c38f4305de681ab387d595aad3e29d6/Test/Unit/Plugin/GlobalExceptionCatcherTest.php
Test/Unit/Plugin/GlobalExceptionCatcherTest.php
<?php declare(strict_types=1); /** * @by SwiftOtter, Inc., 2019/09/13 * * @website https://swiftotter.com **/ namespace JustBetter\Sentry\Test\Unit\Plugin; use JustBetter\Sentry\Helper\Data; use JustBetter\Sentry\Model\ReleaseIdentifier; use JustBetter\Sentry\Model\SentryInteraction; use JustBetter\Sentry\Plugin...
php
MIT
61bcd4528c38f4305de681ab387d595aad3e29d6
2026-01-05T03:16:15.099951Z
false
justbetter/magento2-sentry
https://github.com/justbetter/magento2-sentry/blob/61bcd4528c38f4305de681ab387d595aad3e29d6/Plugin/CronScheduleCheckIn.php
Plugin/CronScheduleCheckIn.php
<?php namespace JustBetter\Sentry\Plugin; use JustBetter\Sentry\Model\SentryCron; use Magento\Cron\Model\Schedule; class CronScheduleCheckIn { /** * CronScheduleCheckIn constructor. * * @param SentryCron $sentryCron */ public function __construct( private SentryCron $sentryCron ...
php
MIT
61bcd4528c38f4305de681ab387d595aad3e29d6
2026-01-05T03:16:15.099951Z
false
justbetter/magento2-sentry
https://github.com/justbetter/magento2-sentry/blob/61bcd4528c38f4305de681ab387d595aad3e29d6/Plugin/SampleRequest.php
Plugin/SampleRequest.php
<?php namespace JustBetter\Sentry\Plugin; use JustBetter\Sentry\Model\SentryPerformance; use Magento\Framework\App\ResponseInterface; /** * Plugin to sample request and send them to Sentry. */ class SampleRequest { /** * SampleRequest constructor. * * @param SentryPerformance $sentryPerformance ...
php
MIT
61bcd4528c38f4305de681ab387d595aad3e29d6
2026-01-05T03:16:15.099951Z
false
justbetter/magento2-sentry
https://github.com/justbetter/magento2-sentry/blob/61bcd4528c38f4305de681ab387d595aad3e29d6/Plugin/LogrocketCustomerInfo.php
Plugin/LogrocketCustomerInfo.php
<?php namespace JustBetter\Sentry\Plugin; use Magento\Customer\CustomerData\Customer; use Magento\Customer\Helper\Session\CurrentCustomer; use Magento\Customer\Model\Session; class LogrocketCustomerInfo { /** * LogrocketCustomerInfo construct. * * @param CurrentCustomer $currentCustomer * @pa...
php
MIT
61bcd4528c38f4305de681ab387d595aad3e29d6
2026-01-05T03:16:15.099951Z
false
justbetter/magento2-sentry
https://github.com/justbetter/magento2-sentry/blob/61bcd4528c38f4305de681ab387d595aad3e29d6/Plugin/GlobalExceptionCatcher.php
Plugin/GlobalExceptionCatcher.php
<?php namespace JustBetter\Sentry\Plugin; // phpcs:disable Magento2.CodeAnalysis.EmptyBlock use JustBetter\Sentry\Helper\Data as SentryHelper; use JustBetter\Sentry\Model\ReleaseIdentifier; use JustBetter\Sentry\Model\SentryInteraction; use JustBetter\Sentry\Model\SentryPerformance; use Magento\Framework\AppInterfac...
php
MIT
61bcd4528c38f4305de681ab387d595aad3e29d6
2026-01-05T03:16:15.099951Z
false
justbetter/magento2-sentry
https://github.com/justbetter/magento2-sentry/blob/61bcd4528c38f4305de681ab387d595aad3e29d6/Plugin/CspModeConfigManagerPlugin.php
Plugin/CspModeConfigManagerPlugin.php
<?php declare(strict_types=1); namespace JustBetter\Sentry\Plugin; use JustBetter\Sentry\Helper\Data; use JustBetter\Sentry\Helper\Version; use Laminas\Uri\UriFactory; use Magento\Csp\Api\Data\ModeConfiguredInterface; use Magento\Csp\Api\ModeConfigManagerInterface; use Magento\Csp\Model\Mode\Data\ModeConfigured; cl...
php
MIT
61bcd4528c38f4305de681ab387d595aad3e29d6
2026-01-05T03:16:15.099951Z
false
justbetter/magento2-sentry
https://github.com/justbetter/magento2-sentry/blob/61bcd4528c38f4305de681ab387d595aad3e29d6/Plugin/MonologPlugin.php
Plugin/MonologPlugin.php
<?php namespace JustBetter\Sentry\Plugin; use JustBetter\Sentry\Logger\Handler\Sentry; use Monolog\Logger; class MonologPlugin { /** * @param Sentry $sentryHandler The sentry handler we will add to all Monolog loggers. */ public function __construct( protected Sentry $sentryHandler, ) {...
php
MIT
61bcd4528c38f4305de681ab387d595aad3e29d6
2026-01-05T03:16:15.099951Z
false
justbetter/magento2-sentry
https://github.com/justbetter/magento2-sentry/blob/61bcd4528c38f4305de681ab387d595aad3e29d6/Plugin/Profiling/EventManagerPlugin.php
Plugin/Profiling/EventManagerPlugin.php
<?php declare(strict_types=1); namespace JustBetter\Sentry\Plugin\Profiling; use JustBetter\Sentry\Model\SentryPerformance; use Magento\Framework\Event\ConfigInterface; use Magento\Framework\Event\ManagerInterface; use Sentry\Tracing\SpanContext; class EventManagerPlugin { /** * EventManagerPlugin construc...
php
MIT
61bcd4528c38f4305de681ab387d595aad3e29d6
2026-01-05T03:16:15.099951Z
false
justbetter/magento2-sentry
https://github.com/justbetter/magento2-sentry/blob/61bcd4528c38f4305de681ab387d595aad3e29d6/Plugin/Profiling/ExchangePlugin.php
Plugin/Profiling/ExchangePlugin.php
<?php declare(strict_types=1); namespace JustBetter\Sentry\Plugin\Profiling; use Magento\Framework\MessageQueue\Bulk\ExchangeInterface as BulkExchangeInterface; use Magento\Framework\MessageQueue\EnvelopeInterface; use Magento\Framework\MessageQueue\ExchangeInterface; class ExchangePlugin { /** * Method cr...
php
MIT
61bcd4528c38f4305de681ab387d595aad3e29d6
2026-01-05T03:16:15.099951Z
false
justbetter/magento2-sentry
https://github.com/justbetter/magento2-sentry/blob/61bcd4528c38f4305de681ab387d595aad3e29d6/Plugin/Profiling/Cache.php
Plugin/Profiling/Cache.php
<?php declare(strict_types=1); namespace JustBetter\Sentry\Plugin\Profiling; use Sentry\SentrySdk; use Sentry\Tracing\SpanContext; /** * Auto instrument cache retrieval, saving and removing. */ class Cache extends \Magento\Framework\Cache\Frontend\Decorator\Bare { /** * Instrument the cache.get operation...
php
MIT
61bcd4528c38f4305de681ab387d595aad3e29d6
2026-01-05T03:16:15.099951Z
false
justbetter/magento2-sentry
https://github.com/justbetter/magento2-sentry/blob/61bcd4528c38f4305de681ab387d595aad3e29d6/Plugin/Profiling/TemplatePlugin.php
Plugin/Profiling/TemplatePlugin.php
<?php declare(strict_types=1); namespace JustBetter\Sentry\Plugin\Profiling; use JustBetter\Sentry\Model\SentryPerformance; use Magento\Framework\View\Element\Template; use Sentry\Tracing\SpanContext; class TemplatePlugin { /** * Method creates a Sentry span for php profiling to profile block rendering. ...
php
MIT
61bcd4528c38f4305de681ab387d595aad3e29d6
2026-01-05T03:16:15.099951Z
false
justbetter/magento2-sentry
https://github.com/justbetter/magento2-sentry/blob/61bcd4528c38f4305de681ab387d595aad3e29d6/Plugin/Profiling/DbQueryLoggerPlugin.php
Plugin/Profiling/DbQueryLoggerPlugin.php
<?php declare(strict_types=1); namespace JustBetter\Sentry\Plugin\Profiling; use JustBetter\Sentry\Model\PerformanceTracingDto; use JustBetter\Sentry\Model\SentryPerformance; use Magento\Framework\DB\LoggerInterface; use Sentry\Tracing\SpanContext; class DbQueryLoggerPlugin { /** * @var PerformanceTracingD...
php
MIT
61bcd4528c38f4305de681ab387d595aad3e29d6
2026-01-05T03:16:15.099951Z
false
justbetter/magento2-sentry
https://github.com/justbetter/magento2-sentry/blob/61bcd4528c38f4305de681ab387d595aad3e29d6/Plugin/Profiling/QueuePlugin.php
Plugin/Profiling/QueuePlugin.php
<?php declare(strict_types=1); namespace JustBetter\Sentry\Plugin\Profiling; use Magento\Framework\MessageQueue\EnvelopeInterface; use Magento\Framework\MessageQueue\QueueInterface; use Sentry\Tracing\Span; class QueuePlugin { /** @var ?Span */ private ?Span $parentSpan = null; /** @var \Sentry\Tracing...
php
MIT
61bcd4528c38f4305de681ab387d595aad3e29d6
2026-01-05T03:16:15.099951Z
false
justbetter/magento2-sentry
https://github.com/justbetter/magento2-sentry/blob/61bcd4528c38f4305de681ab387d595aad3e29d6/Cache/Frontend/Factory.php
Cache/Frontend/Factory.php
<?php namespace JustBetter\Sentry\Cache\Frontend; use Magento\Framework\App\ResourceConnection; use Magento\Framework\Filesystem; use Magento\Framework\ObjectManagerInterface; class Factory extends \Magento\Framework\App\Cache\Frontend\Factory { /** * @param ObjectManagerInterface $objectManager * @par...
php
MIT
61bcd4528c38f4305de681ab387d595aad3e29d6
2026-01-05T03:16:15.099951Z
false
justbetter/magento2-sentry
https://github.com/justbetter/magento2-sentry/blob/61bcd4528c38f4305de681ab387d595aad3e29d6/Helper/Version.php
Helper/Version.php
<?php namespace JustBetter\Sentry\Helper; use Magento\Framework\App\DeploymentConfig; use Magento\Framework\App\Helper\AbstractHelper; use Magento\Framework\App\ObjectManager; use Magento\Framework\Config\ConfigOptionsListConstants; use Psr\Log\LoggerInterface; /** * Deployment version of static files. */ class Ve...
php
MIT
61bcd4528c38f4305de681ab387d595aad3e29d6
2026-01-05T03:16:15.099951Z
false
justbetter/magento2-sentry
https://github.com/justbetter/magento2-sentry/blob/61bcd4528c38f4305de681ab387d595aad3e29d6/Helper/Data.php
Helper/Data.php
<?php namespace JustBetter\Sentry\Helper; use DomainException; use ErrorException; use JustBetter\Sentry\Block\SentryScript; use Magento\Framework\App\Area; use Magento\Framework\App\Config\ScopeConfigInterface; use Magento\Framework\App\DeploymentConfig; use Magento\Framework\App\Helper\AbstractHelper; use Magento\F...
php
MIT
61bcd4528c38f4305de681ab387d595aad3e29d6
2026-01-05T03:16:15.099951Z
false
justbetter/magento2-sentry
https://github.com/justbetter/magento2-sentry/blob/61bcd4528c38f4305de681ab387d595aad3e29d6/Observer/StripUnnecessaryFrames.php
Observer/StripUnnecessaryFrames.php
<?php namespace JustBetter\Sentry\Observer; use JustBetter\Sentry\Helper\Data; use Magento\Framework\Event\Observer; use Magento\Framework\Event\ObserverInterface; use Sentry\Event; use Sentry\Frame; class StripUnnecessaryFrames implements ObserverInterface { /** * @param Data $sentryHelper */ publ...
php
MIT
61bcd4528c38f4305de681ab387d595aad3e29d6
2026-01-05T03:16:15.099951Z
false
phpstan/phpstan-webmozart-assert
https://github.com/phpstan/phpstan-webmozart-assert/blob/48082c635e7b6077f82111958f8a276273b46234/src/Type/WebMozartAssert/AssertTypeSpecifyingExtension.php
src/Type/WebMozartAssert/AssertTypeSpecifyingExtension.php
<?php declare(strict_types = 1); namespace PHPStan\Type\WebMozartAssert; use ArrayAccess; use Closure; use Countable; use PhpParser\Node\Arg; use PhpParser\Node\Expr; use PhpParser\Node\Expr\Array_; use PhpParser\Node\Expr\ArrayDimFetch; use PhpParser\Node\Expr\BinaryOp; use PhpParser\Node\Expr\BinaryOp\BooleanAnd; u...
php
MIT
48082c635e7b6077f82111958f8a276273b46234
2026-01-05T03:16:24.711388Z
false
phpstan/phpstan-webmozart-assert
https://github.com/phpstan/phpstan-webmozart-assert/blob/48082c635e7b6077f82111958f8a276273b46234/tests/bootstrap.php
tests/bootstrap.php
<?php declare(strict_types = 1); require_once __DIR__ . '/../vendor/autoload.php';
php
MIT
48082c635e7b6077f82111958f8a276273b46234
2026-01-05T03:16:24.711388Z
false
phpstan/phpstan-webmozart-assert
https://github.com/phpstan/phpstan-webmozart-assert/blob/48082c635e7b6077f82111958f8a276273b46234/tests/Type/WebMozartAssert/MethodReturnTypeRuleTest.php
tests/Type/WebMozartAssert/MethodReturnTypeRuleTest.php
<?php declare(strict_types = 1); namespace PHPStan\Type\WebMozartAssert; use PHPStan\Rules\Methods\ReturnTypeRule; use PHPStan\Rules\Rule; use PHPStan\Testing\RuleTestCase; /** @extends RuleTestCase<ReturnTypeRule> */ class MethodReturnTypeRuleTest extends RuleTestCase { protected function getRule(): Rule { ret...
php
MIT
48082c635e7b6077f82111958f8a276273b46234
2026-01-05T03:16:24.711388Z
false
phpstan/phpstan-webmozart-assert
https://github.com/phpstan/phpstan-webmozart-assert/blob/48082c635e7b6077f82111958f8a276273b46234/tests/Type/WebMozartAssert/AssertTypeSpecifyingExtensionTestBleedingEdge.php
tests/Type/WebMozartAssert/AssertTypeSpecifyingExtensionTestBleedingEdge.php
<?php declare(strict_types = 1); namespace PHPStan\Type\WebMozartAssert; use PHPStan\Testing\TypeInferenceTestCase; class AssertTypeSpecifyingExtensionTestBleedingEdge extends TypeInferenceTestCase { public function dataFileAsserts(): iterable { yield from $this->gatherAssertTypes(__DIR__ . '/data/array-bleedin...
php
MIT
48082c635e7b6077f82111958f8a276273b46234
2026-01-05T03:16:24.711388Z
false
phpstan/phpstan-webmozart-assert
https://github.com/phpstan/phpstan-webmozart-assert/blob/48082c635e7b6077f82111958f8a276273b46234/tests/Type/WebMozartAssert/AssertTypeSpecifyingExtensionTest.php
tests/Type/WebMozartAssert/AssertTypeSpecifyingExtensionTest.php
<?php declare(strict_types = 1); namespace PHPStan\Type\WebMozartAssert; use PHPStan\Testing\TypeInferenceTestCase; class AssertTypeSpecifyingExtensionTest extends TypeInferenceTestCase { public function dataFileAsserts(): iterable { yield from $this->gatherAssertTypes(__DIR__ . '/data/array.php'); yield from...
php
MIT
48082c635e7b6077f82111958f8a276273b46234
2026-01-05T03:16:24.711388Z
false
phpstan/phpstan-webmozart-assert
https://github.com/phpstan/phpstan-webmozart-assert/blob/48082c635e7b6077f82111958f8a276273b46234/tests/Type/WebMozartAssert/ImpossibleCheckTypeMethodCallRuleTest.php
tests/Type/WebMozartAssert/ImpossibleCheckTypeMethodCallRuleTest.php
<?php declare(strict_types = 1); namespace PHPStan\Type\WebMozartAssert; use PHPStan\Rules\Comparison\ImpossibleCheckTypeStaticMethodCallRule; use PHPStan\Rules\Rule; use PHPStan\Testing\RuleTestCase; /** * @extends RuleTestCase<ImpossibleCheckTypeStaticMethodCallRule> */ class ImpossibleCheckTypeMethodCallRuleTes...
php
MIT
48082c635e7b6077f82111958f8a276273b46234
2026-01-05T03:16:24.711388Z
false
phpstan/phpstan-webmozart-assert
https://github.com/phpstan/phpstan-webmozart-assert/blob/48082c635e7b6077f82111958f8a276273b46234/tests/Type/WebMozartAssert/data/array-bleeding-edge.php
tests/Type/WebMozartAssert/data/array-bleeding-edge.php
<?php declare(strict_types=1); namespace PHPStan\Type\WebMozartAssert; use Webmozart\Assert\Assert; use function PHPStan\Testing\assertType; class ArrayBleedingEdgeTest { public function isList($a, $b): void { Assert::isList($a); assertType('list<mixed>', $a); Assert::nullOrIsList($b); assertType('list<m...
php
MIT
48082c635e7b6077f82111958f8a276273b46234
2026-01-05T03:16:24.711388Z
false
phpstan/phpstan-webmozart-assert
https://github.com/phpstan/phpstan-webmozart-assert/blob/48082c635e7b6077f82111958f8a276273b46234/tests/Type/WebMozartAssert/data/bug-85.php
tests/Type/WebMozartAssert/data/bug-85.php
<?php declare(strict_types=1); namespace PHPStan\Type\WebMozartAssert; use Webmozart\Assert\Assert; final class Bug85 { public function foo(string $cityCode): void { Assert::length($cityCode, 3); Assert::upper($cityCode); } /** * @param mixed $url */ function bar($url): void { Assert::stringNotEmp...
php
MIT
48082c635e7b6077f82111958f8a276273b46234
2026-01-05T03:16:24.711388Z
false
phpstan/phpstan-webmozart-assert
https://github.com/phpstan/phpstan-webmozart-assert/blob/48082c635e7b6077f82111958f8a276273b46234/tests/Type/WebMozartAssert/data/comparison.php
tests/Type/WebMozartAssert/data/comparison.php
<?php declare(strict_types=1); namespace PHPStan\Type\WebMozartAssert; use Webmozart\Assert\Assert; use function PHPStan\Testing\assertType; class ComparisonTest { public function true($a, $b): void { Assert::true($a); assertType('true', $a); Assert::nullOrTrue($b); assertType('true|null', $b); } publi...
php
MIT
48082c635e7b6077f82111958f8a276273b46234
2026-01-05T03:16:24.711388Z
false
phpstan/phpstan-webmozart-assert
https://github.com/phpstan/phpstan-webmozart-assert/blob/48082c635e7b6077f82111958f8a276273b46234/tests/Type/WebMozartAssert/data/impossible-check.php
tests/Type/WebMozartAssert/data/impossible-check.php
<?php namespace WebmozartAssertImpossibleCheck; use Webmozart\Assert\Assert; class Foo { public function doFoo(string $s): void { Assert::stringNotEmpty($s); Assert::stringNotEmpty(''); } /** * @param mixed[] $b */ public function isInstanceOf(Bar $a, array $b): void { Assert::isInstanceOf($a, Bar:...
php
MIT
48082c635e7b6077f82111958f8a276273b46234
2026-01-05T03:16:24.711388Z
false
phpstan/phpstan-webmozart-assert
https://github.com/phpstan/phpstan-webmozart-assert/blob/48082c635e7b6077f82111958f8a276273b46234/tests/Type/WebMozartAssert/data/bug-8.php
tests/Type/WebMozartAssert/data/bug-8.php
<?php declare(strict_types=1); namespace WebmozartAssertBug8; use Webmozart\Assert\Assert; class Bug8 { public function foo(string $a): void { Assert::numeric($a); Assert::numeric($a); Assert::numeric('foo'); Assert::numeric('17.19'); } }
php
MIT
48082c635e7b6077f82111958f8a276273b46234
2026-01-05T03:16:24.711388Z
false
phpstan/phpstan-webmozart-assert
https://github.com/phpstan/phpstan-webmozart-assert/blob/48082c635e7b6077f82111958f8a276273b46234/tests/Type/WebMozartAssert/data/bug-17.php
tests/Type/WebMozartAssert/data/bug-17.php
<?php declare(strict_types=1); namespace Bug17; use DateTimeInterface; use Webmozart\Assert\Assert; (function () { Assert::implementsInterface(\DateTime::class, DateTimeInterface::class); Assert::implementsInterface(\DateTimeZone::class, DateTimeInterface::class); })();
php
MIT
48082c635e7b6077f82111958f8a276273b46234
2026-01-05T03:16:24.711388Z
false
phpstan/phpstan-webmozart-assert
https://github.com/phpstan/phpstan-webmozart-assert/blob/48082c635e7b6077f82111958f8a276273b46234/tests/Type/WebMozartAssert/data/array.php
tests/Type/WebMozartAssert/data/array.php
<?php declare(strict_types=1); namespace PHPStan\Type\WebMozartAssert; use Webmozart\Assert\Assert; use function PHPStan\Testing\assertType; class ArrayTest { /** * @param array{foo?: string, bar?: string} $a */ public function keyNotExists(array $a): void { Assert::keyNotExists($a, 'bar'); assertType('a...
php
MIT
48082c635e7b6077f82111958f8a276273b46234
2026-01-05T03:16:24.711388Z
false
phpstan/phpstan-webmozart-assert
https://github.com/phpstan/phpstan-webmozart-assert/blob/48082c635e7b6077f82111958f8a276273b46234/tests/Type/WebMozartAssert/data/bug-68.php
tests/Type/WebMozartAssert/data/bug-68.php
<?php declare(strict_types=1); namespace WebmozartAssertBug68; use Webmozart\Assert\Assert; $encryptedValue = "some value"; $valueParts = explode(':', $encryptedValue); Assert::count( $valueParts, 2, 'Encrypted secret parameter was expected to consist of 2 parts separated by a colon' );
php
MIT
48082c635e7b6077f82111958f8a276273b46234
2026-01-05T03:16:24.711388Z
false
phpstan/phpstan-webmozart-assert
https://github.com/phpstan/phpstan-webmozart-assert/blob/48082c635e7b6077f82111958f8a276273b46234/tests/Type/WebMozartAssert/data/bug-130.php
tests/Type/WebMozartAssert/data/bug-130.php
<?php declare(strict_types=1); namespace WebmozartAssertBug130; use Webmozart\Assert\Assert; class Bug130 { /** @var array<int, array{id: string, num_order: string}> */ protected $orders = []; public function setOrders(array $orders): self { Assert::allCount($orders, 2); Assert::allKeyExists($orders, 'id');...
php
MIT
48082c635e7b6077f82111958f8a276273b46234
2026-01-05T03:16:24.711388Z
false
phpstan/phpstan-webmozart-assert
https://github.com/phpstan/phpstan-webmozart-assert/blob/48082c635e7b6077f82111958f8a276273b46234/tests/Type/WebMozartAssert/data/string.php
tests/Type/WebMozartAssert/data/string.php
<?php declare(strict_types = 1); namespace PHPStan\Type\WebMozartAssert; use Webmozart\Assert\Assert; use function PHPStan\Testing\assertType; class TestStrings { /** * @param non-empty-string $b */ public function contains(string $a, string $b): void { Assert::contains($a, $a); assertType('string', $a);...
php
MIT
48082c635e7b6077f82111958f8a276273b46234
2026-01-05T03:16:24.711388Z
false
phpstan/phpstan-webmozart-assert
https://github.com/phpstan/phpstan-webmozart-assert/blob/48082c635e7b6077f82111958f8a276273b46234/tests/Type/WebMozartAssert/data/bug-18.php
tests/Type/WebMozartAssert/data/bug-18.php
<?php declare(strict_types=1); namespace Bug18; use Webmozart\Assert\Assert; use function PHPStan\Testing\assertType; class MyThingFactory { public function make(string $thing) { Assert::implementsInterface($thing, SomeDto::class); assertType('class-string<Bug18\SomeDto>', $thing); } } interface SomeDto {}
php
MIT
48082c635e7b6077f82111958f8a276273b46234
2026-01-05T03:16:24.711388Z
false
phpstan/phpstan-webmozart-assert
https://github.com/phpstan/phpstan-webmozart-assert/blob/48082c635e7b6077f82111958f8a276273b46234/tests/Type/WebMozartAssert/data/bug-32.php
tests/Type/WebMozartAssert/data/bug-32.php
<?php declare(strict_types=1); namespace WebmozartAssertBug32; use Webmozart\Assert\Assert; /** * @param numeric-string $numericString */ function test(float $float, int $int, string $numericString): void { Assert::integerish($float); Assert::integerish($int); Assert::integerish($numericString); }
php
MIT
48082c635e7b6077f82111958f8a276273b46234
2026-01-05T03:16:24.711388Z
false
phpstan/phpstan-webmozart-assert
https://github.com/phpstan/phpstan-webmozart-assert/blob/48082c635e7b6077f82111958f8a276273b46234/tests/Type/WebMozartAssert/data/object.php
tests/Type/WebMozartAssert/data/object.php
<?php declare(strict_types=1); namespace PHPStan\Type\WebMozartAssert; use Webmozart\Assert\Assert; use function PHPStan\Testing\assertType; class ObjectTest { public function classExists($a, $b): void { Assert::classExists($a); assertType('class-string', $a); Assert::nullOrClassExists($b); assertType('c...
php
MIT
48082c635e7b6077f82111958f8a276273b46234
2026-01-05T03:16:24.711388Z
false
phpstan/phpstan-webmozart-assert
https://github.com/phpstan/phpstan-webmozart-assert/blob/48082c635e7b6077f82111958f8a276273b46234/tests/Type/WebMozartAssert/data/type.php
tests/Type/WebMozartAssert/data/type.php
<?php declare(strict_types=1); namespace PHPStan\Type\WebMozartAssert; use DateTimeImmutable; use stdClass; use Webmozart\Assert\Assert; use function PHPStan\Testing\assertType; class TypeTest { public function string($a, $b): void { Assert::string($a); assertType('string', $a); Assert::nullOrString($b); ...
php
MIT
48082c635e7b6077f82111958f8a276273b46234
2026-01-05T03:16:24.711388Z
false
phpstan/phpstan-webmozart-assert
https://github.com/phpstan/phpstan-webmozart-assert/blob/48082c635e7b6077f82111958f8a276273b46234/tests/Type/WebMozartAssert/data/bug-150.php
tests/Type/WebMozartAssert/data/bug-150.php
<?php declare(strict_types=1); namespace WebmozartAssertBug150; use Webmozart\Assert\Assert; use function PHPStan\Testing\assertType; class Bug150 { public function doFoo($data): void { Assert::isArray($data); Assert::keyExists($data, 'sniffs'); Assert::isArray($data['sniffs']); assertType("non-empty-arra...
php
MIT
48082c635e7b6077f82111958f8a276273b46234
2026-01-05T03:16:24.711388Z
false
phpstan/phpstan-webmozart-assert
https://github.com/phpstan/phpstan-webmozart-assert/blob/48082c635e7b6077f82111958f8a276273b46234/tests/Type/WebMozartAssert/data/impossible-check-eq-not-eq.php
tests/Type/WebMozartAssert/data/impossible-check-eq-not-eq.php
<?php declare(strict_types=1); namespace WebmozartAssertImpossibleCheckEqNotEq; use DateTimeInterface; use stdClass; use Webmozart\Assert\Assert; class ImpossibleCheckEqNotEq { public function sameInstancesAreAlwaysEqual(stdClass $a, stdClass $b): void { Assert::eq($a, $a); // will always evaluate to true Ass...
php
MIT
48082c635e7b6077f82111958f8a276273b46234
2026-01-05T03:16:24.711388Z
false
phpstan/phpstan-webmozart-assert
https://github.com/phpstan/phpstan-webmozart-assert/blob/48082c635e7b6077f82111958f8a276273b46234/tests/Type/WebMozartAssert/data/bug-33.php
tests/Type/WebMozartAssert/data/bug-33.php
<?php declare(strict_types=1); namespace WebmozartAssertBug33; use Webmozart\Assert\Assert; class Bug33 { public function foo(?string $bar) { Assert::nullOrStringNotEmpty($bar); } }
php
MIT
48082c635e7b6077f82111958f8a276273b46234
2026-01-05T03:16:24.711388Z
false
phpstan/phpstan-webmozart-assert
https://github.com/phpstan/phpstan-webmozart-assert/blob/48082c635e7b6077f82111958f8a276273b46234/tests/Type/WebMozartAssert/data/bug-117.php
tests/Type/WebMozartAssert/data/bug-117.php
<?php declare(strict_types=1); namespace WebmozartAssertBug117; use Webmozart\Assert\Assert; use function PHPStan\Testing\assertType; class HelloWorld { /** * @param mixed[] $requestData * * @return array{ * accountId: int, * errorColor: string|null, * theme: array{ * backgroundCo...
php
MIT
48082c635e7b6077f82111958f8a276273b46234
2026-01-05T03:16:24.711388Z
false
phpstan/phpstan-webmozart-assert
https://github.com/phpstan/phpstan-webmozart-assert/blob/48082c635e7b6077f82111958f8a276273b46234/tests/Type/WebMozartAssert/data/bug-119.php
tests/Type/WebMozartAssert/data/bug-119.php
<?php declare(strict_types=1); namespace WebmozartAssertBug119; use DateTime; use Webmozart\Assert\Assert; function test(float $a, float $b, float $c, float $d, DateTime $e): void { Assert::greaterThan($a, 0); Assert::greaterThanEq($b, 0); Assert::lessThan($c, 0); Assert::lessThanEq($d, 0); Assert::greaterTha...
php
MIT
48082c635e7b6077f82111958f8a276273b46234
2026-01-05T03:16:24.711388Z
false
phpstan/phpstan-webmozart-assert
https://github.com/phpstan/phpstan-webmozart-assert/blob/48082c635e7b6077f82111958f8a276273b46234/tests/Type/WebMozartAssert/data/collection.php
tests/Type/WebMozartAssert/data/collection.php
<?php declare(strict_types = 1); namespace PHPStan\Type\WebMozartAssert; use stdClass; use Webmozart\Assert\Assert; use function PHPStan\Testing\assertType; class CollectionTest { public function allString(array $a, $b): void { Assert::allString($a); assertType('array<string>', $a); Assert::allString($b); ...
php
MIT
48082c635e7b6077f82111958f8a276273b46234
2026-01-05T03:16:24.711388Z
false
phpstan/phpstan-webmozart-assert
https://github.com/phpstan/phpstan-webmozart-assert/blob/48082c635e7b6077f82111958f8a276273b46234/tests/Type/WebMozartAssert/data/bug-118.php
tests/Type/WebMozartAssert/data/bug-118.php
<?php declare(strict_types=1); namespace WebmozartAssertBug118; use DateTime; use Webmozart\Assert\Assert; function test(float $a, DateTime $b): void { Assert::range($a, 0, 1); Assert::range($b, 123456789, 9876543321); }
php
MIT
48082c635e7b6077f82111958f8a276273b46234
2026-01-05T03:16:24.711388Z
false
phpstan/phpstan-webmozart-assert
https://github.com/phpstan/phpstan-webmozart-assert/blob/48082c635e7b6077f82111958f8a276273b46234/tests/Type/WebMozartAssert/data/bug-183.php
tests/Type/WebMozartAssert/data/bug-183.php
<?php use Webmozart\Assert\Assert; use function PHPStan\Testing\assertType; function assertInstanceOfWithString($value, string $className): void { Assert::isInstanceOf($value, $className); assertType('object', $value); } /** * @param class-string $className */ function assertInstanceOfWithClassString($value, str...
php
MIT
48082c635e7b6077f82111958f8a276273b46234
2026-01-05T03:16:24.711388Z
false
spatie/elasticsearch-query-builder
https://github.com/spatie/elasticsearch-query-builder/blob/b0c9a3f8b15e22fdf2da8c7fea2c0687a6e68fbf/.php_cs.dist.php
.php_cs.dist.php
<?php $finder = Symfony\Component\Finder\Finder::create() ->in([ __DIR__ . '/src', __DIR__ . '/tests', ]) ->name('*.php') ->notName('*.blade.php') ->ignoreDotFiles(true) ->ignoreVCS(true); return (new PhpCsFixer\Config()) ->setRules([ '@PSR2' => true, 'array...
php
MIT
b0c9a3f8b15e22fdf2da8c7fea2c0687a6e68fbf
2026-01-05T03:16:34.120991Z
false
spatie/elasticsearch-query-builder
https://github.com/spatie/elasticsearch-query-builder/blob/b0c9a3f8b15e22fdf2da8c7fea2c0687a6e68fbf/src/Builder.php
src/Builder.php
<?php namespace Spatie\ElasticsearchQueryBuilder; use Elastic\Elasticsearch\Client; use Elastic\Elasticsearch\Response\Elasticsearch; use Http\Promise\Promise; use Spatie\ElasticsearchQueryBuilder\Aggregations\Aggregation; use Spatie\ElasticsearchQueryBuilder\Queries\BoolQuery; use Spatie\ElasticsearchQueryBuilder\Qu...
php
MIT
b0c9a3f8b15e22fdf2da8c7fea2c0687a6e68fbf
2026-01-05T03:16:34.120991Z
false
spatie/elasticsearch-query-builder
https://github.com/spatie/elasticsearch-query-builder/blob/b0c9a3f8b15e22fdf2da8c7fea2c0687a6e68fbf/src/SortCollection.php
src/SortCollection.php
<?php namespace Spatie\ElasticsearchQueryBuilder; use Spatie\ElasticsearchQueryBuilder\Sorts\Sorting; class SortCollection { protected array $sorts; public function __construct(Sorting ...$sorts) { $this->sorts = $sorts; } public function add(Sorting $sort): self { $this->so...
php
MIT
b0c9a3f8b15e22fdf2da8c7fea2c0687a6e68fbf
2026-01-05T03:16:34.120991Z
false
spatie/elasticsearch-query-builder
https://github.com/spatie/elasticsearch-query-builder/blob/b0c9a3f8b15e22fdf2da8c7fea2c0687a6e68fbf/src/MultiBuilder.php
src/MultiBuilder.php
<?php namespace Spatie\ElasticsearchQueryBuilder; use Elastic\Elasticsearch\Client; use Elastic\Elasticsearch\Response\Elasticsearch; use Http\Promise\Promise; class MultiBuilder { protected ?array $builders = []; public function __construct(protected Client $client) { } public function addBuil...
php
MIT
b0c9a3f8b15e22fdf2da8c7fea2c0687a6e68fbf
2026-01-05T03:16:34.120991Z
false
spatie/elasticsearch-query-builder
https://github.com/spatie/elasticsearch-query-builder/blob/b0c9a3f8b15e22fdf2da8c7fea2c0687a6e68fbf/src/AggregationCollection.php
src/AggregationCollection.php
<?php namespace Spatie\ElasticsearchQueryBuilder; use Spatie\ElasticsearchQueryBuilder\Aggregations\Aggregation; class AggregationCollection { protected array $aggregations; public function __construct(Aggregation ...$aggregations) { $this->aggregations = $aggregations; } public functio...
php
MIT
b0c9a3f8b15e22fdf2da8c7fea2c0687a6e68fbf
2026-01-05T03:16:34.120991Z
false
spatie/elasticsearch-query-builder
https://github.com/spatie/elasticsearch-query-builder/blob/b0c9a3f8b15e22fdf2da8c7fea2c0687a6e68fbf/src/Exceptions/BoolQueryTypeDoesNotExist.php
src/Exceptions/BoolQueryTypeDoesNotExist.php
<?php namespace Spatie\ElasticsearchQueryBuilder\Exceptions; use InvalidArgumentException; class BoolQueryTypeDoesNotExist extends InvalidArgumentException { public function __construct(string $type) { parent::__construct("Type `$type` for bool query does not exist. Please use one of the following: m...
php
MIT
b0c9a3f8b15e22fdf2da8c7fea2c0687a6e68fbf
2026-01-05T03:16:34.120991Z
false
spatie/elasticsearch-query-builder
https://github.com/spatie/elasticsearch-query-builder/blob/b0c9a3f8b15e22fdf2da8c7fea2c0687a6e68fbf/src/Exceptions/InvalidOperatorValue.php
src/Exceptions/InvalidOperatorValue.php
<?php namespace Spatie\ElasticsearchQueryBuilder\Exceptions; use InvalidArgumentException; class InvalidOperatorValue extends InvalidArgumentException { public function __construct() { parent::__construct('The operator must be either "or" or "and".'); } }
php
MIT
b0c9a3f8b15e22fdf2da8c7fea2c0687a6e68fbf
2026-01-05T03:16:34.120991Z
false
spatie/elasticsearch-query-builder
https://github.com/spatie/elasticsearch-query-builder/blob/b0c9a3f8b15e22fdf2da8c7fea2c0687a6e68fbf/src/Sorts/NestedSort.php
src/Sorts/NestedSort.php
<?php namespace Spatie\ElasticsearchQueryBuilder\Sorts; use Spatie\ElasticsearchQueryBuilder\Queries\Query; use Spatie\ElasticsearchQueryBuilder\Sorts\Concerns\HasMissing; use Spatie\ElasticsearchQueryBuilder\Sorts\Concerns\HasMode; use Spatie\ElasticsearchQueryBuilder\Sorts\Concerns\HasUnmappedType; class NestedSor...
php
MIT
b0c9a3f8b15e22fdf2da8c7fea2c0687a6e68fbf
2026-01-05T03:16:34.120991Z
false
spatie/elasticsearch-query-builder
https://github.com/spatie/elasticsearch-query-builder/blob/b0c9a3f8b15e22fdf2da8c7fea2c0687a6e68fbf/src/Sorts/ScriptSort.php
src/Sorts/ScriptSort.php
<?php namespace Spatie\ElasticsearchQueryBuilder\Sorts; class ScriptSort implements Sorting { protected string $scriptSource; protected string $order; protected string $lang = 'painless'; protected string $type = 'number'; protected array $params = []; public function __construct( str...
php
MIT
b0c9a3f8b15e22fdf2da8c7fea2c0687a6e68fbf
2026-01-05T03:16:34.120991Z
false
spatie/elasticsearch-query-builder
https://github.com/spatie/elasticsearch-query-builder/blob/b0c9a3f8b15e22fdf2da8c7fea2c0687a6e68fbf/src/Sorts/Sort.php
src/Sorts/Sort.php
<?php namespace Spatie\ElasticsearchQueryBuilder\Sorts; use Spatie\ElasticsearchQueryBuilder\Sorts\Concerns\HasMissing; use Spatie\ElasticsearchQueryBuilder\Sorts\Concerns\HasMode; use Spatie\ElasticsearchQueryBuilder\Sorts\Concerns\HasUnmappedType; class Sort implements Sorting { use HasMissing; use HasUnma...
php
MIT
b0c9a3f8b15e22fdf2da8c7fea2c0687a6e68fbf
2026-01-05T03:16:34.120991Z
false
spatie/elasticsearch-query-builder
https://github.com/spatie/elasticsearch-query-builder/blob/b0c9a3f8b15e22fdf2da8c7fea2c0687a6e68fbf/src/Sorts/Sorting.php
src/Sorts/Sorting.php
<?php namespace Spatie\ElasticsearchQueryBuilder\Sorts; interface Sorting { public const ASC = 'asc'; public const DESC = 'desc'; public function toArray(): array; }
php
MIT
b0c9a3f8b15e22fdf2da8c7fea2c0687a6e68fbf
2026-01-05T03:16:34.120991Z
false
spatie/elasticsearch-query-builder
https://github.com/spatie/elasticsearch-query-builder/blob/b0c9a3f8b15e22fdf2da8c7fea2c0687a6e68fbf/src/Sorts/Concerns/HasMissing.php
src/Sorts/Concerns/HasMissing.php
<?php namespace Spatie\ElasticsearchQueryBuilder\Sorts\Concerns; trait HasMissing { protected string|int|float|bool|null $missing = null; public function missing(string|int|float|bool $missing): static { $this->missing = $missing; return $this; } }
php
MIT
b0c9a3f8b15e22fdf2da8c7fea2c0687a6e68fbf
2026-01-05T03:16:34.120991Z
false
spatie/elasticsearch-query-builder
https://github.com/spatie/elasticsearch-query-builder/blob/b0c9a3f8b15e22fdf2da8c7fea2c0687a6e68fbf/src/Sorts/Concerns/HasUnmappedType.php
src/Sorts/Concerns/HasUnmappedType.php
<?php namespace Spatie\ElasticsearchQueryBuilder\Sorts\Concerns; trait HasUnmappedType { private ?string $unmappedType = null; public function unmappedType(string $unmappedType): static { $this->unmappedType = $unmappedType; return $this; } }
php
MIT
b0c9a3f8b15e22fdf2da8c7fea2c0687a6e68fbf
2026-01-05T03:16:34.120991Z
false
spatie/elasticsearch-query-builder
https://github.com/spatie/elasticsearch-query-builder/blob/b0c9a3f8b15e22fdf2da8c7fea2c0687a6e68fbf/src/Sorts/Concerns/HasMode.php
src/Sorts/Concerns/HasMode.php
<?php namespace Spatie\ElasticsearchQueryBuilder\Sorts\Concerns; trait HasMode { protected ?string $mode = null; public function mode(string $mode): static { $this->mode = $mode; return $this; } }
php
MIT
b0c9a3f8b15e22fdf2da8c7fea2c0687a6e68fbf
2026-01-05T03:16:34.120991Z
false
spatie/elasticsearch-query-builder
https://github.com/spatie/elasticsearch-query-builder/blob/b0c9a3f8b15e22fdf2da8c7fea2c0687a6e68fbf/src/Queries/WildcardQuery.php
src/Queries/WildcardQuery.php
<?php namespace Spatie\ElasticsearchQueryBuilder\Queries; class WildcardQuery implements Query { public static function create(string $field, string $value) { return new self($field, $value); } public function __construct( protected string $field, protected string $value )...
php
MIT
b0c9a3f8b15e22fdf2da8c7fea2c0687a6e68fbf
2026-01-05T03:16:34.120991Z
false
spatie/elasticsearch-query-builder
https://github.com/spatie/elasticsearch-query-builder/blob/b0c9a3f8b15e22fdf2da8c7fea2c0687a6e68fbf/src/Queries/MatchQuery.php
src/Queries/MatchQuery.php
<?php namespace Spatie\ElasticsearchQueryBuilder\Queries; use Spatie\ElasticsearchQueryBuilder\Exceptions\InvalidOperatorValue; class MatchQuery implements Query { protected const VALID_OPERATORS = ['and', 'or']; public static function create( string $field, string | int $query, null...
php
MIT
b0c9a3f8b15e22fdf2da8c7fea2c0687a6e68fbf
2026-01-05T03:16:34.120991Z
false
spatie/elasticsearch-query-builder
https://github.com/spatie/elasticsearch-query-builder/blob/b0c9a3f8b15e22fdf2da8c7fea2c0687a6e68fbf/src/Queries/IdsQuery.php
src/Queries/IdsQuery.php
<?php namespace Spatie\ElasticsearchQueryBuilder\Queries; class IdsQuery implements Query { public static function create( array $values ): self { return new self($values); } public function __construct( protected array $values ) { } public function toArray(): arr...
php
MIT
b0c9a3f8b15e22fdf2da8c7fea2c0687a6e68fbf
2026-01-05T03:16:34.120991Z
false
spatie/elasticsearch-query-builder
https://github.com/spatie/elasticsearch-query-builder/blob/b0c9a3f8b15e22fdf2da8c7fea2c0687a6e68fbf/src/Queries/TermQuery.php
src/Queries/TermQuery.php
<?php namespace Spatie\ElasticsearchQueryBuilder\Queries; class TermQuery implements Query { protected string $field; protected bool|int|string $value; public static function create(string $field, bool|int|string $value): static { return new self($field, $value); } public function _...
php
MIT
b0c9a3f8b15e22fdf2da8c7fea2c0687a6e68fbf
2026-01-05T03:16:34.120991Z
false
spatie/elasticsearch-query-builder
https://github.com/spatie/elasticsearch-query-builder/blob/b0c9a3f8b15e22fdf2da8c7fea2c0687a6e68fbf/src/Queries/NestedQuery.php
src/Queries/NestedQuery.php
<?php namespace Spatie\ElasticsearchQueryBuilder\Queries; use Spatie\ElasticsearchQueryBuilder\Queries\NestedQuery\InnerHits; class NestedQuery implements Query { public const SCORE_MODE_AVG = 'avg'; public const SCORE_MODE_MAX = 'max'; public const SCORE_MODE_MIN = 'min'; public const SCORE_MODE_NON...
php
MIT
b0c9a3f8b15e22fdf2da8c7fea2c0687a6e68fbf
2026-01-05T03:16:34.120991Z
false
spatie/elasticsearch-query-builder
https://github.com/spatie/elasticsearch-query-builder/blob/b0c9a3f8b15e22fdf2da8c7fea2c0687a6e68fbf/src/Queries/ExistsQuery.php
src/Queries/ExistsQuery.php
<?php namespace Spatie\ElasticsearchQueryBuilder\Queries; class ExistsQuery implements Query { public static function create( string $field ): self { return new self($field); } public function __construct( protected string $field ) { } public function toArray(): a...
php
MIT
b0c9a3f8b15e22fdf2da8c7fea2c0687a6e68fbf
2026-01-05T03:16:34.120991Z
false
spatie/elasticsearch-query-builder
https://github.com/spatie/elasticsearch-query-builder/blob/b0c9a3f8b15e22fdf2da8c7fea2c0687a6e68fbf/src/Queries/MultiMatchQuery.php
src/Queries/MultiMatchQuery.php
<?php namespace Spatie\ElasticsearchQueryBuilder\Queries; use Spatie\ElasticsearchQueryBuilder\Exceptions\InvalidOperatorValue; class MultiMatchQuery implements Query { public const TYPE_BEST_FIELDS = 'best_fields'; public const TYPE_MOST_FIELDS = 'most_fields'; public const TYPE_CROSS_FIELDS = 'cross_fi...
php
MIT
b0c9a3f8b15e22fdf2da8c7fea2c0687a6e68fbf
2026-01-05T03:16:34.120991Z
false
spatie/elasticsearch-query-builder
https://github.com/spatie/elasticsearch-query-builder/blob/b0c9a3f8b15e22fdf2da8c7fea2c0687a6e68fbf/src/Queries/PrefixQuery.php
src/Queries/PrefixQuery.php
<?php namespace Spatie\ElasticsearchQueryBuilder\Queries; class PrefixQuery implements Query { public static function create( string $field, string | int $query ): self { return new self($field, $query); } public function __construct( protected string $field, p...
php
MIT
b0c9a3f8b15e22fdf2da8c7fea2c0687a6e68fbf
2026-01-05T03:16:34.120991Z
false
spatie/elasticsearch-query-builder
https://github.com/spatie/elasticsearch-query-builder/blob/b0c9a3f8b15e22fdf2da8c7fea2c0687a6e68fbf/src/Queries/BoolQuery.php
src/Queries/BoolQuery.php
<?php namespace Spatie\ElasticsearchQueryBuilder\Queries; use Spatie\ElasticsearchQueryBuilder\Exceptions\BoolQueryTypeDoesNotExist; class BoolQuery implements Query { protected array $must = []; protected array $filter = []; protected array $should = []; protected array $must_not = []; protecte...
php
MIT
b0c9a3f8b15e22fdf2da8c7fea2c0687a6e68fbf
2026-01-05T03:16:34.120991Z
false
spatie/elasticsearch-query-builder
https://github.com/spatie/elasticsearch-query-builder/blob/b0c9a3f8b15e22fdf2da8c7fea2c0687a6e68fbf/src/Queries/PercolateQuery.php
src/Queries/PercolateQuery.php
<?php namespace Spatie\ElasticsearchQueryBuilder\Queries; use Exception; class PercolateQuery implements Query { protected string $field; protected array $document; protected string $index; protected string $id; public static function create(string $field): static { return new self($...
php
MIT
b0c9a3f8b15e22fdf2da8c7fea2c0687a6e68fbf
2026-01-05T03:16:34.120991Z
false