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 |
|---|---|---|---|---|---|---|---|---|
me-shaon/laravel-request-analytics | https://github.com/me-shaon/laravel-request-analytics/blob/2348c3a3f3016aae30fc54d7ec544357d256cc43/resources/views/components/analytics/broswers.blade.php | resources/views/components/analytics/broswers.blade.php | @props([
'browsers' => [],
'allBrowsers' => null,
])
@php
if (!function_exists('getBrowserImage')) {
function getBrowserImage($browser): string {
return match(strtolower($browser)){
'chrome' => asset('vendor/request-analytics/browsers/chrome.png'),
'fire... | php | MIT | 2348c3a3f3016aae30fc54d7ec544357d256cc43 | 2026-01-05T02:32:26.917341Z | false |
me-shaon/laravel-request-analytics | https://github.com/me-shaon/laravel-request-analytics/blob/2348c3a3f3016aae30fc54d7ec544357d256cc43/resources/views/components/analytics/countries.blade.php | resources/views/components/analytics/countries.blade.php | @props([
'countries' => [],
'allCountries' => null,
])
@php
$displayCountries = array_slice($countries, 0, 5);
$allCountriesData = $allCountries ?? $countries;
$hasMore = count($allCountriesData) > 5;
$modalItems = collect($allCountriesData)->map(function($country) {
return [
... | php | MIT | 2348c3a3f3016aae30fc54d7ec544357d256cc43 | 2026-01-05T02:32:26.917341Z | false |
me-shaon/laravel-request-analytics | https://github.com/me-shaon/laravel-request-analytics/blob/2348c3a3f3016aae30fc54d7ec544357d256cc43/resources/views/components/analytics/pages.blade.php | resources/views/components/analytics/pages.blade.php | @props([
'pages' => [],
'allPages' => null,
])
@php
$displayPages = array_slice($pages, 0, 5);
$allPagesData = $allPages ?? $pages;
$hasMore = count($allPagesData) > 5;
$modalItems = collect($allPagesData)->map(function($page) {
return [
'label' => $page['path'],
... | php | MIT | 2348c3a3f3016aae30fc54d7ec544357d256cc43 | 2026-01-05T02:32:26.917341Z | false |
box-project/box2-lib | https://github.com/box-project/box2-lib/blob/1c5d528d0c44af9d084c2e68ed8b5863db9abe0c/src/tests/bootstrap.php | src/tests/bootstrap.php | <?php
define('RES_DIR', __DIR__ . '/../../res');
$loader = require __DIR__ . '/../vendors/autoload.php';
$loader->add(null, __DIR__);
org\bovigo\vfs\vfsStreamWrapper::register();
| php | MIT | 1c5d528d0c44af9d084c2e68ed8b5863db9abe0c | 2026-01-05T02:32:29.774297Z | false |
box-project/box2-lib | https://github.com/box-project/box2-lib/blob/1c5d528d0c44af9d084c2e68ed8b5863db9abe0c/src/tests/Herrera/Box/Tests/BoxTest.php | src/tests/Herrera/Box/Tests/BoxTest.php | <?php
namespace Herrera\Box\Tests;
use ArrayIterator;
use FilesystemIterator;
use Herrera\Box\Box;
use Herrera\Box\Compactor\Php;
use Herrera\Box\StubGenerator;
use Herrera\PHPUnit\TestCase;
use org\bovigo\vfs\vfsStream;
use org\bovigo\vfs\vfsStreamWrapper;
use Phar;
use RecursiveDirectoryIterator;
use RecursiveItera... | php | MIT | 1c5d528d0c44af9d084c2e68ed8b5863db9abe0c | 2026-01-05T02:32:29.774297Z | false |
box-project/box2-lib | https://github.com/box-project/box2-lib/blob/1c5d528d0c44af9d084c2e68ed8b5863db9abe0c/src/tests/Herrera/Box/Tests/SignatureTest.php | src/tests/Herrera/Box/Tests/SignatureTest.php | <?php
namespace Herrera\Box\Tests;
use Herrera\Box\Signature;
use Herrera\PHPUnit\TestCase;
use org\bovigo\vfs\vfsStream;
use org\bovigo\vfs\vfsStreamWrapper;
use Phar;
class SignatureTest extends TestCase
{
private $types;
public function getPhars()
{
return array(
array(RES_DIR . '... | php | MIT | 1c5d528d0c44af9d084c2e68ed8b5863db9abe0c | 2026-01-05T02:32:29.774297Z | false |
box-project/box2-lib | https://github.com/box-project/box2-lib/blob/1c5d528d0c44af9d084c2e68ed8b5863db9abe0c/src/tests/Herrera/Box/Tests/Compactor.php | src/tests/Herrera/Box/Tests/Compactor.php | <?php
namespace Herrera\Box\Tests;
use Herrera\Box\Compactor\CompactorInterface;
class Compactor implements CompactorInterface
{
public function compact($contents)
{
return trim($contents);
}
public function supports($file)
{
return ('php' === pathinfo($file, PATHINFO_EXTENSION))... | php | MIT | 1c5d528d0c44af9d084c2e68ed8b5863db9abe0c | 2026-01-05T02:32:29.774297Z | false |
box-project/box2-lib | https://github.com/box-project/box2-lib/blob/1c5d528d0c44af9d084c2e68ed8b5863db9abe0c/src/tests/Herrera/Box/Tests/StubGeneratorTest.php | src/tests/Herrera/Box/Tests/StubGeneratorTest.php | <?php
namespace Herrera\Box\Tests;
use Herrera\Box\Compactor\Php;
use Herrera\Box\StubGenerator;
use Herrera\PHPUnit\TestCase;
use Phar;
class StubGeneratorTest extends TestCase
{
/**
* @var StubGenerator
*/
private $generator;
public function testAlias()
{
$this->generator->alias(... | php | MIT | 1c5d528d0c44af9d084c2e68ed8b5863db9abe0c | 2026-01-05T02:32:29.774297Z | false |
box-project/box2-lib | https://github.com/box-project/box2-lib/blob/1c5d528d0c44af9d084c2e68ed8b5863db9abe0c/src/tests/Herrera/Box/Tests/ExtractTest.php | src/tests/Herrera/Box/Tests/ExtractTest.php | <?php
namespace Herrera\Box\Tests;
use Herrera\Box\Extract;
use Herrera\PHPUnit\TestCase;
use org\bovigo\vfs\vfsStream;
use org\bovigo\vfs\vfsStreamWrapper;
use PHPUnit_Framework_Error_Warning;
class ExtractTest extends TestCase
{
public function getStubLengths()
{
return array(
array(RES... | php | MIT | 1c5d528d0c44af9d084c2e68ed8b5863db9abe0c | 2026-01-05T02:32:29.774297Z | false |
box-project/box2-lib | https://github.com/box-project/box2-lib/blob/1c5d528d0c44af9d084c2e68ed8b5863db9abe0c/src/tests/Herrera/Box/Tests/Signature/OpenSslTest.php | src/tests/Herrera/Box/Tests/Signature/OpenSslTest.php | <?php
namespace Herrera\Box\Tests\Signature;
use Herrera\Box\Signature\OpenSsl;
use Herrera\PHPUnit\TestCase;
class OpenSslTest extends TestCase
{
/**
* @var OpenSsl
*/
private $hash;
public function testVerify()
{
$path = RES_DIR . '/openssl.phar';
$this->hash->init('open... | php | MIT | 1c5d528d0c44af9d084c2e68ed8b5863db9abe0c | 2026-01-05T02:32:29.774297Z | false |
box-project/box2-lib | https://github.com/box-project/box2-lib/blob/1c5d528d0c44af9d084c2e68ed8b5863db9abe0c/src/tests/Herrera/Box/Tests/Signature/AbstractBufferedHashTest.php | src/tests/Herrera/Box/Tests/Signature/AbstractBufferedHashTest.php | <?php
namespace Herrera\Box\Tests\Signature;
use Herrera\PHPUnit\TestCase;
class AbstractBufferedHashTest extends TestCase
{
/**
* @var BufferedHash
*/
private $hash;
public function testUpdate()
{
$this->hash->update('a');
$this->hash->update('b');
$this->hash->upd... | php | MIT | 1c5d528d0c44af9d084c2e68ed8b5863db9abe0c | 2026-01-05T02:32:29.774297Z | false |
box-project/box2-lib | https://github.com/box-project/box2-lib/blob/1c5d528d0c44af9d084c2e68ed8b5863db9abe0c/src/tests/Herrera/Box/Tests/Signature/PublicKeyDelegateTest.php | src/tests/Herrera/Box/Tests/Signature/PublicKeyDelegateTest.php | <?php
namespace Herrera\Box\Tests\Signature;
use Herrera\Box\Signature\PublicKeyDelegate;
use Herrera\PHPUnit\TestCase;
class PublicKeyDelegateTest extends TestCase
{
private static $openssl = false;
public function testConstruct()
{
$hash = new PublicKeyDelegate();
if (extension_loaded... | php | MIT | 1c5d528d0c44af9d084c2e68ed8b5863db9abe0c | 2026-01-05T02:32:29.774297Z | false |
box-project/box2-lib | https://github.com/box-project/box2-lib/blob/1c5d528d0c44af9d084c2e68ed8b5863db9abe0c/src/tests/Herrera/Box/Tests/Signature/AbstractPublicKeyTest.php | src/tests/Herrera/Box/Tests/Signature/AbstractPublicKeyTest.php | <?php
namespace Herrera\Box\Tests\Signature;
use Herrera\PHPUnit\TestCase;
class AbstractPublicKeyTest extends TestCase
{
/**
* @var PublicKey
*/
private $hash;
public function testInit()
{
unlink($file = $this->createFile());
file_put_contents($file . '.pubkey', 'abc');
... | php | MIT | 1c5d528d0c44af9d084c2e68ed8b5863db9abe0c | 2026-01-05T02:32:29.774297Z | false |
box-project/box2-lib | https://github.com/box-project/box2-lib/blob/1c5d528d0c44af9d084c2e68ed8b5863db9abe0c/src/tests/Herrera/Box/Tests/Signature/PhpSecLibTest.php | src/tests/Herrera/Box/Tests/Signature/PhpSecLibTest.php | <?php
namespace Herrera\Box\Tests\Signature;
use Herrera\Box\Signature\PhpSecLib;
use Herrera\PHPUnit\TestCase;
class PhpSecLibTest extends TestCase
{
/**
* @var PhpSecLib
*/
private $hash;
public function testVerify()
{
$path = RES_DIR . '/openssl.phar';
$this->hash->init... | php | MIT | 1c5d528d0c44af9d084c2e68ed8b5863db9abe0c | 2026-01-05T02:32:29.774297Z | false |
box-project/box2-lib | https://github.com/box-project/box2-lib/blob/1c5d528d0c44af9d084c2e68ed8b5863db9abe0c/src/tests/Herrera/Box/Tests/Signature/HashTest.php | src/tests/Herrera/Box/Tests/Signature/HashTest.php | <?php
namespace Herrera\Box\Tests\Signature;
use Herrera\Box\Signature\Hash;
use Herrera\PHPUnit\TestCase;
class HashTest extends TestCase
{
/**
* @var Hash
*/
private $hash;
public function testInit()
{
$this->hash->init('md5', '');
$this->assertInternalType(
... | php | MIT | 1c5d528d0c44af9d084c2e68ed8b5863db9abe0c | 2026-01-05T02:32:29.774297Z | false |
box-project/box2-lib | https://github.com/box-project/box2-lib/blob/1c5d528d0c44af9d084c2e68ed8b5863db9abe0c/src/tests/Herrera/Box/Tests/Signature/BufferedHash.php | src/tests/Herrera/Box/Tests/Signature/BufferedHash.php | <?php
namespace Herrera\Box\Tests\Signature;
use Herrera\Box\Signature\AbstractBufferedHash;
class BufferedHash extends AbstractBufferedHash
{
public function init($algorithm, $path)
{
}
public function verify($signature)
{
}
}
| php | MIT | 1c5d528d0c44af9d084c2e68ed8b5863db9abe0c | 2026-01-05T02:32:29.774297Z | false |
box-project/box2-lib | https://github.com/box-project/box2-lib/blob/1c5d528d0c44af9d084c2e68ed8b5863db9abe0c/src/tests/Herrera/Box/Tests/Signature/PublicKey.php | src/tests/Herrera/Box/Tests/Signature/PublicKey.php | <?php
namespace Herrera\Box\Tests\Signature;
use Herrera\Box\Signature\AbstractPublicKey;
class PublicKey extends AbstractPublicKey
{
public function verify($signature)
{
}
}
| php | MIT | 1c5d528d0c44af9d084c2e68ed8b5863db9abe0c | 2026-01-05T02:32:29.774297Z | false |
box-project/box2-lib | https://github.com/box-project/box2-lib/blob/1c5d528d0c44af9d084c2e68ed8b5863db9abe0c/src/tests/Herrera/Box/Tests/Compactor/PhpTest.php | src/tests/Herrera/Box/Tests/Compactor/PhpTest.php | <?php
namespace Herrera\Box\Tests\Compactor;
use Herrera\Annotations\Tokenizer;
use Herrera\Box\Compactor\Php;
use Herrera\PHPUnit\TestCase;
class PhpTest extends TestCase
{
/**
* @var Php
*/
private $php;
public function testCompact()
{
$original = <<<ORIGINAL
<?php
/**
* A comm... | php | MIT | 1c5d528d0c44af9d084c2e68ed8b5863db9abe0c | 2026-01-05T02:32:29.774297Z | false |
box-project/box2-lib | https://github.com/box-project/box2-lib/blob/1c5d528d0c44af9d084c2e68ed8b5863db9abe0c/src/tests/Herrera/Box/Tests/Compactor/JsonTest.php | src/tests/Herrera/Box/Tests/Compactor/JsonTest.php | <?php
namespace Herrera\Box\Tests\Compactor;
use Herrera\Box\Compactor\Json;
use Herrera\PHPUnit\TestCase;
class JsonTest extends TestCase
{
public function testCompact()
{
$compactor = new Json();
$expected = '{"test":123}';
$original = <<<JSON
{
"test": 123
}
JSON;
$thi... | php | MIT | 1c5d528d0c44af9d084c2e68ed8b5863db9abe0c | 2026-01-05T02:32:29.774297Z | false |
box-project/box2-lib | https://github.com/box-project/box2-lib/blob/1c5d528d0c44af9d084c2e68ed8b5863db9abe0c/src/tests/Herrera/Box/Tests/Compactor/JavascriptTest.php | src/tests/Herrera/Box/Tests/Compactor/JavascriptTest.php | <?php
namespace Herrera\Box\Tests\Compactor;
use Herrera\PHPUnit\TestCase;
use Herrera\Box\Compactor\Javascript;
class JavascriptTest extends TestCase
{
public function testSupports()
{
$compactor = new Javascript();
$this->assertTrue($compactor->supports('test.js'));
$this->assertF... | php | MIT | 1c5d528d0c44af9d084c2e68ed8b5863db9abe0c | 2026-01-05T02:32:29.774297Z | false |
box-project/box2-lib | https://github.com/box-project/box2-lib/blob/1c5d528d0c44af9d084c2e68ed8b5863db9abe0c/src/tests/Herrera/Box/Tests/Compactor/BaseCompactor.php | src/tests/Herrera/Box/Tests/Compactor/BaseCompactor.php | <?php
namespace Herrera\Box\Tests\Compactor;
use Herrera\Box\Compactor\Compactor;
class BaseCompactor extends Compactor
{
public function compact($contents)
{
}
}
| php | MIT | 1c5d528d0c44af9d084c2e68ed8b5863db9abe0c | 2026-01-05T02:32:29.774297Z | false |
box-project/box2-lib | https://github.com/box-project/box2-lib/blob/1c5d528d0c44af9d084c2e68ed8b5863db9abe0c/src/tests/Herrera/Box/Tests/Compactor/CompactorTest.php | src/tests/Herrera/Box/Tests/Compactor/CompactorTest.php | <?php
namespace Herrera\Box\Tests\Compactor;
use Herrera\PHPUnit\TestCase;
class CompactorTest extends TestCase
{
/**
* @var BaseCompactor
*/
private $compactor;
public function testSetExtensions()
{
$this->compactor->setExtensions(array('php'));
$this->assertTrue($this->c... | php | MIT | 1c5d528d0c44af9d084c2e68ed8b5863db9abe0c | 2026-01-05T02:32:29.774297Z | false |
box-project/box2-lib | https://github.com/box-project/box2-lib/blob/1c5d528d0c44af9d084c2e68ed8b5863db9abe0c/src/tests/Herrera/Box/Tests/Exception/ExceptionTest.php | src/tests/Herrera/Box/Tests/Exception/ExceptionTest.php | <?php
namespace Herrera\Box\Tests\Exception;
use Herrera\Box\Exception\Exception;
use Herrera\PHPUnit\TestCase;
class ExceptionTest extends TestCase
{
public function testCreate()
{
$exception = Exception::create('My %s.', 'message');
$this->assertEquals('My message.', $exception->getMessage... | php | MIT | 1c5d528d0c44af9d084c2e68ed8b5863db9abe0c | 2026-01-05T02:32:29.774297Z | false |
box-project/box2-lib | https://github.com/box-project/box2-lib/blob/1c5d528d0c44af9d084c2e68ed8b5863db9abe0c/src/tests/Herrera/Box/Tests/Exception/OpenSslExceptionTest.php | src/tests/Herrera/Box/Tests/Exception/OpenSslExceptionTest.php | <?php
namespace Herrera\Box\Tests\Exception;
use Herrera\Box\Exception\OpenSslException;
use Herrera\PHPUnit\TestCase;
class OpenSslExceptionTest extends TestCase
{
public function testLastError()
{
if (false === extension_loaded('openssl')) {
$this->markTestSkipped(
'The ... | php | MIT | 1c5d528d0c44af9d084c2e68ed8b5863db9abe0c | 2026-01-05T02:32:29.774297Z | false |
box-project/box2-lib | https://github.com/box-project/box2-lib/blob/1c5d528d0c44af9d084c2e68ed8b5863db9abe0c/src/lib/Herrera/Box/Signature.php | src/lib/Herrera/Box/Signature.php | <?php
namespace Herrera\Box;
use Herrera\Box\Exception\Exception;
use Herrera\Box\Exception\FileException;
use Herrera\Box\Exception\OpenSslException;
use Herrera\Box\Signature\VerifyInterface;
use PharException;
/**
* Retrieves and verifies a phar's signature without using the extension.
*
* While the phar exten... | php | MIT | 1c5d528d0c44af9d084c2e68ed8b5863db9abe0c | 2026-01-05T02:32:29.774297Z | false |
box-project/box2-lib | https://github.com/box-project/box2-lib/blob/1c5d528d0c44af9d084c2e68ed8b5863db9abe0c/src/lib/Herrera/Box/Box.php | src/lib/Herrera/Box/Box.php | <?php
namespace Herrera\Box;
use FilesystemIterator;
use Herrera\Box\Compactor\CompactorInterface;
use Herrera\Box\Exception\FileException;
use Herrera\Box\Exception\InvalidArgumentException;
use Herrera\Box\Exception\OpenSslException;
use Herrera\Box\Exception\UnexpectedValueException;
use Phar;
use Phine\Path\Path;... | php | MIT | 1c5d528d0c44af9d084c2e68ed8b5863db9abe0c | 2026-01-05T02:32:29.774297Z | false |
box-project/box2-lib | https://github.com/box-project/box2-lib/blob/1c5d528d0c44af9d084c2e68ed8b5863db9abe0c/src/lib/Herrera/Box/Extract.php | src/lib/Herrera/Box/Extract.php | <?php
namespace Herrera\Box;
use InvalidArgumentException;
use LengthException;
use RuntimeException;
use UnexpectedValueException;
/**
* The default stub pattern.
*
* @var string
*/
define('BOX_EXTRACT_PATTERN_DEFAULT', '__HALT' . '_COMPILER(); ?>');
/**
* The open-ended stub pattern.
*
* @var string
*/
de... | php | MIT | 1c5d528d0c44af9d084c2e68ed8b5863db9abe0c | 2026-01-05T02:32:29.774297Z | false |
box-project/box2-lib | https://github.com/box-project/box2-lib/blob/1c5d528d0c44af9d084c2e68ed8b5863db9abe0c/src/lib/Herrera/Box/StubGenerator.php | src/lib/Herrera/Box/StubGenerator.php | <?php
namespace Herrera\Box;
use Herrera\Box\Compactor\Php;
use Herrera\Box\Exception\InvalidArgumentException;
/**
* Generates a new PHP bootstrap loader stub for a Phar.
*
* @author Kevin Herrera <kevin@herrera.io>
*/
class StubGenerator
{
/**
* The list of server variables that are allowed to be modi... | php | MIT | 1c5d528d0c44af9d084c2e68ed8b5863db9abe0c | 2026-01-05T02:32:29.774297Z | false |
box-project/box2-lib | https://github.com/box-project/box2-lib/blob/1c5d528d0c44af9d084c2e68ed8b5863db9abe0c/src/lib/Herrera/Box/Signature/AbstractBufferedHash.php | src/lib/Herrera/Box/Signature/AbstractBufferedHash.php | <?php
namespace Herrera\Box\Signature;
/**
* Buffers the hash as opposed to updating incrementally.
*
* @author Kevin Herrera <kevin@herrera.io>
*/
abstract class AbstractBufferedHash implements VerifyInterface
{
/**
* The buffered data.
*
* @var string
*/
private $data;
/**
... | php | MIT | 1c5d528d0c44af9d084c2e68ed8b5863db9abe0c | 2026-01-05T02:32:29.774297Z | false |
box-project/box2-lib | https://github.com/box-project/box2-lib/blob/1c5d528d0c44af9d084c2e68ed8b5863db9abe0c/src/lib/Herrera/Box/Signature/PhpSecLib.php | src/lib/Herrera/Box/Signature/PhpSecLib.php | <?php
namespace Herrera\Box\Signature;
use Crypt_RSA;
/**
* Uses the phpseclib library to verify a signature.
*
* @author Kevin Herrera <kevin@herrera.io>
*/
class PhpSecLib extends AbstractPublicKey
{
/**
* @see VerifyInterface::verify
*/
public function verify($signature)
{
$rsa =... | php | MIT | 1c5d528d0c44af9d084c2e68ed8b5863db9abe0c | 2026-01-05T02:32:29.774297Z | false |
box-project/box2-lib | https://github.com/box-project/box2-lib/blob/1c5d528d0c44af9d084c2e68ed8b5863db9abe0c/src/lib/Herrera/Box/Signature/PublicKeyDelegate.php | src/lib/Herrera/Box/Signature/PublicKeyDelegate.php | <?php
namespace Herrera\Box\Signature;
use Herrera\Box\Exception\SignatureException;
/**
* Uses the OpenSSL extension or phpseclib library to verify a signature.
*
* @author Kevin Herrera <kevin@herrera.io>
*/
class PublicKeyDelegate implements VerifyInterface
{
/**
* The hashing class.
*
* @v... | php | MIT | 1c5d528d0c44af9d084c2e68ed8b5863db9abe0c | 2026-01-05T02:32:29.774297Z | false |
box-project/box2-lib | https://github.com/box-project/box2-lib/blob/1c5d528d0c44af9d084c2e68ed8b5863db9abe0c/src/lib/Herrera/Box/Signature/AbstractPublicKey.php | src/lib/Herrera/Box/Signature/AbstractPublicKey.php | <?php
namespace Herrera\Box\Signature;
use Herrera\Box\Exception\FileException;
/**
* Loads the private key from a file to use for verification.
*
* @author Kevin Herrera <kevin@herrera.io>
*/
abstract class AbstractPublicKey extends AbstractBufferedHash
{
/**
* The private key.
*
* @var strin... | php | MIT | 1c5d528d0c44af9d084c2e68ed8b5863db9abe0c | 2026-01-05T02:32:29.774297Z | false |
box-project/box2-lib | https://github.com/box-project/box2-lib/blob/1c5d528d0c44af9d084c2e68ed8b5863db9abe0c/src/lib/Herrera/Box/Signature/OpenSsl.php | src/lib/Herrera/Box/Signature/OpenSsl.php | <?php
namespace Herrera\Box\Signature;
use Herrera\Box\Exception\OpenSslException;
/**
* Uses OpenSSL to verify the signature.
*
* @author Kevin Herrera <kevin@herrera.io>
*/
class OpenSsl extends AbstractPublicKey
{
/**
* @see VerifyInterface::verify
*/
public function verify($signature)
{... | php | MIT | 1c5d528d0c44af9d084c2e68ed8b5863db9abe0c | 2026-01-05T02:32:29.774297Z | false |
box-project/box2-lib | https://github.com/box-project/box2-lib/blob/1c5d528d0c44af9d084c2e68ed8b5863db9abe0c/src/lib/Herrera/Box/Signature/VerifyInterface.php | src/lib/Herrera/Box/Signature/VerifyInterface.php | <?php
namespace Herrera\Box\Signature;
use Herrera\Box\Exception\Exception;
use Herrera\Box\Exception\SignatureException;
/**
* Defines how a signature verification class must be implemented.
*
* @author Kevin Herrera <kevin@herrera.io>
*/
interface VerifyInterface
{
/**
* Initializes the hash.
*
... | php | MIT | 1c5d528d0c44af9d084c2e68ed8b5863db9abe0c | 2026-01-05T02:32:29.774297Z | false |
box-project/box2-lib | https://github.com/box-project/box2-lib/blob/1c5d528d0c44af9d084c2e68ed8b5863db9abe0c/src/lib/Herrera/Box/Signature/Hash.php | src/lib/Herrera/Box/Signature/Hash.php | <?php
namespace Herrera\Box\Signature;
use Herrera\Box\Exception\SignatureException;
/**
* Uses the PHP hash library to verify a signature.
*
* @author Kevin Herrera <kevin@herrera.io>
*/
class Hash implements VerifyInterface
{
/**
* The hash context.
*
* @var resource
*/
private $con... | php | MIT | 1c5d528d0c44af9d084c2e68ed8b5863db9abe0c | 2026-01-05T02:32:29.774297Z | false |
box-project/box2-lib | https://github.com/box-project/box2-lib/blob/1c5d528d0c44af9d084c2e68ed8b5863db9abe0c/src/lib/Herrera/Box/Compactor/Json.php | src/lib/Herrera/Box/Compactor/Json.php | <?php
namespace Herrera\Box\Compactor;
/**
* Compacts JSON files by re-encoding without pretty print.
*
* @author Kevin Herrera <kevin@herrera.io>
*/
class Json extends Compactor
{
/**
* The default list of supported file extensions.
*
* @var array
*/
protected $extensions = array('jso... | php | MIT | 1c5d528d0c44af9d084c2e68ed8b5863db9abe0c | 2026-01-05T02:32:29.774297Z | false |
box-project/box2-lib | https://github.com/box-project/box2-lib/blob/1c5d528d0c44af9d084c2e68ed8b5863db9abe0c/src/lib/Herrera/Box/Compactor/Composer.php | src/lib/Herrera/Box/Compactor/Composer.php | <?php
namespace Herrera\Box\Compactor;
/**
* The Composer class has been renamed to Php.
*
* @author Kevin Herrera <kevin@herrera.io>
*/
class Composer extends Php
{
}
| php | MIT | 1c5d528d0c44af9d084c2e68ed8b5863db9abe0c | 2026-01-05T02:32:29.774297Z | false |
box-project/box2-lib | https://github.com/box-project/box2-lib/blob/1c5d528d0c44af9d084c2e68ed8b5863db9abe0c/src/lib/Herrera/Box/Compactor/CompactorInterface.php | src/lib/Herrera/Box/Compactor/CompactorInterface.php | <?php
namespace Herrera\Box\Compactor;
/**
* Defines how a source code compacting class must be implemented.
*
* @author Kevin Herrera <kevin@herrera.io>
*/
interface CompactorInterface
{
/**
* Compacts the file contents.
*
* @param string $contents The contents.
*
* @return string Th... | php | MIT | 1c5d528d0c44af9d084c2e68ed8b5863db9abe0c | 2026-01-05T02:32:29.774297Z | false |
box-project/box2-lib | https://github.com/box-project/box2-lib/blob/1c5d528d0c44af9d084c2e68ed8b5863db9abe0c/src/lib/Herrera/Box/Compactor/Compactor.php | src/lib/Herrera/Box/Compactor/Compactor.php | <?php
namespace Herrera\Box\Compactor;
/**
* An abstract compactor class that handles matching supported file types.
*
* @author Kevin Herrera <kevin@herrera.io>
*/
abstract class Compactor implements CompactorInterface
{
/**
* The list of supported file extensions.
*
* @var array
*/
p... | php | MIT | 1c5d528d0c44af9d084c2e68ed8b5863db9abe0c | 2026-01-05T02:32:29.774297Z | false |
box-project/box2-lib | https://github.com/box-project/box2-lib/blob/1c5d528d0c44af9d084c2e68ed8b5863db9abe0c/src/lib/Herrera/Box/Compactor/Javascript.php | src/lib/Herrera/Box/Compactor/Javascript.php | <?php
namespace Herrera\Box\Compactor;
use JShrink\Minifier;
/**
* Compacts Javascript files using JShrink.
*
* @author Robert Hafner <tedivm@tedivm.com>
*/
class Javascript extends Compactor
{
/**
* The default list of supported file extensions.
*
* @var array
*/
protected $extension... | php | MIT | 1c5d528d0c44af9d084c2e68ed8b5863db9abe0c | 2026-01-05T02:32:29.774297Z | false |
box-project/box2-lib | https://github.com/box-project/box2-lib/blob/1c5d528d0c44af9d084c2e68ed8b5863db9abe0c/src/lib/Herrera/Box/Compactor/Php.php | src/lib/Herrera/Box/Compactor/Php.php | <?php
namespace Herrera\Box\Compactor;
use Doctrine\Common\Annotations\DocLexer;
use Herrera\Annotations\Convert\ToString;
use Herrera\Annotations\Tokenizer;
use Herrera\Annotations\Tokens;
/**
* A PHP source code compactor copied from Composer.
*
* @author Kevin Herrera <kevin@herrera.io>
* @author Fabien Poten... | php | MIT | 1c5d528d0c44af9d084c2e68ed8b5863db9abe0c | 2026-01-05T02:32:29.774297Z | false |
box-project/box2-lib | https://github.com/box-project/box2-lib/blob/1c5d528d0c44af9d084c2e68ed8b5863db9abe0c/src/lib/Herrera/Box/Exception/FileException.php | src/lib/Herrera/Box/Exception/FileException.php | <?php
namespace Herrera\Box\Exception;
/**
* Used for errors when using the file system.
*
* @author Kevin Herrera <kevin@herrera.io>
*/
class FileException extends Exception
{
}
| php | MIT | 1c5d528d0c44af9d084c2e68ed8b5863db9abe0c | 2026-01-05T02:32:29.774297Z | false |
box-project/box2-lib | https://github.com/box-project/box2-lib/blob/1c5d528d0c44af9d084c2e68ed8b5863db9abe0c/src/lib/Herrera/Box/Exception/Exception.php | src/lib/Herrera/Box/Exception/Exception.php | <?php
namespace Herrera\Box\Exception;
/**
* Provides additional functional to the Exception class.
*
* @author Kevin Herrera <kevin@herrera.io>
*/
class Exception extends \Exception implements ExceptionInterface
{
/**
* Creates a new exception using a format and values.
*
* @param string $form... | php | MIT | 1c5d528d0c44af9d084c2e68ed8b5863db9abe0c | 2026-01-05T02:32:29.774297Z | false |
box-project/box2-lib | https://github.com/box-project/box2-lib/blob/1c5d528d0c44af9d084c2e68ed8b5863db9abe0c/src/lib/Herrera/Box/Exception/ExceptionInterface.php | src/lib/Herrera/Box/Exception/ExceptionInterface.php | <?php
namespace Herrera\Box\Exception;
/**
* Indicates that the exception came from this library.
*
* @author Kevin Herrera <kevin@herrera.io>
*/
interface ExceptionInterface
{
}
| php | MIT | 1c5d528d0c44af9d084c2e68ed8b5863db9abe0c | 2026-01-05T02:32:29.774297Z | false |
box-project/box2-lib | https://github.com/box-project/box2-lib/blob/1c5d528d0c44af9d084c2e68ed8b5863db9abe0c/src/lib/Herrera/Box/Exception/OpenSslException.php | src/lib/Herrera/Box/Exception/OpenSslException.php | <?php
namespace Herrera\Box\Exception;
/**
* Use for errors when using the OpenSSL extension.
*
* @author Kevin Herrera <kevin@herrera.io>
*/
class OpenSslException extends Exception
{
/**
* Creates an exception for the last OpenSSL error.
*
* @return OpenSslException The exception.
*/
... | php | MIT | 1c5d528d0c44af9d084c2e68ed8b5863db9abe0c | 2026-01-05T02:32:29.774297Z | false |
box-project/box2-lib | https://github.com/box-project/box2-lib/blob/1c5d528d0c44af9d084c2e68ed8b5863db9abe0c/src/lib/Herrera/Box/Exception/UnexpectedValueException.php | src/lib/Herrera/Box/Exception/UnexpectedValueException.php | <?php
namespace Herrera\Box\Exception;
/**
* Used if an unexpected value is given.
*
* @author Kevin Herrera <kevin@herrera.io>
*/
class UnexpectedValueException extends Exception
{
}
| php | MIT | 1c5d528d0c44af9d084c2e68ed8b5863db9abe0c | 2026-01-05T02:32:29.774297Z | false |
box-project/box2-lib | https://github.com/box-project/box2-lib/blob/1c5d528d0c44af9d084c2e68ed8b5863db9abe0c/src/lib/Herrera/Box/Exception/InvalidArgumentException.php | src/lib/Herrera/Box/Exception/InvalidArgumentException.php | <?php
namespace Herrera\Box\Exception;
/**
* Used if an invalid argument is given.
*
* @author Kevin Herrera <kevin@herrera.io>
*/
class InvalidArgumentException extends Exception
{
}
| php | MIT | 1c5d528d0c44af9d084c2e68ed8b5863db9abe0c | 2026-01-05T02:32:29.774297Z | false |
box-project/box2-lib | https://github.com/box-project/box2-lib/blob/1c5d528d0c44af9d084c2e68ed8b5863db9abe0c/src/lib/Herrera/Box/Exception/SignatureException.php | src/lib/Herrera/Box/Exception/SignatureException.php | <?php
namespace Herrera\Box\Exception;
/**
* Used for errors related to phar signatures.
*
* @author Kevin Herrera <kevin@herrera.io>
*/
class SignatureException extends Exception
{
}
| php | MIT | 1c5d528d0c44af9d084c2e68ed8b5863db9abe0c | 2026-01-05T02:32:29.774297Z | false |
phpvms/phpvms | https://github.com/phpvms/phpvms/blob/8fdd34d2ea76f18f9bee259558c1bfe5b5877ae9/rector.php | rector.php | <?php
declare(strict_types=1);
use Rector\CodeQuality\Rector\FuncCall\CompactToVariablesRector;
use Rector\Config\RectorConfig;
use Rector\Set\ValueObject\SetList;
use Rector\ValueObject\PhpVersion;
use RectorLaravel\Set\LaravelLevelSetList;
return static function (RectorConfig $rectorConfig): void {
// Paths to... | php | BSD-3-Clause | 8fdd34d2ea76f18f9bee259558c1bfe5b5877ae9 | 2026-01-05T02:29:57.665749Z | false |
phpvms/phpvms | https://github.com/phpvms/phpvms/blob/8fdd34d2ea76f18f9bee259558c1bfe5b5877ae9/app/helpers.php | app/helpers.php | <?php
use App\Exceptions\SettingNotFound;
use App\Repositories\KvpRepository;
use App\Repositories\SettingRepository;
use Carbon\Carbon;
use Illuminate\Contracts\View\Factory;
use Illuminate\Support\Facades\Auth;
use Illuminate\Support\Facades\Cache;
use Nwidart\Modules\Facades\Module;
/*
* array_key_first only exis... | php | BSD-3-Clause | 8fdd34d2ea76f18f9bee259558c1bfe5b5877ae9 | 2026-01-05T02:29:57.665749Z | false |
phpvms/phpvms | https://github.com/phpvms/phpvms/blob/8fdd34d2ea76f18f9bee259558c1bfe5b5877ae9/app/Exceptions/AssetNotFound.php | app/Exceptions/AssetNotFound.php | <?php
namespace App\Exceptions;
use Exception;
class AssetNotFound extends AbstractHttpException
{
public function __construct(
Exception $exception
) {
parent::__construct(
404,
$exception->getMessage()
);
}
/**
* Return the RFC 7807 error type (... | php | BSD-3-Clause | 8fdd34d2ea76f18f9bee259558c1bfe5b5877ae9 | 2026-01-05T02:29:57.665749Z | false |
phpvms/phpvms | https://github.com/phpvms/phpvms/blob/8fdd34d2ea76f18f9bee259558c1bfe5b5877ae9/app/Exceptions/PirepCancelNotAllowed.php | app/Exceptions/PirepCancelNotAllowed.php | <?php
namespace App\Exceptions;
use App\Models\Pirep;
class PirepCancelNotAllowed extends AbstractHttpException
{
public function __construct(
private readonly Pirep $pirep
) {
parent::__construct(
400,
'This PIREP can\'t be cancelled'
);
}
/**
* ... | php | BSD-3-Clause | 8fdd34d2ea76f18f9bee259558c1bfe5b5877ae9 | 2026-01-05T02:29:57.665749Z | false |
phpvms/phpvms | https://github.com/phpvms/phpvms/blob/8fdd34d2ea76f18f9bee259558c1bfe5b5877ae9/app/Exceptions/InternalError.php | app/Exceptions/InternalError.php | <?php
namespace App\Exceptions;
use Illuminate\Support\Facades\Log;
use Illuminate\Support\Facades\Validator;
use Illuminate\Validation\ValidationException;
/**
* Show an internal error, bug piggyback off of the validation
* exception type - this has a place to show up in the UI as a
* flash message.
*/
class In... | php | BSD-3-Clause | 8fdd34d2ea76f18f9bee259558c1bfe5b5877ae9 | 2026-01-05T02:29:57.665749Z | false |
phpvms/phpvms | https://github.com/phpvms/phpvms/blob/8fdd34d2ea76f18f9bee259558c1bfe5b5877ae9/app/Exceptions/CronInvalid.php | app/Exceptions/CronInvalid.php | <?php
namespace App\Exceptions;
class CronInvalid extends AbstractHttpException
{
public const MESSAGE = 'Cron ID is disabled or invalid';
public function __construct()
{
parent::__construct(400, static::MESSAGE);
}
/**
* Return the RFC 7807 error type (without the URL root)
*/... | php | BSD-3-Clause | 8fdd34d2ea76f18f9bee259558c1bfe5b5877ae9 | 2026-01-05T02:29:57.665749Z | false |
phpvms/phpvms | https://github.com/phpvms/phpvms/blob/8fdd34d2ea76f18f9bee259558c1bfe5b5877ae9/app/Exceptions/ModuleInvalidFileType.php | app/Exceptions/ModuleInvalidFileType.php | <?php
namespace App\Exceptions;
class ModuleInvalidFileType extends AbstractHttpException
{
public function __construct()
{
parent::__construct(
415,
'The Module File Type is Invalid!'
);
}
/**
* Return the RFC 7807 error type (without the URL root)
*... | php | BSD-3-Clause | 8fdd34d2ea76f18f9bee259558c1bfe5b5877ae9 | 2026-01-05T02:29:57.665749Z | false |
phpvms/phpvms | https://github.com/phpvms/phpvms/blob/8fdd34d2ea76f18f9bee259558c1bfe5b5877ae9/app/Exceptions/SettingNotFound.php | app/Exceptions/SettingNotFound.php | <?php
namespace App\Exceptions;
use Exception;
class SettingNotFound extends Exception {}
| php | BSD-3-Clause | 8fdd34d2ea76f18f9bee259558c1bfe5b5877ae9 | 2026-01-05T02:29:57.665749Z | false |
phpvms/phpvms | https://github.com/phpvms/phpvms/blob/8fdd34d2ea76f18f9bee259558c1bfe5b5877ae9/app/Exceptions/UserBidLimit.php | app/Exceptions/UserBidLimit.php | <?php
namespace App\Exceptions;
use App\Models\User;
class UserBidLimit extends AbstractHttpException
{
public function __construct(
private readonly User $user
) {
parent::__construct(
409,
'User '.$user->ident.' has the maximum number of bids'
);
}
/... | php | BSD-3-Clause | 8fdd34d2ea76f18f9bee259558c1bfe5b5877ae9 | 2026-01-05T02:29:57.665749Z | false |
phpvms/phpvms | https://github.com/phpvms/phpvms/blob/8fdd34d2ea76f18f9bee259558c1bfe5b5877ae9/app/Exceptions/AirportNotFound.php | app/Exceptions/AirportNotFound.php | <?php
namespace App\Exceptions;
class AirportNotFound extends AbstractHttpException
{
public function __construct(
private readonly string $icao
) {
parent::__construct(
404,
'Airport '.$icao.' not found'
);
}
/**
* Return the RFC 7807 error type (... | php | BSD-3-Clause | 8fdd34d2ea76f18f9bee259558c1bfe5b5877ae9 | 2026-01-05T02:29:57.665749Z | false |
phpvms/phpvms | https://github.com/phpvms/phpvms/blob/8fdd34d2ea76f18f9bee259558c1bfe5b5877ae9/app/Exceptions/BidNotFound.php | app/Exceptions/BidNotFound.php | <?php
namespace App\Exceptions;
class BidNotFound extends AbstractHttpException
{
public function __construct(
private readonly int $bid_id
) {
parent::__construct(
404,
'The bid '.$bid_id.' was not found'
);
}
/**
* Return the RFC 7807 error type ... | php | BSD-3-Clause | 8fdd34d2ea76f18f9bee259558c1bfe5b5877ae9 | 2026-01-05T02:29:57.665749Z | false |
phpvms/phpvms | https://github.com/phpvms/phpvms/blob/8fdd34d2ea76f18f9bee259558c1bfe5b5877ae9/app/Exceptions/Handler.php | app/Exceptions/Handler.php | <?php
namespace App\Exceptions;
use App\Exceptions\Converters\GenericExceptionAbstract;
use App\Exceptions\Converters\SymfonyException;
use App\Exceptions\Converters\ValidationException;
use App\Http\Middleware\SetActiveTheme;
use Illuminate\Auth\AuthenticationException;
use Illuminate\Database\Eloquent\ModelNotFound... | php | BSD-3-Clause | 8fdd34d2ea76f18f9bee259558c1bfe5b5877ae9 | 2026-01-05T02:29:57.665749Z | false |
phpvms/phpvms | https://github.com/phpvms/phpvms/blob/8fdd34d2ea76f18f9bee259558c1bfe5b5877ae9/app/Exceptions/AircraftPermissionDenied.php | app/Exceptions/AircraftPermissionDenied.php | <?php
namespace App\Exceptions;
use App\Models\Aircraft;
use App\Models\User;
class AircraftPermissionDenied extends AbstractHttpException
{
public const MESSAGE = 'User is not allowed to fly this aircraft';
public function __construct(
private readonly User $user,
private readonly Aircraft ... | php | BSD-3-Clause | 8fdd34d2ea76f18f9bee259558c1bfe5b5877ae9 | 2026-01-05T02:29:57.665749Z | false |
phpvms/phpvms | https://github.com/phpvms/phpvms/blob/8fdd34d2ea76f18f9bee259558c1bfe5b5877ae9/app/Exceptions/Unauthorized.php | app/Exceptions/Unauthorized.php | <?php
namespace App\Exceptions;
use Exception;
class Unauthorized extends AbstractHttpException
{
public function __construct(Exception $exception)
{
parent::__construct(
403,
$exception->getMessage()
);
}
/**
* Return the RFC 7807 error type (without the... | php | BSD-3-Clause | 8fdd34d2ea76f18f9bee259558c1bfe5b5877ae9 | 2026-01-05T02:29:57.665749Z | false |
phpvms/phpvms | https://github.com/phpvms/phpvms/blob/8fdd34d2ea76f18f9bee259558c1bfe5b5877ae9/app/Exceptions/PirepCancelled.php | app/Exceptions/PirepCancelled.php | <?php
namespace App\Exceptions;
use App\Models\Pirep;
class PirepCancelled extends AbstractHttpException
{
public function __construct(
private readonly Pirep $pirep
) {
parent::__construct(
400,
'PIREP has been cancelled, updates are not allowed'
);
}
... | php | BSD-3-Clause | 8fdd34d2ea76f18f9bee259558c1bfe5b5877ae9 | 2026-01-05T02:29:57.665749Z | false |
phpvms/phpvms | https://github.com/phpvms/phpvms/blob/8fdd34d2ea76f18f9bee259558c1bfe5b5877ae9/app/Exceptions/AbstractHttpException.php | app/Exceptions/AbstractHttpException.php | <?php
namespace App\Exceptions;
use Illuminate\Http\JsonResponse;
use Illuminate\Http\Response;
use Symfony\Component\HttpKernel\Exception\HttpException as SymfonyHttpException;
use Symfony\Component\HttpKernel\Exception\HttpExceptionInterface;
/**
* Abstract class for an exception which needs to satisty the RFC 78... | php | BSD-3-Clause | 8fdd34d2ea76f18f9bee259558c1bfe5b5877ae9 | 2026-01-05T02:29:57.665749Z | false |
phpvms/phpvms | https://github.com/phpvms/phpvms/blob/8fdd34d2ea76f18f9bee259558c1bfe5b5877ae9/app/Exceptions/UserNotFound.php | app/Exceptions/UserNotFound.php | <?php
namespace App\Exceptions;
class UserNotFound extends AbstractHttpException
{
public function __construct()
{
parent::__construct(
404,
'User not found'
);
}
/**
* Return the RFC 7807 error type (without the URL root)
*/
public function getEr... | php | BSD-3-Clause | 8fdd34d2ea76f18f9bee259558c1bfe5b5877ae9 | 2026-01-05T02:29:57.665749Z | false |
phpvms/phpvms | https://github.com/phpvms/phpvms/blob/8fdd34d2ea76f18f9bee259558c1bfe5b5877ae9/app/Exceptions/Unauthenticated.php | app/Exceptions/Unauthenticated.php | <?php
namespace App\Exceptions;
class Unauthenticated extends AbstractHttpException
{
public function __construct()
{
parent::__construct(
401,
'User not authenticated'
);
}
/**
* Return the RFC 7807 error type (without the URL root)
*/
public fun... | php | BSD-3-Clause | 8fdd34d2ea76f18f9bee259558c1bfe5b5877ae9 | 2026-01-05T02:29:57.665749Z | false |
phpvms/phpvms | https://github.com/phpvms/phpvms/blob/8fdd34d2ea76f18f9bee259558c1bfe5b5877ae9/app/Exceptions/BidExistsForAircraft.php | app/Exceptions/BidExistsForAircraft.php | <?php
namespace App\Exceptions;
use App\Models\Aircraft;
class BidExistsForAircraft extends AbstractHttpException
{
public function __construct(
private readonly Aircraft $aircraft
) {
parent::__construct(
409,
'A bid already exists for this aircraft'
);
}
... | php | BSD-3-Clause | 8fdd34d2ea76f18f9bee259558c1bfe5b5877ae9 | 2026-01-05T02:29:57.665749Z | false |
phpvms/phpvms | https://github.com/phpvms/phpvms/blob/8fdd34d2ea76f18f9bee259558c1bfe5b5877ae9/app/Exceptions/UnknownPageType.php | app/Exceptions/UnknownPageType.php | <?php
namespace App\Exceptions;
use App\Models\Page;
class UnknownPageType extends AbstractHttpException
{
public function __construct(
private readonly Page $page
) {
parent::__construct(
400,
'Unknown page type "'.$page->type.'"'
);
}
/**
* Retu... | php | BSD-3-Clause | 8fdd34d2ea76f18f9bee259558c1bfe5b5877ae9 | 2026-01-05T02:29:57.665749Z | false |
phpvms/phpvms | https://github.com/phpvms/phpvms/blob/8fdd34d2ea76f18f9bee259558c1bfe5b5877ae9/app/Exceptions/AircraftNotAtAirport.php | app/Exceptions/AircraftNotAtAirport.php | <?php
namespace App\Exceptions;
use App\Models\Aircraft;
/**
* Class AircraftNotAtAirport
*/
class AircraftNotAtAirport extends AbstractHttpException
{
public const MESSAGE = 'The aircraft is not at the departure airport';
public function __construct(
private readonly Aircraft $aircraft
) {
... | php | BSD-3-Clause | 8fdd34d2ea76f18f9bee259558c1bfe5b5877ae9 | 2026-01-05T02:29:57.665749Z | false |
phpvms/phpvms | https://github.com/phpvms/phpvms/blob/8fdd34d2ea76f18f9bee259558c1bfe5b5877ae9/app/Exceptions/UserPilotIdExists.php | app/Exceptions/UserPilotIdExists.php | <?php
namespace App\Exceptions;
use App\Models\User;
class UserPilotIdExists extends AbstractHttpException
{
public const MESSAGE = 'A user with this pilot ID already exists';
public function __construct(
private readonly User $user
) {
parent::__construct(
400,
s... | php | BSD-3-Clause | 8fdd34d2ea76f18f9bee259558c1bfe5b5877ae9 | 2026-01-05T02:29:57.665749Z | false |
phpvms/phpvms | https://github.com/phpvms/phpvms/blob/8fdd34d2ea76f18f9bee259558c1bfe5b5877ae9/app/Exceptions/AircraftInvalid.php | app/Exceptions/AircraftInvalid.php | <?php
namespace App\Exceptions;
use App\Models\Aircraft;
class AircraftInvalid extends AbstractHttpException
{
public const MESSAGE = 'The supplied aircraft is invalid';
public function __construct(
private readonly ?Aircraft $aircraft
) {
parent::__construct(
400,
... | php | BSD-3-Clause | 8fdd34d2ea76f18f9bee259558c1bfe5b5877ae9 | 2026-01-05T02:29:57.665749Z | false |
phpvms/phpvms | https://github.com/phpvms/phpvms/blob/8fdd34d2ea76f18f9bee259558c1bfe5b5877ae9/app/Exceptions/PageNotFound.php | app/Exceptions/PageNotFound.php | <?php
namespace App\Exceptions;
use Exception;
class PageNotFound extends AbstractHttpException
{
public function __construct(Exception $exception)
{
parent::__construct(
404,
$exception->getMessage()
);
}
/**
* Return the RFC 7807 error type (without the... | php | BSD-3-Clause | 8fdd34d2ea76f18f9bee259558c1bfe5b5877ae9 | 2026-01-05T02:29:57.665749Z | false |
phpvms/phpvms | https://github.com/phpvms/phpvms/blob/8fdd34d2ea76f18f9bee259558c1bfe5b5877ae9/app/Exceptions/PrefileError.php | app/Exceptions/PrefileError.php | <?php
namespace App\Exceptions;
/**
* Prefile Error
*
* If listening to the prefile event message, use `throw new PrefileError("message message");`
* to abort the prefile process and send the message up to ACARS
*/
class PrefileError extends AbstractHttpException
{
public function __construct(string $error)
... | php | BSD-3-Clause | 8fdd34d2ea76f18f9bee259558c1bfe5b5877ae9 | 2026-01-05T02:29:57.665749Z | false |
phpvms/phpvms | https://github.com/phpvms/phpvms/blob/8fdd34d2ea76f18f9bee259558c1bfe5b5877ae9/app/Exceptions/PilotIdNotFound.php | app/Exceptions/PilotIdNotFound.php | <?php
namespace App\Exceptions;
class PilotIdNotFound extends AbstractHttpException
{
public function __construct(
private readonly string $pilot_id
) {
parent::__construct(
404,
'Pilot '.$pilot_id.' not found'
);
}
/**
* Return the RFC 7807 error ... | php | BSD-3-Clause | 8fdd34d2ea76f18f9bee259558c1bfe5b5877ae9 | 2026-01-05T02:29:57.665749Z | false |
phpvms/phpvms | https://github.com/phpvms/phpvms/blob/8fdd34d2ea76f18f9bee259558c1bfe5b5877ae9/app/Exceptions/ModuleInstallationError.php | app/Exceptions/ModuleInstallationError.php | <?php
namespace App\Exceptions;
class ModuleInstallationError extends AbstractHttpException
{
public function __construct()
{
parent::__construct(
500,
'Installation of Module Failed!'
);
}
/**
* Return the RFC 7807 error type (without the URL root)
*... | php | BSD-3-Clause | 8fdd34d2ea76f18f9bee259558c1bfe5b5877ae9 | 2026-01-05T02:29:57.665749Z | false |
phpvms/phpvms | https://github.com/phpvms/phpvms/blob/8fdd34d2ea76f18f9bee259558c1bfe5b5877ae9/app/Exceptions/PirepNotFound.php | app/Exceptions/PirepNotFound.php | <?php
namespace App\Exceptions;
class PirepNotFound extends AbstractHttpException
{
public function __construct(
private readonly string $pirep_id
) {
parent::__construct(
404,
'PIREP '.$pirep_id.' not found'
);
}
/**
* Return the RFC 7807 error ty... | php | BSD-3-Clause | 8fdd34d2ea76f18f9bee259558c1bfe5b5877ae9 | 2026-01-05T02:29:57.665749Z | false |
phpvms/phpvms | https://github.com/phpvms/phpvms/blob/8fdd34d2ea76f18f9bee259558c1bfe5b5877ae9/app/Exceptions/UserNotAtAirport.php | app/Exceptions/UserNotAtAirport.php | <?php
namespace App\Exceptions;
use App\Models\Airport;
use App\Models\User;
class UserNotAtAirport extends AbstractHttpException
{
public const MESSAGE = 'Pilot is not at the departure airport';
public function __construct(
private readonly User $user,
private readonly Airport $airport
... | php | BSD-3-Clause | 8fdd34d2ea76f18f9bee259558c1bfe5b5877ae9 | 2026-01-05T02:29:57.665749Z | false |
phpvms/phpvms | https://github.com/phpvms/phpvms/blob/8fdd34d2ea76f18f9bee259558c1bfe5b5877ae9/app/Exceptions/AircraftNotAvailable.php | app/Exceptions/AircraftNotAvailable.php | <?php
namespace App\Exceptions;
use App\Models\Aircraft;
class AircraftNotAvailable extends AbstractHttpException
{
public const MESSAGE = 'The aircraft is not available for flight';
public function __construct(
private readonly Aircraft $aircraft
) {
parent::__construct(
400... | php | BSD-3-Clause | 8fdd34d2ea76f18f9bee259558c1bfe5b5877ae9 | 2026-01-05T02:29:57.665749Z | false |
phpvms/phpvms | https://github.com/phpvms/phpvms/blob/8fdd34d2ea76f18f9bee259558c1bfe5b5877ae9/app/Exceptions/BidExistsForFlight.php | app/Exceptions/BidExistsForFlight.php | <?php
namespace App\Exceptions;
use App\Models\Flight;
class BidExistsForFlight extends AbstractHttpException
{
public function __construct(
private readonly Flight $flight
) {
parent::__construct(
409,
'A bid already exists for this flight'
);
}
/**
... | php | BSD-3-Clause | 8fdd34d2ea76f18f9bee259558c1bfe5b5877ae9 | 2026-01-05T02:29:57.665749Z | false |
phpvms/phpvms | https://github.com/phpvms/phpvms/blob/8fdd34d2ea76f18f9bee259558c1bfe5b5877ae9/app/Exceptions/ModuleExistsException.php | app/Exceptions/ModuleExistsException.php | <?php
namespace App\Exceptions;
class ModuleExistsException extends AbstractHttpException
{
public function __construct(string $module_name)
{
parent::__construct(
409,
'Module '.$module_name.' Already Exists!'
);
}
/**
* Return the RFC 7807 error type (wi... | php | BSD-3-Clause | 8fdd34d2ea76f18f9bee259558c1bfe5b5877ae9 | 2026-01-05T02:29:57.665749Z | false |
phpvms/phpvms | https://github.com/phpvms/phpvms/blob/8fdd34d2ea76f18f9bee259558c1bfe5b5877ae9/app/Exceptions/PirepError.php | app/Exceptions/PirepError.php | <?php
namespace App\Exceptions;
use App\Models\Pirep;
class PirepError extends AbstractHttpException
{
public function __construct(
private readonly Pirep $pirep,
string $error
) {
parent::__construct(400, $error);
}
/**
* Return the RFC 7807 error type (without the URL ... | php | BSD-3-Clause | 8fdd34d2ea76f18f9bee259558c1bfe5b5877ae9 | 2026-01-05T02:29:57.665749Z | false |
phpvms/phpvms | https://github.com/phpvms/phpvms/blob/8fdd34d2ea76f18f9bee259558c1bfe5b5877ae9/app/Exceptions/DuplicateFlight.php | app/Exceptions/DuplicateFlight.php | <?php
namespace App\Exceptions;
use App\Models\Flight;
class DuplicateFlight extends AbstractHttpException
{
public function __construct(
private readonly Flight $flight
) {
parent::__construct(
409,
'Duplicate flight with same number/code/leg found'
);
}
... | php | BSD-3-Clause | 8fdd34d2ea76f18f9bee259558c1bfe5b5877ae9 | 2026-01-05T02:29:57.665749Z | false |
phpvms/phpvms | https://github.com/phpvms/phpvms/blob/8fdd34d2ea76f18f9bee259558c1bfe5b5877ae9/app/Exceptions/Converters/GenericExceptionAbstract.php | app/Exceptions/Converters/GenericExceptionAbstract.php | <?php
namespace App\Exceptions\Converters;
use App\Exceptions\AbstractHttpException;
use Throwable;
class GenericExceptionAbstract extends AbstractHttpException
{
private $exception;
public function __construct(Throwable $exception)
{
$this->exception = $exception;
parent::__construct(
... | php | BSD-3-Clause | 8fdd34d2ea76f18f9bee259558c1bfe5b5877ae9 | 2026-01-05T02:29:57.665749Z | false |
phpvms/phpvms | https://github.com/phpvms/phpvms/blob/8fdd34d2ea76f18f9bee259558c1bfe5b5877ae9/app/Exceptions/Converters/SymfonyException.php | app/Exceptions/Converters/SymfonyException.php | <?php
namespace App\Exceptions\Converters;
use App\Exceptions\AbstractHttpException;
use Symfony\Component\HttpKernel\Exception\HttpException as SymfonyHttpException;
class SymfonyException extends AbstractHttpException
{
private $exception;
public function __construct(SymfonyHttpException $exception)
{... | php | BSD-3-Clause | 8fdd34d2ea76f18f9bee259558c1bfe5b5877ae9 | 2026-01-05T02:29:57.665749Z | false |
phpvms/phpvms | https://github.com/phpvms/phpvms/blob/8fdd34d2ea76f18f9bee259558c1bfe5b5877ae9/app/Exceptions/Converters/ValidationException.php | app/Exceptions/Converters/ValidationException.php | <?php
namespace App\Exceptions\Converters;
use App\Exceptions\AbstractHttpException;
use Illuminate\Validation\ValidationException as IlluminateValidationException;
class ValidationException extends AbstractHttpException
{
private $validationException;
private $errorDetail;
private $errors;
public... | php | BSD-3-Clause | 8fdd34d2ea76f18f9bee259558c1bfe5b5877ae9 | 2026-01-05T02:29:57.665749Z | false |
phpvms/phpvms | https://github.com/phpvms/phpvms/blob/8fdd34d2ea76f18f9bee259558c1bfe5b5877ae9/app/Http/Kernel.php | app/Http/Kernel.php | <?php
namespace App\Http;
use App\Http\Middleware\ApiAuth;
use App\Http\Middleware\EncryptCookies;
use App\Http\Middleware\InstalledCheck;
use App\Http\Middleware\JsonResponse;
use App\Http\Middleware\RedirectIfAuthenticated;
use App\Http\Middleware\SetActiveLanguage;
use App\Http\Middleware\SetActiveTheme;
use App\H... | php | BSD-3-Clause | 8fdd34d2ea76f18f9bee259558c1bfe5b5877ae9 | 2026-01-05T02:29:57.665749Z | false |
phpvms/phpvms | https://github.com/phpvms/phpvms/blob/8fdd34d2ea76f18f9bee259558c1bfe5b5877ae9/app/Http/Requests/CreateAirframeRequest.php | app/Http/Requests/CreateAirframeRequest.php | <?php
namespace App\Http\Requests;
use App\Contracts\FormRequest;
use App\Models\SimBriefAirframe;
class CreateAirframeRequest extends FormRequest
{
/**
* Get the validation rules that apply to the request.
*/
public function rules(): array
{
return SimBriefAirframe::$rules;
}
}
| php | BSD-3-Clause | 8fdd34d2ea76f18f9bee259558c1bfe5b5877ae9 | 2026-01-05T02:29:57.665749Z | false |
phpvms/phpvms | https://github.com/phpvms/phpvms/blob/8fdd34d2ea76f18f9bee259558c1bfe5b5877ae9/app/Http/Requests/CreatePirepRequest.php | app/Http/Requests/CreatePirepRequest.php | <?php
namespace App\Http\Requests;
use App\Contracts\FormRequest;
use App\Models\Pirep;
use App\Repositories\PirepFieldRepository;
class CreatePirepRequest extends FormRequest
{
/**
* Get the validation rules that apply to the request.
*/
public function rules(): array
{
// Don't run va... | php | BSD-3-Clause | 8fdd34d2ea76f18f9bee259558c1bfe5b5877ae9 | 2026-01-05T02:29:57.665749Z | false |
phpvms/phpvms | https://github.com/phpvms/phpvms/blob/8fdd34d2ea76f18f9bee259558c1bfe5b5877ae9/app/Http/Requests/CreateInviteRequest.php | app/Http/Requests/CreateInviteRequest.php | <?php
namespace App\Http\Requests;
use Illuminate\Foundation\Http\FormRequest;
class CreateInviteRequest extends FormRequest
{
/**
* Get the validation rules that apply to the request.
*/
public function rules(): array
{
return [
'email' => 'nullable|string',
... | php | BSD-3-Clause | 8fdd34d2ea76f18f9bee259558c1bfe5b5877ae9 | 2026-01-05T02:29:57.665749Z | false |
phpvms/phpvms | https://github.com/phpvms/phpvms/blob/8fdd34d2ea76f18f9bee259558c1bfe5b5877ae9/app/Http/Requests/UpdateAirframeRequest.php | app/Http/Requests/UpdateAirframeRequest.php | <?php
namespace App\Http\Requests;
use App\Contracts\FormRequest;
use App\Models\SimBriefAirframe;
class UpdateAirframeRequest extends FormRequest
{
/**
* Get the validation rules that apply to the request.
*/
public function rules(): array
{
return SimBriefAirframe::$rules;
}
}
| php | BSD-3-Clause | 8fdd34d2ea76f18f9bee259558c1bfe5b5877ae9 | 2026-01-05T02:29:57.665749Z | false |
phpvms/phpvms | https://github.com/phpvms/phpvms/blob/8fdd34d2ea76f18f9bee259558c1bfe5b5877ae9/app/Http/Requests/UpdatePirepRequest.php | app/Http/Requests/UpdatePirepRequest.php | <?php
namespace App\Http\Requests;
use App\Contracts\FormRequest;
use App\Models\Pirep;
use App\Repositories\PirepFieldRepository;
use Illuminate\Support\Facades\Log;
class UpdatePirepRequest extends FormRequest
{
/**
* Get the validation rules that apply to the request.
*/
public function rules():... | php | BSD-3-Clause | 8fdd34d2ea76f18f9bee259558c1bfe5b5877ae9 | 2026-01-05T02:29:57.665749Z | false |
phpvms/phpvms | https://github.com/phpvms/phpvms/blob/8fdd34d2ea76f18f9bee259558c1bfe5b5877ae9/app/Http/Requests/Acars/UpdateRequest.php | app/Http/Requests/Acars/UpdateRequest.php | <?php
namespace App\Http\Requests\Acars;
use App\Contracts\FormRequest;
use App\Models\Pirep;
use Illuminate\Support\Facades\Auth;
class UpdateRequest extends FormRequest
{
public function authorize(): bool
{
$pirep = Pirep::findOrFail($this->route('pirep_id'), ['user_id']);
return $pirep->u... | php | BSD-3-Clause | 8fdd34d2ea76f18f9bee259558c1bfe5b5877ae9 | 2026-01-05T02:29:57.665749Z | false |
phpvms/phpvms | https://github.com/phpvms/phpvms/blob/8fdd34d2ea76f18f9bee259558c1bfe5b5877ae9/app/Http/Requests/Acars/PrefileRequest.php | app/Http/Requests/Acars/PrefileRequest.php | <?php
namespace App\Http\Requests\Acars;
use App\Contracts\FormRequest;
class PrefileRequest extends FormRequest
{
public function rules(): array
{
return [
'airline_id' => 'required|exists:airlines,id',
'aircraft_id' => 'required|exists:aircraft,id',
... | php | BSD-3-Clause | 8fdd34d2ea76f18f9bee259558c1bfe5b5877ae9 | 2026-01-05T02:29:57.665749Z | false |
phpvms/phpvms | https://github.com/phpvms/phpvms/blob/8fdd34d2ea76f18f9bee259558c1bfe5b5877ae9/app/Http/Requests/Acars/CommentRequest.php | app/Http/Requests/Acars/CommentRequest.php | <?php
namespace App\Http\Requests\Acars;
use App\Contracts\FormRequest;
class CommentRequest extends FormRequest
{
public function rules(): array
{
return [
'comment' => 'required',
'created_at' => 'sometimes|date',
];
}
}
| php | BSD-3-Clause | 8fdd34d2ea76f18f9bee259558c1bfe5b5877ae9 | 2026-01-05T02:29:57.665749Z | false |
phpvms/phpvms | https://github.com/phpvms/phpvms/blob/8fdd34d2ea76f18f9bee259558c1bfe5b5877ae9/app/Http/Requests/Acars/FileRequest.php | app/Http/Requests/Acars/FileRequest.php | <?php
namespace App\Http\Requests\Acars;
use App\Contracts\FormRequest;
use App\Models\Pirep;
use Illuminate\Support\Facades\Auth;
class FileRequest extends FormRequest
{
public function authorize(): bool
{
$pirep = Pirep::findOrFail($this->route('pirep_id'), ['user_id']);
return $pirep->use... | php | BSD-3-Clause | 8fdd34d2ea76f18f9bee259558c1bfe5b5877ae9 | 2026-01-05T02:29:57.665749Z | false |
phpvms/phpvms | https://github.com/phpvms/phpvms/blob/8fdd34d2ea76f18f9bee259558c1bfe5b5877ae9/app/Http/Requests/Acars/LogRequest.php | app/Http/Requests/Acars/LogRequest.php | <?php
namespace App\Http\Requests\Acars;
use App\Contracts\FormRequest;
use App\Models\Pirep;
use Illuminate\Support\Facades\Auth;
class LogRequest extends FormRequest
{
public function authorize(): bool
{
$pirep = Pirep::findOrFail($this->route('pirep_id'), ['user_id']);
return $pirep->user... | php | BSD-3-Clause | 8fdd34d2ea76f18f9bee259558c1bfe5b5877ae9 | 2026-01-05T02:29:57.665749Z | false |
phpvms/phpvms | https://github.com/phpvms/phpvms/blob/8fdd34d2ea76f18f9bee259558c1bfe5b5877ae9/app/Http/Requests/Acars/RouteRequest.php | app/Http/Requests/Acars/RouteRequest.php | <?php
namespace App\Http\Requests\Acars;
use App\Contracts\FormRequest;
use App\Models\Pirep;
use Illuminate\Support\Facades\Auth;
class RouteRequest extends FormRequest
{
public function authorize(): bool
{
$pirep = Pirep::findOrFail($this->route('pirep_id'), ['user_id']);
return $pirep->us... | php | BSD-3-Clause | 8fdd34d2ea76f18f9bee259558c1bfe5b5877ae9 | 2026-01-05T02:29:57.665749Z | false |
phpvms/phpvms | https://github.com/phpvms/phpvms/blob/8fdd34d2ea76f18f9bee259558c1bfe5b5877ae9/app/Http/Requests/Acars/FieldsRequest.php | app/Http/Requests/Acars/FieldsRequest.php | <?php
namespace App\Http\Requests\Acars;
use App\Contracts\FormRequest;
class FieldsRequest extends FormRequest
{
public function rules(): array
{
return [
'fields' => 'required|array',
];
}
}
| php | BSD-3-Clause | 8fdd34d2ea76f18f9bee259558c1bfe5b5877ae9 | 2026-01-05T02:29:57.665749Z | false |
phpvms/phpvms | https://github.com/phpvms/phpvms/blob/8fdd34d2ea76f18f9bee259558c1bfe5b5877ae9/app/Http/Requests/Acars/EventRequest.php | app/Http/Requests/Acars/EventRequest.php | <?php
namespace App\Http\Requests\Acars;
use App\Contracts\FormRequest;
use App\Models\Pirep;
use Illuminate\Support\Facades\Auth;
class EventRequest extends FormRequest
{
public function authorize(): bool
{
$pirep = Pirep::findOrFail($this->route('pirep_id'), ['user_id']);
return $pirep->us... | php | BSD-3-Clause | 8fdd34d2ea76f18f9bee259558c1bfe5b5877ae9 | 2026-01-05T02:29:57.665749Z | false |
phpvms/phpvms | https://github.com/phpvms/phpvms/blob/8fdd34d2ea76f18f9bee259558c1bfe5b5877ae9/app/Http/Requests/Acars/PositionRequest.php | app/Http/Requests/Acars/PositionRequest.php | <?php
namespace App\Http\Requests\Acars;
use App\Contracts\FormRequest;
use App\Models\Pirep;
use Illuminate\Support\Facades\Auth;
class PositionRequest extends FormRequest
{
/**
* Is the user allowed to do this?
*/
public function authorize(): bool
{
$pirep = Pirep::findOrFail($this->r... | php | BSD-3-Clause | 8fdd34d2ea76f18f9bee259558c1bfe5b5877ae9 | 2026-01-05T02:29:57.665749Z | false |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.