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 |
|---|---|---|---|---|---|---|---|---|
crazycodr/standard-exceptions | https://github.com/crazycodr/standard-exceptions/blob/842242a1abb8b757abfd24c2dccc64bb821bf53f/Exceptions/IO/Filesystem/DirectoryNotReadableException.php | Exceptions/IO/Filesystem/DirectoryNotReadableException.php | <?php
namespace Exceptions\IO\Filesystem;
use Exceptions\Tag\ForbiddenTag;
/**
* Use this exception when your code tries to read the content of a directory but cannot do so due to filesystem
* permissions.
*
* @author Mathieu Dumoulin <thecrazycodr@gmail.com>
* @license MIT
*/
class DirectoryNotReadableExce... | php | MIT | 842242a1abb8b757abfd24c2dccc64bb821bf53f | 2026-01-05T04:11:55.840865Z | false |
crazycodr/standard-exceptions | https://github.com/crazycodr/standard-exceptions/blob/842242a1abb8b757abfd24c2dccc64bb821bf53f/Exceptions/IO/Filesystem/FileAlreadyExistsException.php | Exceptions/IO/Filesystem/FileAlreadyExistsException.php | <?php
namespace Exceptions\IO\Filesystem;
use Exceptions\Tag\ExistsTag;
/**
* Use this exception when your code tries to create a file but it already exists.
*
* @author Mathieu Dumoulin <thecrazycodr@gmail.com>
* @license MIT
*/
class FileAlreadyExistsException extends FilesystemException implements ExistsT... | php | MIT | 842242a1abb8b757abfd24c2dccc64bb821bf53f | 2026-01-05T04:11:55.840865Z | false |
crazycodr/standard-exceptions | https://github.com/crazycodr/standard-exceptions/blob/842242a1abb8b757abfd24c2dccc64bb821bf53f/Exceptions/IO/Filesystem/FileNotReadableException.php | Exceptions/IO/Filesystem/FileNotReadableException.php | <?php
namespace Exceptions\IO\Filesystem;
use Exceptions\Tag\ForbiddenTag;
/**
* Use this exception when your code tries to read the content of a file but cannot do so due to filesystem permissions.
*
* @author Mathieu Dumoulin <thecrazycodr@gmail.com>
* @license MIT
*/
class FileNotReadableException extends... | php | MIT | 842242a1abb8b757abfd24c2dccc64bb821bf53f | 2026-01-05T04:11:55.840865Z | false |
crazycodr/standard-exceptions | https://github.com/crazycodr/standard-exceptions/blob/842242a1abb8b757abfd24c2dccc64bb821bf53f/Exceptions/IO/Filesystem/FilesystemExceptionInterface.php | Exceptions/IO/Filesystem/FilesystemExceptionInterface.php | <?php
namespace Exceptions\IO\Filesystem;
use Exceptions\IO\IOExceptionInterface;
/**
* This interface defines the different accessor you can use when dealing with IO\Filesystem exceptions.
*
* @author Mathieu Dumoulin <thecrazycodr@gmail.com>
* @license MIT
*/
interface FilesystemExceptionInterface extends ... | php | MIT | 842242a1abb8b757abfd24c2dccc64bb821bf53f | 2026-01-05T04:11:55.840865Z | false |
crazycodr/standard-exceptions | https://github.com/crazycodr/standard-exceptions/blob/842242a1abb8b757abfd24c2dccc64bb821bf53f/Exceptions/IO/Filesystem/NotAFileException.php | Exceptions/IO/Filesystem/NotAFileException.php | <?php
namespace Exceptions\IO\Filesystem;
use Exceptions\Tag\InvalidDataTag;
/**
* Use this exception when your code tries to do something on a file but the passed on item is not a file.
*
* @author Mathieu Dumoulin <thecrazycodr@gmail.com>
* @license MIT
*/
class NotAFileException extends FilesystemExceptio... | php | MIT | 842242a1abb8b757abfd24c2dccc64bb821bf53f | 2026-01-05T04:11:55.840865Z | false |
crazycodr/standard-exceptions | https://github.com/crazycodr/standard-exceptions/blob/842242a1abb8b757abfd24c2dccc64bb821bf53f/Exceptions/IO/Filesystem/FilesystemException.php | Exceptions/IO/Filesystem/FilesystemException.php | <?php
namespace Exceptions\IO\Filesystem;
use Exceptions\IO\IOException;
/**
* This is a tag like class that is used to regroup all IO\Filesystem exceptions under a single base class.
*
* @author Mathieu Dumoulin <thecrazycodr@gmail.com>
* @license MIT
*/
abstract class FilesystemException extends IOExceptio... | php | MIT | 842242a1abb8b757abfd24c2dccc64bb821bf53f | 2026-01-05T04:11:55.840865Z | false |
crazycodr/standard-exceptions | https://github.com/crazycodr/standard-exceptions/blob/842242a1abb8b757abfd24c2dccc64bb821bf53f/Exceptions/IO/Network/RequestTimeoutException.php | Exceptions/IO/Network/RequestTimeoutException.php | <?php
namespace Exceptions\IO\Network;
use Exceptions\Tag\AbortedTag;
/**
* Use this exception when an IO network request fails to respond in time. This exception is slightly different
* from the ConnectionTimeoutException where it is the connection to the host that failed.
*
* @author Mathieu Dumoulin <thecra... | php | MIT | 842242a1abb8b757abfd24c2dccc64bb821bf53f | 2026-01-05T04:11:55.840865Z | false |
crazycodr/standard-exceptions | https://github.com/crazycodr/standard-exceptions/blob/842242a1abb8b757abfd24c2dccc64bb821bf53f/Exceptions/IO/Network/NetworkException.php | Exceptions/IO/Network/NetworkException.php | <?php
namespace Exceptions\IO\Network;
use Exceptions\IO\IOException;
/**
* This is a tag like class that is used to regroup all IO\Network exceptions under a single base class.
*
* @author Mathieu Dumoulin <thecrazycodr@gmail.com>
* @license MIT
*/
abstract class NetworkException extends IOException impleme... | php | MIT | 842242a1abb8b757abfd24c2dccc64bb821bf53f | 2026-01-05T04:11:55.840865Z | false |
crazycodr/standard-exceptions | https://github.com/crazycodr/standard-exceptions/blob/842242a1abb8b757abfd24c2dccc64bb821bf53f/Exceptions/IO/Network/ConnectionLostException.php | Exceptions/IO/Network/ConnectionLostException.php | <?php
namespace Exceptions\IO\Network;
use Exceptions\Tag\AbortedTag;
/**
* Use this exception when an IO operation that requires a distant connection gets cut off after negotiating
* connection.
*
* @author Mathieu Dumoulin <thecrazycodr@gmail.com>
* @license MIT
*/
class ConnectionLostException extends Ne... | php | MIT | 842242a1abb8b757abfd24c2dccc64bb821bf53f | 2026-01-05T04:11:55.840865Z | false |
crazycodr/standard-exceptions | https://github.com/crazycodr/standard-exceptions/blob/842242a1abb8b757abfd24c2dccc64bb821bf53f/Exceptions/IO/Network/UnknownHostException.php | Exceptions/IO/Network/UnknownHostException.php | <?php
namespace Exceptions\IO\Network;
use Exceptions\Tag\NotFoundTag;
/**
* Use this exception when an IO operation tries to reach a remote host that cannot be resolved due to DNS or IP
* issues.
*
* @author Mathieu Dumoulin <thecrazycodr@gmail.com>
* @license MIT
*/
class UnknownHostException extends Netw... | php | MIT | 842242a1abb8b757abfd24c2dccc64bb821bf53f | 2026-01-05T04:11:55.840865Z | false |
crazycodr/standard-exceptions | https://github.com/crazycodr/standard-exceptions/blob/842242a1abb8b757abfd24c2dccc64bb821bf53f/Exceptions/IO/Network/NetworkExceptionInterface.php | Exceptions/IO/Network/NetworkExceptionInterface.php | <?php
namespace Exceptions\IO\Network;
use Exceptions\IO\IOExceptionInterface;
/**
* This interface defines the different accessor you can use when dealing with IO\Network exceptions.
*
* @author Mathieu Dumoulin <thecrazycodr@gmail.com>
* @license MIT
*/
interface NetworkExceptionInterface extends IOExcepti... | php | MIT | 842242a1abb8b757abfd24c2dccc64bb821bf53f | 2026-01-05T04:11:55.840865Z | false |
crazycodr/standard-exceptions | https://github.com/crazycodr/standard-exceptions/blob/842242a1abb8b757abfd24c2dccc64bb821bf53f/Exceptions/IO/Network/UnexpectedResponseException.php | Exceptions/IO/Network/UnexpectedResponseException.php | <?php
namespace Exceptions\IO\Network;
use Exceptions\Tag\AbortedTag;
/**
* Use this exception when an IO operation based on a communication protocol receives an unexpected response from
* the remote host.
*
* For example, establishing an FTP connection on a SFTP server will yield unexpected communication dialog... | php | MIT | 842242a1abb8b757abfd24c2dccc64bb821bf53f | 2026-01-05T04:11:55.840865Z | false |
crazycodr/standard-exceptions | https://github.com/crazycodr/standard-exceptions/blob/842242a1abb8b757abfd24c2dccc64bb821bf53f/Exceptions/IO/Network/ConnectionRefusedException.php | Exceptions/IO/Network/ConnectionRefusedException.php | <?php
namespace Exceptions\IO\Network;
use Exceptions\Tag\ForbiddenTag;
/**
* Use this exception when an IO operation that requires a distant connection is refused as you are negotiating the
* connection with the external resource.
*
* @author Mathieu Dumoulin <thecrazycodr@gmail.com>
* @license MIT
*/
clas... | php | MIT | 842242a1abb8b757abfd24c2dccc64bb821bf53f | 2026-01-05T04:11:55.840865Z | false |
crazycodr/standard-exceptions | https://github.com/crazycodr/standard-exceptions/blob/842242a1abb8b757abfd24c2dccc64bb821bf53f/Exceptions/IO/Network/ConnectionTimeoutException.php | Exceptions/IO/Network/ConnectionTimeoutException.php | <?php
namespace Exceptions\IO\Network;
use Exceptions\Tag\AbortedTag;
/**
* Use this exception when an IO network connection fails to connect in time. This exception is slightly different
* from the RequestTimeoutException where it is the request that failed.
*
* @author Mathieu Dumoulin <thecrazycodr@gmail.co... | php | MIT | 842242a1abb8b757abfd24c2dccc64bb821bf53f | 2026-01-05T04:11:55.840865Z | false |
crazycodr/standard-exceptions | https://github.com/crazycodr/standard-exceptions/blob/842242a1abb8b757abfd24c2dccc64bb821bf53f/Helpers/HttpExceptionFactory.php | Helpers/HttpExceptionFactory.php | <?php
namespace Exceptions\Helpers;
use Exceptions\Data\ValidationException;
use Exceptions\Http\Client;
use Exceptions\Http\HttpExceptionInterface;
use Exceptions\Http\Server;
use Throwable;
class HttpExceptionFactory
{
protected static $mapping = [
400 => Client\BadRequestException::class,
401 ... | php | MIT | 842242a1abb8b757abfd24c2dccc64bb821bf53f | 2026-01-05T04:11:55.840865Z | false |
crazycodr/standard-exceptions | https://github.com/crazycodr/standard-exceptions/blob/842242a1abb8b757abfd24c2dccc64bb821bf53f/Helpers/DefaultsInterface.php | Helpers/DefaultsInterface.php | <?php
namespace Exceptions\Helpers;
/**
* Represents the methods that should be implemented to retrieve the defaults for an exception
*
* @package Exceptions
*/
interface DefaultsInterface
{
/**
* Returns the default message for this exception
*
* @return string
*/
public static functi... | php | MIT | 842242a1abb8b757abfd24c2dccc64bb821bf53f | 2026-01-05T04:11:55.840865Z | false |
crazycodr/standard-exceptions | https://github.com/crazycodr/standard-exceptions/blob/842242a1abb8b757abfd24c2dccc64bb821bf53f/Helpers/DefaultConstructorTrait.php | Helpers/DefaultConstructorTrait.php | <?php
namespace Exceptions\Helpers;
/**
* Defines an easy to reuse constructor that builds the exception using the defaults interface definition
*
* @package Exceptions
*/
trait DefaultConstructorTrait
{
public function __construct(string $message = "", int $code = 0, \Throwable $previous = null)
{
... | php | MIT | 842242a1abb8b757abfd24c2dccc64bb821bf53f | 2026-01-05T04:11:55.840865Z | false |
crazycodr/standard-exceptions | https://github.com/crazycodr/standard-exceptions/blob/842242a1abb8b757abfd24c2dccc64bb821bf53f/Helpers/WithContext.php | Helpers/WithContext.php | <?php
namespace Exceptions\Helpers;
/**
* Implements a set of helper methods that creates exceptions to attach and retrieve contextual data.
*
* @package Exceptions\Helpers
*/
trait WithContext
{
/**
* Contains the contextual information attached to the exception
*
* @var mixed
*/
pro... | php | MIT | 842242a1abb8b757abfd24c2dccc64bb821bf53f | 2026-01-05T04:11:55.840865Z | false |
crazycodr/standard-exceptions | https://github.com/crazycodr/standard-exceptions/blob/842242a1abb8b757abfd24c2dccc64bb821bf53f/Helpers/FromException.php | Helpers/FromException.php | <?php
namespace Exceptions\Helpers;
/**
* Implements a helper method that helps to create exception following other exceptions (Sets the $previous) for you.
* This requires the ability to
* @package Exceptions\Helpers
*/
trait FromException
{
/**
* Creates an exception of the implementing trait and sets ... | php | MIT | 842242a1abb8b757abfd24c2dccc64bb821bf53f | 2026-01-05T04:11:55.840865Z | false |
crazycodr/standard-exceptions | https://github.com/crazycodr/standard-exceptions/blob/842242a1abb8b757abfd24c2dccc64bb821bf53f/Tests/VarianceTest.php | Tests/VarianceTest.php | <?php
namespace Exceptions\Tests;
use Exceptions\Data;
use Exceptions\Tag;
use Exceptions\Operation;
use Exceptions\Collection;
use Exceptions\Http;
use PHPUnit\Framework\TestCase;
class VarianceTest extends TestCase
{
/**
* Tests that the use of the replaced interface tags can still be used to catch the ex... | php | MIT | 842242a1abb8b757abfd24c2dccc64bb821bf53f | 2026-01-05T04:11:55.840865Z | false |
crazycodr/standard-exceptions | https://github.com/crazycodr/standard-exceptions/blob/842242a1abb8b757abfd24c2dccc64bb821bf53f/Tests/HttpExceptionFactoryTest.php | Tests/HttpExceptionFactoryTest.php | <?php
declare(strict_types=1);
namespace Exceptions\Tests;
use Exceptions\Data\ValidationException;
use Exceptions\Http\Client;
use Exceptions\Http\Server;
use Exceptions\Helpers\HttpExceptionFactory;
use Exceptions\Tests\stub\CustomHttpException;
use PHPUnit\Framework\TestCase;
use stdClass;
class HttpExceptionFac... | php | MIT | 842242a1abb8b757abfd24c2dccc64bb821bf53f | 2026-01-05T04:11:55.840865Z | false |
crazycodr/standard-exceptions | https://github.com/crazycodr/standard-exceptions/blob/842242a1abb8b757abfd24c2dccc64bb821bf53f/Tests/FeatureTest.php | Tests/FeatureTest.php | <?php
namespace Exceptions\Tests;
use Exceptions\Collection;
use Exceptions\Http;
use PHPUnit\Framework\TestCase;
use ReflectionClass;
use ReflectionException;
class FeatureTest extends TestCase
{
/**
* Tests that you can still properly override the message and code of an exception
*/
public funct... | php | MIT | 842242a1abb8b757abfd24c2dccc64bb821bf53f | 2026-01-05T04:11:55.840865Z | false |
crazycodr/standard-exceptions | https://github.com/crazycodr/standard-exceptions/blob/842242a1abb8b757abfd24c2dccc64bb821bf53f/Tests/DependencyTest.php | Tests/DependencyTest.php | <?php
namespace Exceptions\Tests;
use Exceptions\Tag;
use Exceptions\Collection;
use Exceptions\Data;
use Exceptions\Helpers;
use Exceptions\Http;
use Exceptions\Operation;
use Exceptions\IO;
use PHPUnit\Framework\TestCase;
use ReflectionClass;
use RuntimeException;
class DependencyTest extends TestCase
{
/**
... | php | MIT | 842242a1abb8b757abfd24c2dccc64bb821bf53f | 2026-01-05T04:11:55.840865Z | true |
crazycodr/standard-exceptions | https://github.com/crazycodr/standard-exceptions/blob/842242a1abb8b757abfd24c2dccc64bb821bf53f/Tests/stub/CustomHttpException.php | Tests/stub/CustomHttpException.php | <?php
declare(strict_types=1);
namespace Exceptions\Tests\stub;
use Exceptions\Http\HttpException;
class CustomHttpException extends HttpException
{
/**
* Returns the HTTP error code for that exception.
*/
const HTTP_CODE = 101;
/**
* Returns the HTTP error message for that exception.
... | php | MIT | 842242a1abb8b757abfd24c2dccc64bb821bf53f | 2026-01-05T04:11:55.840865Z | false |
glhd/conveyor-belt | https://github.com/glhd/conveyor-belt/blob/72b40d5267698d6e99ecbdc3ece8d4ddcdb690bc/config.php | config.php | <?php
return [
/*
|--------------------------------------------------------------------------
| Collect Exceptions
|--------------------------------------------------------------------------
|
| By default, Conveyor Belt will throw an exception as soon as it's
| triggered unless you set the `$collect_exceptions... | php | MIT | 72b40d5267698d6e99ecbdc3ece8d4ddcdb690bc | 2026-01-05T04:12:04.302111Z | false |
glhd/conveyor-belt | https://github.com/glhd/conveyor-belt/blob/72b40d5267698d6e99ecbdc3ece8d4ddcdb690bc/.php-cs-fixer.dist.php | .php-cs-fixer.dist.php | <?php
require_once __DIR__.'/vendor/autoload.php';
return (new PhpCsFixer\Config())
->setRiskyAllowed(true)
->setIndent("\t")
->setLineEnding("\n")
->setRules([
'@PSR2' => true,
'function_declaration' => [
'closure_function_spacing' => 'none',
'closure_fn_spacing' => 'none',
],
'ordered_imports' => ... | php | MIT | 72b40d5267698d6e99ecbdc3ece8d4ddcdb690bc | 2026-01-05T04:12:04.302111Z | false |
glhd/conveyor-belt | https://github.com/glhd/conveyor-belt/blob/72b40d5267698d6e99ecbdc3ece8d4ddcdb690bc/src/IteratesSpreadsheet.php | src/IteratesSpreadsheet.php | <?php
namespace Glhd\ConveyorBelt;
use Glhd\ConveyorBelt\Belts\ConveyorBelt;
use Glhd\ConveyorBelt\Belts\SpreadsheetBelt;
use Illuminate\Support\Facades\Date;
use Illuminate\Support\Str;
use OpenSpout\Common\Entity\Cell\DateTimeCell;
use OpenSpout\Common\Helper\EncodingHelper;
/**
* @property SpreadsheetBelt $conve... | php | MIT | 72b40d5267698d6e99ecbdc3ece8d4ddcdb690bc | 2026-01-05T04:12:04.302111Z | false |
glhd/conveyor-belt | https://github.com/glhd/conveyor-belt/blob/72b40d5267698d6e99ecbdc3ece8d4ddcdb690bc/src/IteratesQuery.php | src/IteratesQuery.php | <?php
namespace Glhd\ConveyorBelt;
use Glhd\ConveyorBelt\Belts\ConveyorBelt;
use Glhd\ConveyorBelt\Belts\QueryBelt;
use Illuminate\Support\Enumerable;
/**
* @property QueryBelt $conveyor_belt
* @property int $chunk_size
* @property bool $use_transaction
* @method query()
*/
trait IteratesQuery
{
use IteratesDa... | php | MIT | 72b40d5267698d6e99ecbdc3ece8d4ddcdb690bc | 2026-01-05T04:12:04.302111Z | false |
glhd/conveyor-belt | https://github.com/glhd/conveyor-belt/blob/72b40d5267698d6e99ecbdc3ece8d4ddcdb690bc/src/IteratesData.php | src/IteratesData.php | <?php
namespace Glhd\ConveyorBelt;
use Glhd\ConveyorBelt\Concerns\InteractsWithOutputDuringProgress;
use Glhd\ConveyorBelt\Concerns\SetsUpConveyorBelt;
use Glhd\ConveyorBelt\Exceptions\AbortConveyorBeltException;
use Illuminate\Support\Str;
use Symfony\Component\Console\Command\Command;
/**
* @method beforeFirstRow... | php | MIT | 72b40d5267698d6e99ecbdc3ece8d4ddcdb690bc | 2026-01-05T04:12:04.302111Z | false |
glhd/conveyor-belt | https://github.com/glhd/conveyor-belt/blob/72b40d5267698d6e99ecbdc3ece8d4ddcdb690bc/src/RespectsVerbosity.php | src/RespectsVerbosity.php | <?php
namespace Glhd\ConveyorBelt;
use Closure;
use Symfony\Component\Console\Output\OutputInterface;
trait RespectsVerbosity
{
public function whenVerbose(Closure $closure, $default = null)
{
if ($this->getOutput()->isVerbose()) {
return $closure();
}
return value($default);
}
public function conf... | php | MIT | 72b40d5267698d6e99ecbdc3ece8d4ddcdb690bc | 2026-01-05T04:12:04.302111Z | false |
glhd/conveyor-belt | https://github.com/glhd/conveyor-belt/blob/72b40d5267698d6e99ecbdc3ece8d4ddcdb690bc/src/IteratesIdQuery.php | src/IteratesIdQuery.php | <?php
namespace Glhd\ConveyorBelt;
use Illuminate\Support\Enumerable;
use Illuminate\Support\Str;
/**
* @property string $id_column
* @property string $id_alias
*/
trait IteratesIdQuery
{
use IteratesQuery;
/**
* @param \Illuminate\Database\Eloquent\Builder $query
* @return \Illuminate\Support\Enumerable
... | php | MIT | 72b40d5267698d6e99ecbdc3ece8d4ddcdb690bc | 2026-01-05T04:12:04.302111Z | false |
glhd/conveyor-belt | https://github.com/glhd/conveyor-belt/blob/72b40d5267698d6e99ecbdc3ece8d4ddcdb690bc/src/IteratesJson.php | src/IteratesJson.php | <?php
namespace Glhd\ConveyorBelt;
use Glhd\ConveyorBelt\Belts\ConveyorBelt;
use Glhd\ConveyorBelt\Belts\JsonBelt;
use GuzzleHttp\Psr7\StreamWrapper;
use Illuminate\Http\Client\Response as ClientResponse;
use Illuminate\Support\Facades\Http;
use JsonMachine\Items;
/**
* @property JsonBelt $conveyor_belt
* @propert... | php | MIT | 72b40d5267698d6e99ecbdc3ece8d4ddcdb690bc | 2026-01-05T04:12:04.302111Z | false |
glhd/conveyor-belt | https://github.com/glhd/conveyor-belt/blob/72b40d5267698d6e99ecbdc3ece8d4ddcdb690bc/src/IteratesEnumerable.php | src/IteratesEnumerable.php | <?php
namespace Glhd\ConveyorBelt;
use Glhd\ConveyorBelt\Belts\ConveyorBelt;
use Glhd\ConveyorBelt\Belts\EnumerableBelt;
use Illuminate\Support\Enumerable;
/**
* @property \Glhd\ConveyorBelt\Belts\EnumerableBelt $conveyor_belt
*/
trait IteratesEnumerable
{
use IteratesData;
abstract public function collect(): ... | php | MIT | 72b40d5267698d6e99ecbdc3ece8d4ddcdb690bc | 2026-01-05T04:12:04.302111Z | false |
glhd/conveyor-belt | https://github.com/glhd/conveyor-belt/blob/72b40d5267698d6e99ecbdc3ece8d4ddcdb690bc/src/Exceptions/AbortConveyorBeltException.php | src/Exceptions/AbortConveyorBeltException.php | <?php
namespace Glhd\ConveyorBelt\Exceptions;
use RuntimeException;
use Symfony\Component\Console\Command\Command;
use Throwable;
class AbortConveyorBeltException extends RuntimeException
{
public function __construct(string $message = '', int $code = Command::FAILURE, Throwable $previous = null)
{
parent::__con... | php | MIT | 72b40d5267698d6e99ecbdc3ece8d4ddcdb690bc | 2026-01-05T04:12:04.302111Z | false |
glhd/conveyor-belt | https://github.com/glhd/conveyor-belt/blob/72b40d5267698d6e99ecbdc3ece8d4ddcdb690bc/src/Support/ConveyorBeltServiceProvider.php | src/Support/ConveyorBeltServiceProvider.php | <?php
namespace Glhd\ConveyorBelt\Support;
use Illuminate\Support\ServiceProvider;
class ConveyorBeltServiceProvider extends ServiceProvider
{
public function boot()
{
$this->loadTranslationsFrom($this->packageTranslationsDirectory(), 'conveyor-belt');
$this->publishes(
[$this->packageConfigFile() => $th... | php | MIT | 72b40d5267698d6e99ecbdc3ece8d4ddcdb690bc | 2026-01-05T04:12:04.302111Z | false |
glhd/conveyor-belt | https://github.com/glhd/conveyor-belt/blob/72b40d5267698d6e99ecbdc3ece8d4ddcdb690bc/src/Support/CollectedException.php | src/Support/CollectedException.php | <?php
namespace Glhd\ConveyorBelt\Support;
use Illuminate\Database\Eloquent\Model;
use Throwable;
class CollectedException
{
public Throwable $exception;
public ?string $key = null;
public function __construct(Throwable $exception, $item = null)
{
$this->exception = $exception;
if ($item instanceof Mo... | php | MIT | 72b40d5267698d6e99ecbdc3ece8d4ddcdb690bc | 2026-01-05T04:12:04.302111Z | false |
glhd/conveyor-belt | https://github.com/glhd/conveyor-belt/blob/72b40d5267698d6e99ecbdc3ece8d4ddcdb690bc/src/Support/ProgressBar.php | src/Support/ProgressBar.php | <?php
namespace Glhd\ConveyorBelt\Support;
use Closure;
use Illuminate\Console\Concerns\InteractsWithIO;
use Illuminate\Support\Str;
use Symfony\Component\Console\Helper\ProgressBar as SymfonyProgressBar;
use Symfony\Component\Console\Input\InputInterface;
use Symfony\Component\Console\Style\OutputStyle;
class Progr... | php | MIT | 72b40d5267698d6e99ecbdc3ece8d4ddcdb690bc | 2026-01-05T04:12:04.302111Z | false |
glhd/conveyor-belt | https://github.com/glhd/conveyor-belt/blob/72b40d5267698d6e99ecbdc3ece8d4ddcdb690bc/src/Belts/QueryBelt.php | src/Belts/QueryBelt.php | <?php
namespace Glhd\ConveyorBelt\Belts;
use Countable;
use Illuminate\Database\Eloquent\Builder as EloquentBuilder;
use Illuminate\Database\Eloquent\Relations\Relation;
use Illuminate\Database\Query\Builder as BaseBuilder;
use Illuminate\Support\Arr;
use Illuminate\Support\Enumerable;
use Illuminate\Support\Facades\... | php | MIT | 72b40d5267698d6e99ecbdc3ece8d4ddcdb690bc | 2026-01-05T04:12:04.302111Z | false |
glhd/conveyor-belt | https://github.com/glhd/conveyor-belt/blob/72b40d5267698d6e99ecbdc3ece8d4ddcdb690bc/src/Belts/EnumerableBelt.php | src/Belts/EnumerableBelt.php | <?php
namespace Glhd\ConveyorBelt\Belts;
use Illuminate\Support\Enumerable;
/**
* @property \Glhd\ConveyorBelt\IteratesEnumerable|\Symfony\Component\Console\Command\Command $command
*/
class EnumerableBelt extends ConveyorBelt
{
protected function collect(): Enumerable
{
return $this->command->collect();
}
}
| php | MIT | 72b40d5267698d6e99ecbdc3ece8d4ddcdb690bc | 2026-01-05T04:12:04.302111Z | false |
glhd/conveyor-belt | https://github.com/glhd/conveyor-belt/blob/72b40d5267698d6e99ecbdc3ece8d4ddcdb690bc/src/Belts/JsonBelt.php | src/Belts/JsonBelt.php | <?php
namespace Glhd\ConveyorBelt\Belts;
use Illuminate\Support\Enumerable;
use Illuminate\Support\LazyCollection;
/**
* @property \Glhd\ConveyorBelt\IteratesJson|\Symfony\Component\Console\Command\Command $command
*/
class JsonBelt extends ConveyorBelt
{
protected function collect(): Enumerable
{
return new L... | php | MIT | 72b40d5267698d6e99ecbdc3ece8d4ddcdb690bc | 2026-01-05T04:12:04.302111Z | false |
glhd/conveyor-belt | https://github.com/glhd/conveyor-belt/blob/72b40d5267698d6e99ecbdc3ece8d4ddcdb690bc/src/Belts/ConveyorBelt.php | src/Belts/ConveyorBelt.php | <?php
namespace Glhd\ConveyorBelt\Belts;
use Countable;
use Glhd\ConveyorBelt\Exceptions\AbortConveyorBeltException;
use Glhd\ConveyorBelt\Support\CollectedException;
use Glhd\ConveyorBelt\Support\ProgressBar;
use Illuminate\Console\Concerns\InteractsWithIO;
use Illuminate\Database\Eloquent\Model;
use Illuminate\Supp... | php | MIT | 72b40d5267698d6e99ecbdc3ece8d4ddcdb690bc | 2026-01-05T04:12:04.302111Z | false |
glhd/conveyor-belt | https://github.com/glhd/conveyor-belt/blob/72b40d5267698d6e99ecbdc3ece8d4ddcdb690bc/src/Belts/SpreadsheetBelt.php | src/Belts/SpreadsheetBelt.php | <?php
namespace Glhd\ConveyorBelt\Belts;
use Illuminate\Support\Enumerable;
use Illuminate\Support\LazyCollection;
use OpenSpout\Common\Entity\Row;
use OpenSpout\Reader\CSV\Options as CsvOptions;
use OpenSpout\Reader\CSV\Reader as CsvReader;
use OpenSpout\Reader\ODS\Options as OdsOptions;
use OpenSpout\Reader\ODS\Rea... | php | MIT | 72b40d5267698d6e99ecbdc3ece8d4ddcdb690bc | 2026-01-05T04:12:04.302111Z | false |
glhd/conveyor-belt | https://github.com/glhd/conveyor-belt/blob/72b40d5267698d6e99ecbdc3ece8d4ddcdb690bc/src/Concerns/InteractsWithOutputDuringProgress.php | src/Concerns/InteractsWithOutputDuringProgress.php | <?php
namespace Glhd\ConveyorBelt\Concerns;
use Closure;
trait InteractsWithOutputDuringProgress
{
public function progressMessage($message)
{
$this->conveyor_belt->progress->message($message);
}
public function progressSubMessage($message)
{
$this->conveyor_belt->progress->subMessage($message);
}
pub... | php | MIT | 72b40d5267698d6e99ecbdc3ece8d4ddcdb690bc | 2026-01-05T04:12:04.302111Z | false |
glhd/conveyor-belt | https://github.com/glhd/conveyor-belt/blob/72b40d5267698d6e99ecbdc3ece8d4ddcdb690bc/src/Concerns/SetsUpConveyorBelt.php | src/Concerns/SetsUpConveyorBelt.php | <?php
namespace Glhd\ConveyorBelt\Concerns;
use Glhd\ConveyorBelt\Belts\ConveyorBelt;
use Illuminate\Support\Str;
use InvalidArgumentException;
use Symfony\Component\Console\Input\InputInterface;
use Symfony\Component\Console\Output\OutputInterface;
use Symfony\Component\Console\Style\OutputStyle;
trait SetsUpConvey... | php | MIT | 72b40d5267698d6e99ecbdc3ece8d4ddcdb690bc | 2026-01-05T04:12:04.302111Z | false |
glhd/conveyor-belt | https://github.com/glhd/conveyor-belt/blob/72b40d5267698d6e99ecbdc3ece8d4ddcdb690bc/tests/IteratesEnumerableTest.php | tests/IteratesEnumerableTest.php | <?php
namespace Glhd\ConveyorBelt\Tests;
use Glhd\ConveyorBelt\Tests\Commands\TestEnumerableCommand;
use Glhd\ConveyorBelt\Tests\Concerns\CallsTestCommands;
class IteratesEnumerableTest extends TestCase
{
use CallsTestCommands;
/** @dataProvider dataProvider */
public function test_it_can_handle_generic_enumera... | php | MIT | 72b40d5267698d6e99ecbdc3ece8d4ddcdb690bc | 2026-01-05T04:12:04.302111Z | false |
glhd/conveyor-belt | https://github.com/glhd/conveyor-belt/blob/72b40d5267698d6e99ecbdc3ece8d4ddcdb690bc/tests/IteratesIdQueryTest.php | tests/IteratesIdQueryTest.php | <?php
namespace Glhd\ConveyorBelt\Tests;
use Glhd\ConveyorBelt\Tests\Commands\TestIdQueryCommand;
use Glhd\ConveyorBelt\Tests\Concerns\CallsTestCommands;
use Glhd\ConveyorBelt\Tests\Concerns\TestsDatabaseTransactions;
use Glhd\ConveyorBelt\Tests\Models\User;
class IteratesIdQueryTest extends DatabaseTestCase
{
use ... | php | MIT | 72b40d5267698d6e99ecbdc3ece8d4ddcdb690bc | 2026-01-05T04:12:04.302111Z | false |
glhd/conveyor-belt | https://github.com/glhd/conveyor-belt/blob/72b40d5267698d6e99ecbdc3ece8d4ddcdb690bc/tests/DatabaseTestCase.php | tests/DatabaseTestCase.php | <?php
namespace Glhd\ConveyorBelt\Tests;
use Glhd\ConveyorBelt\Tests\Models\Company;
use Glhd\ConveyorBelt\Tests\Models\User;
use Illuminate\Foundation\Testing\RefreshDatabase;
class DatabaseTestCase extends TestCase
{
use RefreshDatabase;
/** @before */
public function seedModels(): void
{
// We're intentio... | php | MIT | 72b40d5267698d6e99ecbdc3ece8d4ddcdb690bc | 2026-01-05T04:12:04.302111Z | false |
glhd/conveyor-belt | https://github.com/glhd/conveyor-belt/blob/72b40d5267698d6e99ecbdc3ece8d4ddcdb690bc/tests/TestCase.php | tests/TestCase.php | <?php
namespace Glhd\ConveyorBelt\Tests;
use Glhd\ConveyorBelt\Support\ConveyorBeltServiceProvider;
use Glhd\ConveyorBelt\Tests\Commands\TestEnumerableCommand;
use Glhd\ConveyorBelt\Tests\Commands\TestIdQueryCommand;
use Glhd\ConveyorBelt\Tests\Commands\TestJsonEndpointCommand;
use Glhd\ConveyorBelt\Tests\Commands\Te... | php | MIT | 72b40d5267698d6e99ecbdc3ece8d4ddcdb690bc | 2026-01-05T04:12:04.302111Z | false |
glhd/conveyor-belt | https://github.com/glhd/conveyor-belt/blob/72b40d5267698d6e99ecbdc3ece8d4ddcdb690bc/tests/TestHelpersTest.php | tests/TestHelpersTest.php | <?php
namespace Glhd\ConveyorBelt\Tests;
class TestHelpersTest extends TestCase
{
public function test_data_provider_helper_builds_all_possible_combinations(): void
{
$provided = static::getDataProvider(
['a' => 'eh', 'b' => 'bee'],
['one' => 1, 'two' => 2],
['yes' => true, 'no' => false],
);
$exp... | php | MIT | 72b40d5267698d6e99ecbdc3ece8d4ddcdb690bc | 2026-01-05T04:12:04.302111Z | false |
glhd/conveyor-belt | https://github.com/glhd/conveyor-belt/blob/72b40d5267698d6e99ecbdc3ece8d4ddcdb690bc/tests/IteratesJsonTest.php | tests/IteratesJsonTest.php | <?php
namespace Glhd\ConveyorBelt\Tests;
use Glhd\ConveyorBelt\Tests\Commands\TestJsonEndpointCommand;
use Glhd\ConveyorBelt\Tests\Commands\TestJsonFileCommand;
use Glhd\ConveyorBelt\Tests\Concerns\CallsTestCommands;
use GuzzleHttp\Psr7\PumpStream;
use Illuminate\Support\Facades\Http;
use Illuminate\Support\Str;
cla... | php | MIT | 72b40d5267698d6e99ecbdc3ece8d4ddcdb690bc | 2026-01-05T04:12:04.302111Z | false |
glhd/conveyor-belt | https://github.com/glhd/conveyor-belt/blob/72b40d5267698d6e99ecbdc3ece8d4ddcdb690bc/tests/IteratesSpreadsheetTest.php | tests/IteratesSpreadsheetTest.php | <?php
namespace Glhd\ConveyorBelt\Tests;
use Carbon\Carbon;
use Glhd\ConveyorBelt\Tests\Commands\TestSpreadsheetCommand;
use Glhd\ConveyorBelt\Tests\Concerns\CallsTestCommands;
use Illuminate\Support\Facades\Date;
class IteratesSpreadsheetTest extends TestCase
{
use CallsTestCommands;
/** @dataProvider dataProvi... | php | MIT | 72b40d5267698d6e99ecbdc3ece8d4ddcdb690bc | 2026-01-05T04:12:04.302111Z | false |
glhd/conveyor-belt | https://github.com/glhd/conveyor-belt/blob/72b40d5267698d6e99ecbdc3ece8d4ddcdb690bc/tests/IteratesQueryTest.php | tests/IteratesQueryTest.php | <?php
namespace Glhd\ConveyorBelt\Tests;
use Glhd\ConveyorBelt\Tests\Commands\TestQueryCommand;
use Glhd\ConveyorBelt\Tests\Concerns\CallsTestCommands;
use Glhd\ConveyorBelt\Tests\Concerns\TestsDatabaseTransactions;
use Glhd\ConveyorBelt\Tests\Models\User;
use SqlFormatter;
class IteratesQueryTest extends DatabaseTe... | php | MIT | 72b40d5267698d6e99ecbdc3ece8d4ddcdb690bc | 2026-01-05T04:12:04.302111Z | false |
glhd/conveyor-belt | https://github.com/glhd/conveyor-belt/blob/72b40d5267698d6e99ecbdc3ece8d4ddcdb690bc/tests/PendingConveyorBeltCommand.php | tests/PendingConveyorBeltCommand.php | <?php
namespace Glhd\ConveyorBelt\Tests;
use Closure;
use Illuminate\Foundation\Application;
use Illuminate\Support\Traits\ForwardsCalls;
use Illuminate\Testing\PendingCommand;
use RuntimeException;
/** @mixin PendingCommand */
class PendingConveyorBeltCommand
{
use ForwardsCalls;
protected TestCase $test;
pr... | php | MIT | 72b40d5267698d6e99ecbdc3ece8d4ddcdb690bc | 2026-01-05T04:12:04.302111Z | false |
glhd/conveyor-belt | https://github.com/glhd/conveyor-belt/blob/72b40d5267698d6e99ecbdc3ece8d4ddcdb690bc/tests/Concerns/TestsDatabaseTransactions.php | tests/Concerns/TestsDatabaseTransactions.php | <?php
namespace Glhd\ConveyorBelt\Tests\Concerns;
use Illuminate\Database\Events\TransactionBeginning;
use Illuminate\Database\Events\TransactionCommitted;
use Illuminate\Database\Events\TransactionRolledBack;
use Illuminate\Support\Facades\DB;
trait TestsDatabaseTransactions
{
protected array $transaction_events =... | php | MIT | 72b40d5267698d6e99ecbdc3ece8d4ddcdb690bc | 2026-01-05T04:12:04.302111Z | false |
glhd/conveyor-belt | https://github.com/glhd/conveyor-belt/blob/72b40d5267698d6e99ecbdc3ece8d4ddcdb690bc/tests/Concerns/ProvidesData.php | tests/Concerns/ProvidesData.php | <?php
namespace Glhd\ConveyorBelt\Tests\Concerns;
trait ProvidesData
{
protected static function getDataProvider(array ...$data): array
{
if (empty($data)) {
return [];
}
$labels = [[]];
$results = [[]];
while (count($data)) {
$set = array_shift($data);
$next_labels = [];
$next_resul... | php | MIT | 72b40d5267698d6e99ecbdc3ece8d4ddcdb690bc | 2026-01-05T04:12:04.302111Z | false |
glhd/conveyor-belt | https://github.com/glhd/conveyor-belt/blob/72b40d5267698d6e99ecbdc3ece8d4ddcdb690bc/tests/Concerns/ArtificiallyFails.php | tests/Concerns/ArtificiallyFails.php | <?php
namespace Glhd\ConveyorBelt\Tests\Concerns;
use RuntimeException;
trait ArtificiallyFails
{
protected int $iteration_count_for_exception_trigger = 0;
/** @before */
public function resetArtificiallyFailsCounter()
{
$this->iteration_count_for_exception_trigger = 0;
}
protected function triggerExcept... | php | MIT | 72b40d5267698d6e99ecbdc3ece8d4ddcdb690bc | 2026-01-05T04:12:04.302111Z | false |
glhd/conveyor-belt | https://github.com/glhd/conveyor-belt/blob/72b40d5267698d6e99ecbdc3ece8d4ddcdb690bc/tests/Concerns/RegistersTestCallbacks.php | tests/Concerns/RegistersTestCallbacks.php | <?php
namespace Glhd\ConveyorBelt\Tests\Concerns;
use Closure;
trait RegistersTestCallbacks
{
protected array $test_callback_order = [];
/** @before */
public function registerDefaultTestCallbacks()
{
$this->afterApplicationCreated(function() {
$this->registerHandleRowCallback(static fn() => null);
$th... | php | MIT | 72b40d5267698d6e99ecbdc3ece8d4ddcdb690bc | 2026-01-05T04:12:04.302111Z | false |
glhd/conveyor-belt | https://github.com/glhd/conveyor-belt/blob/72b40d5267698d6e99ecbdc3ece8d4ddcdb690bc/tests/Concerns/CallsTestCommands.php | tests/Concerns/CallsTestCommands.php | <?php
namespace Glhd\ConveyorBelt\Tests\Concerns;
use Glhd\ConveyorBelt\Tests\PendingConveyorBeltCommand;
trait CallsTestCommands
{
protected function callTestCommand(string $command, array $parameters = []): PendingConveyorBeltCommand
{
return new PendingConveyorBeltCommand($this, $this->app, $command, $paramet... | php | MIT | 72b40d5267698d6e99ecbdc3ece8d4ddcdb690bc | 2026-01-05T04:12:04.302111Z | false |
glhd/conveyor-belt | https://github.com/glhd/conveyor-belt/blob/72b40d5267698d6e99ecbdc3ece8d4ddcdb690bc/tests/Models/User.php | tests/Models/User.php | <?php
namespace Glhd\ConveyorBelt\Tests\Models;
use Illuminate\Database\Eloquent\Factories\Factory;
use Illuminate\Database\Eloquent\Factories\HasFactory;
use Illuminate\Database\Eloquent\Model;
class User extends Model
{
use HasFactory;
protected $guarded = [];
protected static function newFactory()
{
ret... | php | MIT | 72b40d5267698d6e99ecbdc3ece8d4ddcdb690bc | 2026-01-05T04:12:04.302111Z | false |
glhd/conveyor-belt | https://github.com/glhd/conveyor-belt/blob/72b40d5267698d6e99ecbdc3ece8d4ddcdb690bc/tests/Models/Company.php | tests/Models/Company.php | <?php
namespace Glhd\ConveyorBelt\Tests\Models;
use Illuminate\Database\Eloquent\Factories\Factory;
use Illuminate\Database\Eloquent\Factories\HasFactory;
use Illuminate\Database\Eloquent\Model;
class Company extends Model
{
use HasFactory;
protected $guarded = [];
protected static function newFactory()
{
... | php | MIT | 72b40d5267698d6e99ecbdc3ece8d4ddcdb690bc | 2026-01-05T04:12:04.302111Z | false |
glhd/conveyor-belt | https://github.com/glhd/conveyor-belt/blob/72b40d5267698d6e99ecbdc3ece8d4ddcdb690bc/tests/Commands/TestQueryCommand.php | tests/Commands/TestQueryCommand.php | <?php
namespace Glhd\ConveyorBelt\Tests\Commands;
use Glhd\ConveyorBelt\IteratesQuery;
use Glhd\ConveyorBelt\Tests\Models\User;
class TestQueryCommand extends TestCommand
{
use IteratesQuery;
public $collect_exceptions = true;
public $use_transaction = false;
protected $signature = 'test:query {case} {--th... | php | MIT | 72b40d5267698d6e99ecbdc3ece8d4ddcdb690bc | 2026-01-05T04:12:04.302111Z | false |
glhd/conveyor-belt | https://github.com/glhd/conveyor-belt/blob/72b40d5267698d6e99ecbdc3ece8d4ddcdb690bc/tests/Commands/TestCommand.php | tests/Commands/TestCommand.php | <?php
namespace Glhd\ConveyorBelt\Tests\Commands;
use Glhd\ConveyorBelt\Tests\Commands\Concerns\CallsTestCallbacks;
use Illuminate\Console\Command;
abstract class TestCommand extends Command
{
use CallsTestCallbacks;
}
| php | MIT | 72b40d5267698d6e99ecbdc3ece8d4ddcdb690bc | 2026-01-05T04:12:04.302111Z | false |
glhd/conveyor-belt | https://github.com/glhd/conveyor-belt/blob/72b40d5267698d6e99ecbdc3ece8d4ddcdb690bc/tests/Commands/TestSpreadsheetCommand.php | tests/Commands/TestSpreadsheetCommand.php | <?php
namespace Glhd\ConveyorBelt\Tests\Commands;
use Glhd\ConveyorBelt\IteratesSpreadsheet;
class TestSpreadsheetCommand extends TestCommand
{
use IteratesSpreadsheet;
public $collect_exceptions = true;
protected $signature = 'test:spreadsheet {filename} {--throw}';
public function beforeFirstRow(): void
... | php | MIT | 72b40d5267698d6e99ecbdc3ece8d4ddcdb690bc | 2026-01-05T04:12:04.302111Z | false |
glhd/conveyor-belt | https://github.com/glhd/conveyor-belt/blob/72b40d5267698d6e99ecbdc3ece8d4ddcdb690bc/tests/Commands/TestEnumerableCommand.php | tests/Commands/TestEnumerableCommand.php | <?php
namespace Glhd\ConveyorBelt\Tests\Commands;
use Glhd\ConveyorBelt\IteratesEnumerable;
use Illuminate\Support\Enumerable;
use Illuminate\Support\LazyCollection;
class TestEnumerableCommand extends TestCommand
{
use IteratesEnumerable;
protected $signature = 'test:enumerable {data} {--throw}';
public func... | php | MIT | 72b40d5267698d6e99ecbdc3ece8d4ddcdb690bc | 2026-01-05T04:12:04.302111Z | false |
glhd/conveyor-belt | https://github.com/glhd/conveyor-belt/blob/72b40d5267698d6e99ecbdc3ece8d4ddcdb690bc/tests/Commands/TestJsonFileCommand.php | tests/Commands/TestJsonFileCommand.php | <?php
namespace Glhd\ConveyorBelt\Tests\Commands;
use Glhd\ConveyorBelt\IteratesJson;
class TestJsonFileCommand extends TestCommand
{
use IteratesJson;
public $collect_exceptions = true;
public $json_pointer = null;
protected $signature = 'test:json-file {filename} {--throw} {--pointer=}';
public functi... | php | MIT | 72b40d5267698d6e99ecbdc3ece8d4ddcdb690bc | 2026-01-05T04:12:04.302111Z | false |
glhd/conveyor-belt | https://github.com/glhd/conveyor-belt/blob/72b40d5267698d6e99ecbdc3ece8d4ddcdb690bc/tests/Commands/TestIdQueryCommand.php | tests/Commands/TestIdQueryCommand.php | <?php
namespace Glhd\ConveyorBelt\Tests\Commands;
use Glhd\ConveyorBelt\IteratesIdQuery;
use Glhd\ConveyorBelt\Tests\Models\User;
class TestIdQueryCommand extends TestCommand
{
use IteratesIdQuery;
public $collect_exceptions = true;
public $use_transaction = false;
protected $signature = 'test:id-query {ca... | php | MIT | 72b40d5267698d6e99ecbdc3ece8d4ddcdb690bc | 2026-01-05T04:12:04.302111Z | false |
glhd/conveyor-belt | https://github.com/glhd/conveyor-belt/blob/72b40d5267698d6e99ecbdc3ece8d4ddcdb690bc/tests/Commands/TestJsonEndpointCommand.php | tests/Commands/TestJsonEndpointCommand.php | <?php
namespace Glhd\ConveyorBelt\Tests\Commands;
use Glhd\ConveyorBelt\IteratesJson;
class TestJsonEndpointCommand extends TestCommand
{
use IteratesJson;
public $json_pointer = '/data/equipment';
public $json_endpoint = 'https://botw-compendium.herokuapp.com/api/v2/all';
protected $signature = 'test:json... | php | MIT | 72b40d5267698d6e99ecbdc3ece8d4ddcdb690bc | 2026-01-05T04:12:04.302111Z | false |
glhd/conveyor-belt | https://github.com/glhd/conveyor-belt/blob/72b40d5267698d6e99ecbdc3ece8d4ddcdb690bc/tests/Commands/Concerns/CallsTestCallbacks.php | tests/Commands/Concerns/CallsTestCallbacks.php | <?php
namespace Glhd\ConveyorBelt\Tests\Commands\Concerns;
trait CallsTestCallbacks
{
public function filterRow($item)
{
return $this->callTestCallback($item);
}
public function rejectRow($item)
{
return $this->callTestCallback($item);
}
public function handleRow($item)
{
$this->callTestCallback($it... | php | MIT | 72b40d5267698d6e99ecbdc3ece8d4ddcdb690bc | 2026-01-05T04:12:04.302111Z | false |
glhd/conveyor-belt | https://github.com/glhd/conveyor-belt/blob/72b40d5267698d6e99ecbdc3ece8d4ddcdb690bc/tests/database/migrations/2022_01_18_131057_create_test_tables.php | tests/database/migrations/2022_01_18_131057_create_test_tables.php | <?php
use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;
class CreateTestTables extends Migration
{
public function up()
{
Schema::create('users', function(Blueprint $table) {
$table->bigIncrements('id');
$table->string('name');
... | php | MIT | 72b40d5267698d6e99ecbdc3ece8d4ddcdb690bc | 2026-01-05T04:12:04.302111Z | false |
glhd/conveyor-belt | https://github.com/glhd/conveyor-belt/blob/72b40d5267698d6e99ecbdc3ece8d4ddcdb690bc/translations/en/messages.php | translations/en/messages.php | <?php
return [
'querying' => 'Querying :records…',
'querying_without_transaction' => 'Querying :records (no database transaction)…',
'querying_with_transaction' => 'Querying :records (using a database transaction)…',
'processing_records' => 'Processing <info>:count</info> :record|Processing <info>:count</info> :... | php | MIT | 72b40d5267698d6e99ecbdc3ece8d4ddcdb690bc | 2026-01-05T04:12:04.302111Z | false |
Torann/json-ld | https://github.com/Torann/json-ld/blob/3a1eee5117bdefb6a45dad11faa4ee1a7f917b62/src/Context.php | src/Context.php | <?php
namespace JsonLd;
use InvalidArgumentException;
use JsonLd\Contracts\ContextTypeInterface;
class Context
{
/**
* Context type
*
* @var ContextTypeInterface
*/
protected $context = null;
/**
* Create a new Context instance
*
* @param string $context
* @param ... | php | BSD-2-Clause | 3a1eee5117bdefb6a45dad11faa4ee1a7f917b62 | 2026-01-05T04:12:24.107469Z | false |
Torann/json-ld | https://github.com/Torann/json-ld/blob/3a1eee5117bdefb6a45dad11faa4ee1a7f917b62/src/ContextTypes/Order.php | src/ContextTypes/Order.php | <?php
namespace JsonLd\ContextTypes;
class Order extends AbstractContext
{
/**
* Property structure
*
* @var array
*/
protected $structure = [
'merchant' => Organization::class,
'orderNumber' => null,
'orderStatus' => null,
'priceCurrency' => null,
'... | php | BSD-2-Clause | 3a1eee5117bdefb6a45dad11faa4ee1a7f917b62 | 2026-01-05T04:12:24.107469Z | false |
Torann/json-ld | https://github.com/Torann/json-ld/blob/3a1eee5117bdefb6a45dad11faa4ee1a7f917b62/src/ContextTypes/MediaObject.php | src/ContextTypes/MediaObject.php | <?php
namespace JsonLd\ContextTypes;
use DateTime;
/**
* A media object, such as an image, video, or audio object embedded in a web
* page or a downloadable dataset i.e. DataDownload. Note that a creative work
* may have many media objects associated with it on the same web page.
* For example, a page about a si... | php | BSD-2-Clause | 3a1eee5117bdefb6a45dad11faa4ee1a7f917b62 | 2026-01-05T04:12:24.107469Z | false |
Torann/json-ld | https://github.com/Torann/json-ld/blob/3a1eee5117bdefb6a45dad11faa4ee1a7f917b62/src/ContextTypes/Corporation.php | src/ContextTypes/Corporation.php | <?php
namespace JsonLd\ContextTypes;
class Corporation extends Organization
{
/**
* Property structure
*
* @var array
*/
private $extendedStructure = [
'tickerSymbol' => null,
];
/**
* Corporation constructor. Merges extendedStructure up
*
* @param array $at... | php | BSD-2-Clause | 3a1eee5117bdefb6a45dad11faa4ee1a7f917b62 | 2026-01-05T04:12:24.107469Z | false |
Torann/json-ld | https://github.com/Torann/json-ld/blob/3a1eee5117bdefb6a45dad11faa4ee1a7f917b62/src/ContextTypes/MusicRecording.php | src/ContextTypes/MusicRecording.php | <?php
namespace JsonLd\ContextTypes;
class MusicRecording extends MusicAbstractContext
{
/**
* Property structure
*
* @var array
*/
protected $structure = [
'@id' => null,
'url' => null,
'name' => null,
'duration' => null,
'genre' => null,
'd... | php | BSD-2-Clause | 3a1eee5117bdefb6a45dad11faa4ee1a7f917b62 | 2026-01-05T04:12:24.107469Z | false |
Torann/json-ld | https://github.com/Torann/json-ld/blob/3a1eee5117bdefb6a45dad11faa4ee1a7f917b62/src/ContextTypes/AbstractContext.php | src/ContextTypes/AbstractContext.php | <?php
namespace JsonLd\ContextTypes;
use DateTime;
use JsonLd\Context;
use JsonLd\Contracts\ContextTypeInterface;
abstract class AbstractContext implements ContextTypeInterface
{
/**
* Context type
*
* @var string
*/
public $type;
/**
* Context properties
*
* @var arra... | php | BSD-2-Clause | 3a1eee5117bdefb6a45dad11faa4ee1a7f917b62 | 2026-01-05T04:12:24.107469Z | false |
Torann/json-ld | https://github.com/Torann/json-ld/blob/3a1eee5117bdefb6a45dad11faa4ee1a7f917b62/src/ContextTypes/BreadcrumbList.php | src/ContextTypes/BreadcrumbList.php | <?php
namespace JsonLd\ContextTypes;
class BreadcrumbList extends AbstractContext
{
/**
* Property structure
*
* @var array
*/
protected $structure = [
'itemListElement' => null,
];
/**
* Set the canonical URL of the article page.
*
* @param array $items
... | php | BSD-2-Clause | 3a1eee5117bdefb6a45dad11faa4ee1a7f917b62 | 2026-01-05T04:12:24.107469Z | false |
Torann/json-ld | https://github.com/Torann/json-ld/blob/3a1eee5117bdefb6a45dad11faa4ee1a7f917b62/src/ContextTypes/Beach.php | src/ContextTypes/Beach.php | <?php
namespace JsonLd\ContextTypes;
class Beach extends AbstractContext
{
/**
* Property structure
*
* @var array
*/
protected $structure = [
'name' => null,
'openingHours' => null,
'description' => null,
'image' => null,
'url' => null,
'add... | php | BSD-2-Clause | 3a1eee5117bdefb6a45dad11faa4ee1a7f917b62 | 2026-01-05T04:12:24.107469Z | false |
Torann/json-ld | https://github.com/Torann/json-ld/blob/3a1eee5117bdefb6a45dad11faa4ee1a7f917b62/src/ContextTypes/PriceSpecification.php | src/ContextTypes/PriceSpecification.php | <?php
namespace JsonLd\ContextTypes;
class PriceSpecification extends AbstractContext
{
/**
* Property structure
*
* @var array
*/
protected $structure = [
'price' => null,
'priceCurrency' => null,
];
}
| php | BSD-2-Clause | 3a1eee5117bdefb6a45dad11faa4ee1a7f917b62 | 2026-01-05T04:12:24.107469Z | false |
Torann/json-ld | https://github.com/Torann/json-ld/blob/3a1eee5117bdefb6a45dad11faa4ee1a7f917b62/src/ContextTypes/MusicPlaylist.php | src/ContextTypes/MusicPlaylist.php | <?php
namespace JsonLd\ContextTypes;
class MusicPlaylist extends MusicAbstractContext
{
/**
* Property structure
*
* @var array
*/
protected $structure = [
'@id' => null,
'url' => null,
'name' => null,
'numTracks' => null,
'track' => null,
];
}
| php | BSD-2-Clause | 3a1eee5117bdefb6a45dad11faa4ee1a7f917b62 | 2026-01-05T04:12:24.107469Z | false |
Torann/json-ld | https://github.com/Torann/json-ld/blob/3a1eee5117bdefb6a45dad11faa4ee1a7f917b62/src/ContextTypes/Sculpture.php | src/ContextTypes/Sculpture.php | <?php
namespace JsonLd\ContextTypes;
class Sculpture extends CreativeWork
{
/**
* Property structure.
*
* @var array
*/
private $extendedStructure = [];
/**
* Constructor. Merges extendedStructure up
*
* @param array $attributes
* @param array $extendedStructure
... | php | BSD-2-Clause | 3a1eee5117bdefb6a45dad11faa4ee1a7f917b62 | 2026-01-05T04:12:24.107469Z | false |
Torann/json-ld | https://github.com/Torann/json-ld/blob/3a1eee5117bdefb6a45dad11faa4ee1a7f917b62/src/ContextTypes/Organization.php | src/ContextTypes/Organization.php | <?php
namespace JsonLd\ContextTypes;
class Organization extends Thing
{
/**
* Property structure
*
* @var array
*/
private $extendedStructure = [
'address' => PostalAddress::class,
'logo' => ImageObject::class,
'contactPoint' => ContactPoint::class,
'email' ... | php | BSD-2-Clause | 3a1eee5117bdefb6a45dad11faa4ee1a7f917b62 | 2026-01-05T04:12:24.107469Z | false |
Torann/json-ld | https://github.com/Torann/json-ld/blob/3a1eee5117bdefb6a45dad11faa4ee1a7f917b62/src/ContextTypes/Product.php | src/ContextTypes/Product.php | <?php
namespace JsonLd\ContextTypes;
class Product extends AbstractContext
{
/**
* Property structure
*
* @var array
*/
protected $structure = [
'name' => null,
'description' => null,
'brand' => null,
'image' => null,
'sku' => null,
'productI... | php | BSD-2-Clause | 3a1eee5117bdefb6a45dad11faa4ee1a7f917b62 | 2026-01-05T04:12:24.107469Z | false |
Torann/json-ld | https://github.com/Torann/json-ld/blob/3a1eee5117bdefb6a45dad11faa4ee1a7f917b62/src/ContextTypes/Article.php | src/ContextTypes/Article.php | <?php
namespace JsonLd\ContextTypes;
/**
* https://schema.org/Article
*/
class Article extends CreativeWork
{
/**
* Property structure
*
* @var array
*/
private $extendedStructure = [
'articleBody' => null,
'articleSection' => null,
'pageEnd' => null,
'pag... | php | BSD-2-Clause | 3a1eee5117bdefb6a45dad11faa4ee1a7f917b62 | 2026-01-05T04:12:24.107469Z | false |
Torann/json-ld | https://github.com/Torann/json-ld/blob/3a1eee5117bdefb6a45dad11faa4ee1a7f917b62/src/ContextTypes/PostalAddress.php | src/ContextTypes/PostalAddress.php | <?php
namespace JsonLd\ContextTypes;
class PostalAddress extends AbstractContext
{
/**
* Property structure
*
* @var array
*/
protected $structure = [
'streetAddress' => '',
'addressLocality' => '',
'addressRegion' => '',
'addressCountry' => '',
'pos... | php | BSD-2-Clause | 3a1eee5117bdefb6a45dad11faa4ee1a7f917b62 | 2026-01-05T04:12:24.107469Z | false |
Torann/json-ld | https://github.com/Torann/json-ld/blob/3a1eee5117bdefb6a45dad11faa4ee1a7f917b62/src/ContextTypes/AggregateRating.php | src/ContextTypes/AggregateRating.php | <?php
namespace JsonLd\ContextTypes;
class AggregateRating extends AbstractContext
{
/**
* Property structure
*
* @var array
*/
protected $structure = [
'reviewCount' => null,
'ratingValue' => null,
'bestRating' => null,
'worstRating' => null,
'ratin... | php | BSD-2-Clause | 3a1eee5117bdefb6a45dad11faa4ee1a7f917b62 | 2026-01-05T04:12:24.107469Z | false |
Torann/json-ld | https://github.com/Torann/json-ld/blob/3a1eee5117bdefb6a45dad11faa4ee1a7f917b62/src/ContextTypes/Invoice.php | src/ContextTypes/Invoice.php | <?php
namespace JsonLd\ContextTypes;
class Invoice extends AbstractContext
{
/**
* Property structure
*
* @var array
*/
protected $structure = [
'totalPaymentDue' => PriceSpecification::class,
'provider' => Organization::class,
'paymentDueDate' => null,
'pay... | php | BSD-2-Clause | 3a1eee5117bdefb6a45dad11faa4ee1a7f917b62 | 2026-01-05T04:12:24.107469Z | false |
Torann/json-ld | https://github.com/Torann/json-ld/blob/3a1eee5117bdefb6a45dad11faa4ee1a7f917b62/src/ContextTypes/BlogPosting.php | src/ContextTypes/BlogPosting.php | <?php
namespace JsonLd\ContextTypes;
class BlogPosting extends Article
{
/**
* Property structure
*
* @var array
*/
protected $extendStructure = [
'sharedContent' => CreativeWork::class,
];
} | php | BSD-2-Clause | 3a1eee5117bdefb6a45dad11faa4ee1a7f917b62 | 2026-01-05T04:12:24.107469Z | false |
Torann/json-ld | https://github.com/Torann/json-ld/blob/3a1eee5117bdefb6a45dad11faa4ee1a7f917b62/src/ContextTypes/WebSite.php | src/ContextTypes/WebSite.php | <?php
namespace JsonLd\ContextTypes;
class WebSite extends AbstractContext
{
/**
* Property structure
*
* @var array
*/
protected $structure = [
'about' => null,
'headline' => null,
'image' => null,
'name' => null,
'url' => null,
'publisher' ... | php | BSD-2-Clause | 3a1eee5117bdefb6a45dad11faa4ee1a7f917b62 | 2026-01-05T04:12:24.107469Z | false |
Torann/json-ld | https://github.com/Torann/json-ld/blob/3a1eee5117bdefb6a45dad11faa4ee1a7f917b62/src/ContextTypes/CreativeWork.php | src/ContextTypes/CreativeWork.php | <?php
namespace JsonLd\ContextTypes;
/**
* https://schema.org/CreativeWork
*/
class CreativeWork extends Thing
{
/**
* Property structure
*
* @var array
*/
private $extendedStructure = [
'about' => Thing::class,
'aggregateRating' => AggregateRating::class,
'altern... | php | BSD-2-Clause | 3a1eee5117bdefb6a45dad11faa4ee1a7f917b62 | 2026-01-05T04:12:24.107469Z | false |
Torann/json-ld | https://github.com/Torann/json-ld/blob/3a1eee5117bdefb6a45dad11faa4ee1a7f917b62/src/ContextTypes/MusicGroup.php | src/ContextTypes/MusicGroup.php | <?php
namespace JsonLd\ContextTypes;
class MusicGroup extends MusicAbstractContext
{
/**
* Property structure
*
* @var array
*/
protected $structure = [
'@id' => null,
'url' => null,
'name' => null,
'description' => null,
'track' => null,
'im... | php | BSD-2-Clause | 3a1eee5117bdefb6a45dad11faa4ee1a7f917b62 | 2026-01-05T04:12:24.107469Z | false |
Torann/json-ld | https://github.com/Torann/json-ld/blob/3a1eee5117bdefb6a45dad11faa4ee1a7f917b62/src/ContextTypes/BookFormatType.php | src/ContextTypes/BookFormatType.php | <?php
namespace JsonLd\ContextTypes;
/**
* The publication format of the book.
*
* https://schema.org/BookFormatType
*/
class BookFormatType extends Enumeration
{
/**
* Book format: Audiobook. This is an enumerated value for use with the
* bookFormat property. There is also a type 'Audiobook' in the... | php | BSD-2-Clause | 3a1eee5117bdefb6a45dad11faa4ee1a7f917b62 | 2026-01-05T04:12:24.107469Z | false |
Torann/json-ld | https://github.com/Torann/json-ld/blob/3a1eee5117bdefb6a45dad11faa4ee1a7f917b62/src/ContextTypes/Review.php | src/ContextTypes/Review.php | <?php
namespace JsonLd\ContextTypes;
class Review extends AbstractContext
{
/**
* Property structure
*
* @var array
*/
protected $structure = [
'itemReviewed' => Thing::class,
'reviewRating' => Rating::class,
'aggregateRating' => AggregateRating::class,
'nam... | php | BSD-2-Clause | 3a1eee5117bdefb6a45dad11faa4ee1a7f917b62 | 2026-01-05T04:12:24.107469Z | false |
Torann/json-ld | https://github.com/Torann/json-ld/blob/3a1eee5117bdefb6a45dad11faa4ee1a7f917b62/src/ContextTypes/GeoCoordinates.php | src/ContextTypes/GeoCoordinates.php | <?php
namespace JsonLd\ContextTypes;
class GeoCoordinates extends AbstractContext
{
/**
* Property structure
*
* @var array
*/
protected $structure = [
'latitude' => '',
'longitude' => '',
];
} | php | BSD-2-Clause | 3a1eee5117bdefb6a45dad11faa4ee1a7f917b62 | 2026-01-05T04:12:24.107469Z | false |
Torann/json-ld | https://github.com/Torann/json-ld/blob/3a1eee5117bdefb6a45dad11faa4ee1a7f917b62/src/ContextTypes/NewsArticle.php | src/ContextTypes/NewsArticle.php | <?php
namespace JsonLd\ContextTypes;
class NewsArticle extends AbstractContext
{
/**
* Property structure
*
* @var array
*/
protected $structure = [
'headline' => null,
'description' => null,
'url' => null,
'mainEntityOfPage' => WebPage::class,
'imag... | php | BSD-2-Clause | 3a1eee5117bdefb6a45dad11faa4ee1a7f917b62 | 2026-01-05T04:12:24.107469Z | false |
Torann/json-ld | https://github.com/Torann/json-ld/blob/3a1eee5117bdefb6a45dad11faa4ee1a7f917b62/src/ContextTypes/Audiobook.php | src/ContextTypes/Audiobook.php | <?php
namespace JsonLd\ContextTypes;
/**
* https://schema.org/BookFormatType
*/
class Audiobook extends Book
{
/**
* Property structure
*
* @var array
*/
protected $extendedStructure = [
'caption' => MediaObject::class,
'transcript' => null,
'duration' => Duration... | php | BSD-2-Clause | 3a1eee5117bdefb6a45dad11faa4ee1a7f917b62 | 2026-01-05T04:12:24.107469Z | false |
Torann/json-ld | https://github.com/Torann/json-ld/blob/3a1eee5117bdefb6a45dad11faa4ee1a7f917b62/src/ContextTypes/Comment.php | src/ContextTypes/Comment.php | <?php
namespace JsonLd\ContextTypes;
/**
* https://schema.org/Comment
*/
class Comment extends CreativeWork
{
/**
* Property structure
*
* @var array
*/
private $extendedStructure = [
'downvoteCount' => null,
'upvoteCount' => null,
];
/**
* Constructor. Merg... | php | BSD-2-Clause | 3a1eee5117bdefb6a45dad11faa4ee1a7f917b62 | 2026-01-05T04:12:24.107469Z | false |
Torann/json-ld | https://github.com/Torann/json-ld/blob/3a1eee5117bdefb6a45dad11faa4ee1a7f917b62/src/ContextTypes/Duration.php | src/ContextTypes/Duration.php | <?php
namespace JsonLd\ContextTypes;
class Duration extends AbstractContext
{
/**
* Property structure
*
* @var array
*/
protected $structure = [
'additionalType' => null,
'name' => null,
'image' => null,
];
} | php | BSD-2-Clause | 3a1eee5117bdefb6a45dad11faa4ee1a7f917b62 | 2026-01-05T04:12:24.107469Z | false |
Torann/json-ld | https://github.com/Torann/json-ld/blob/3a1eee5117bdefb6a45dad11faa4ee1a7f917b62/src/ContextTypes/VideoObject.php | src/ContextTypes/VideoObject.php | <?php
namespace JsonLd\ContextTypes;
class VideoObject extends AbstractContext
{
/**
* Property structure
*
* @var array
*/
protected $structure = [
'actor' => Person::class,
'director' => Person::class,
'associatedArticle' => NewsArticle::class,
'bitrate' =... | php | BSD-2-Clause | 3a1eee5117bdefb6a45dad11faa4ee1a7f917b62 | 2026-01-05T04:12:24.107469Z | false |
Torann/json-ld | https://github.com/Torann/json-ld/blob/3a1eee5117bdefb6a45dad11faa4ee1a7f917b62/src/ContextTypes/Offer.php | src/ContextTypes/Offer.php | <?php
namespace JsonLd\ContextTypes;
class Offer extends AbstractContext
{
/**
* Property structure
*
* @var array
*/
protected $structure = [
'itemOffered' => Product::class,
'price' => null,
'priceCurrency' => null,
'priceValidUntil' => null,
'url'... | php | BSD-2-Clause | 3a1eee5117bdefb6a45dad11faa4ee1a7f917b62 | 2026-01-05T04:12:24.107469Z | false |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.