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 |
|---|---|---|---|---|---|---|---|---|
schmittjoh/JMSPaymentCoreBundle | https://github.com/schmittjoh/JMSPaymentCoreBundle/blob/c9052c9720203ce92584e0e57096532005cfbe1a/PluginController/Event/PaymentStateChangeEvent.php | PluginController/Event/PaymentStateChangeEvent.php | <?php
namespace JMS\Payment\CoreBundle\PluginController\Event;
use JMS\Payment\CoreBundle\Model\PaymentInterface;
use Symfony\Component\EventDispatcher\Event;
class PaymentStateChangeEvent extends Event
{
private $payment;
private $oldState;
public function __construct(PaymentInterface $payment, $oldSta... | php | Apache-2.0 | c9052c9720203ce92584e0e57096532005cfbe1a | 2026-01-05T02:32:31.950987Z | false |
schmittjoh/JMSPaymentCoreBundle | https://github.com/schmittjoh/JMSPaymentCoreBundle/blob/c9052c9720203ce92584e0e57096532005cfbe1a/PluginController/Exception/PaymentNotFoundException.php | PluginController/Exception/PaymentNotFoundException.php | <?php
namespace JMS\Payment\CoreBundle\PluginController\Exception;
/*
* Copyright 2010 Johannes M. Schmitt <schmittjoh@gmail.com>
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* ... | php | Apache-2.0 | c9052c9720203ce92584e0e57096532005cfbe1a | 2026-01-05T02:32:31.950987Z | false |
schmittjoh/JMSPaymentCoreBundle | https://github.com/schmittjoh/JMSPaymentCoreBundle/blob/c9052c9720203ce92584e0e57096532005cfbe1a/PluginController/Exception/CreditNotFoundException.php | PluginController/Exception/CreditNotFoundException.php | <?php
namespace JMS\Payment\CoreBundle\PluginController\Exception;
/*
* Copyright 2010 Johannes M. Schmitt <schmittjoh@gmail.com>
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* ... | php | Apache-2.0 | c9052c9720203ce92584e0e57096532005cfbe1a | 2026-01-05T02:32:31.950987Z | false |
schmittjoh/JMSPaymentCoreBundle | https://github.com/schmittjoh/JMSPaymentCoreBundle/blob/c9052c9720203ce92584e0e57096532005cfbe1a/PluginController/Exception/PaymentInstructionNotFoundException.php | PluginController/Exception/PaymentInstructionNotFoundException.php | <?php
namespace JMS\Payment\CoreBundle\PluginController\Exception;
/*
* Copyright 2010 Johannes M. Schmitt <schmittjoh@gmail.com>
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* ... | php | Apache-2.0 | c9052c9720203ce92584e0e57096532005cfbe1a | 2026-01-05T02:32:31.950987Z | false |
schmittjoh/JMSPaymentCoreBundle | https://github.com/schmittjoh/JMSPaymentCoreBundle/blob/c9052c9720203ce92584e0e57096532005cfbe1a/PluginController/Exception/Exception.php | PluginController/Exception/Exception.php | <?php
namespace JMS\Payment\CoreBundle\PluginController\Exception;
use JMS\Payment\CoreBundle\Exception\Exception as PaymentBundleException;
/*
* Copyright 2010 Johannes M. Schmitt <schmittjoh@gmail.com>
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in com... | php | Apache-2.0 | c9052c9720203ce92584e0e57096532005cfbe1a | 2026-01-05T02:32:31.950987Z | false |
schmittjoh/JMSPaymentCoreBundle | https://github.com/schmittjoh/JMSPaymentCoreBundle/blob/c9052c9720203ce92584e0e57096532005cfbe1a/PluginController/Exception/InvalidPaymentException.php | PluginController/Exception/InvalidPaymentException.php | <?php
namespace JMS\Payment\CoreBundle\PluginController\Exception;
/*
* Copyright 2010 Johannes M. Schmitt <schmittjoh@gmail.com>
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* ... | php | Apache-2.0 | c9052c9720203ce92584e0e57096532005cfbe1a | 2026-01-05T02:32:31.950987Z | false |
schmittjoh/JMSPaymentCoreBundle | https://github.com/schmittjoh/JMSPaymentCoreBundle/blob/c9052c9720203ce92584e0e57096532005cfbe1a/PluginController/Exception/InvalidCreditException.php | PluginController/Exception/InvalidCreditException.php | <?php
namespace JMS\Payment\CoreBundle\PluginController\Exception;
/*
* Copyright 2010 Johannes M. Schmitt <schmittjoh@gmail.com>
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* ... | php | Apache-2.0 | c9052c9720203ce92584e0e57096532005cfbe1a | 2026-01-05T02:32:31.950987Z | false |
schmittjoh/JMSPaymentCoreBundle | https://github.com/schmittjoh/JMSPaymentCoreBundle/blob/c9052c9720203ce92584e0e57096532005cfbe1a/PluginController/Exception/PluginNotFoundException.php | PluginController/Exception/PluginNotFoundException.php | <?php
namespace JMS\Payment\CoreBundle\PluginController\Exception;
/*
* Copyright 2010 Johannes M. Schmitt <schmittjoh@gmail.com>
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* ... | php | Apache-2.0 | c9052c9720203ce92584e0e57096532005cfbe1a | 2026-01-05T02:32:31.950987Z | false |
schmittjoh/JMSPaymentCoreBundle | https://github.com/schmittjoh/JMSPaymentCoreBundle/blob/c9052c9720203ce92584e0e57096532005cfbe1a/PluginController/Exception/InvalidPaymentInstructionException.php | PluginController/Exception/InvalidPaymentInstructionException.php | <?php
namespace JMS\Payment\CoreBundle\PluginController\Exception;
/*
* Copyright 2010 Johannes M. Schmitt <schmittjoh@gmail.com>
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* ... | php | Apache-2.0 | c9052c9720203ce92584e0e57096532005cfbe1a | 2026-01-05T02:32:31.950987Z | false |
schmittjoh/JMSPaymentCoreBundle | https://github.com/schmittjoh/JMSPaymentCoreBundle/blob/c9052c9720203ce92584e0e57096532005cfbe1a/Tests/bootstrap.php | Tests/bootstrap.php | <?php
use Doctrine\Common\Annotations\AnnotationRegistry;
// Composer
if (file_exists(__DIR__.'/../vendor/autoload.php')) {
$loader = require __DIR__.'/../vendor/autoload.php';
AnnotationRegistry::registerLoader(array($loader, 'loadClass'));
return $loader;
}
throw new \RuntimeException('Could not find... | php | Apache-2.0 | c9052c9720203ce92584e0e57096532005cfbe1a | 2026-01-05T02:32:31.950987Z | false |
schmittjoh/JMSPaymentCoreBundle | https://github.com/schmittjoh/JMSPaymentCoreBundle/blob/c9052c9720203ce92584e0e57096532005cfbe1a/Tests/Cryptography/DefusePhpEncryptionServiceTest.php | Tests/Cryptography/DefusePhpEncryptionServiceTest.php | <?php
namespace JMS\Payment\CoreBundle\Tests\Cryptography;
use JMS\Payment\CoreBundle\Cryptography\DefusePhpEncryptionService;
class DefusePhpEncryptionServiceTest extends \PHPUnit_Framework_TestCase
{
/**
* @dataProvider getTestData
*/
public function testEncryptDecrypt($data)
{
$servi... | php | Apache-2.0 | c9052c9720203ce92584e0e57096532005cfbe1a | 2026-01-05T02:32:31.950987Z | false |
schmittjoh/JMSPaymentCoreBundle | https://github.com/schmittjoh/JMSPaymentCoreBundle/blob/c9052c9720203ce92584e0e57096532005cfbe1a/Tests/Cryptography/MCryptEncryptionServiceTest.php | Tests/Cryptography/MCryptEncryptionServiceTest.php | <?php
namespace JMS\Payment\CoreBundle\Tests\Cryptography;
use JMS\Payment\CoreBundle\Cryptography\MCryptEncryptionService;
class MCryptEncryptionServiceTest extends \PHPUnit_Framework_TestCase
{
protected function setUp()
{
if (version_compare(phpversion(), '7.1', '>=')) {
$this->markTes... | php | Apache-2.0 | c9052c9720203ce92584e0e57096532005cfbe1a | 2026-01-05T02:32:31.950987Z | false |
schmittjoh/JMSPaymentCoreBundle | https://github.com/schmittjoh/JMSPaymentCoreBundle/blob/c9052c9720203ce92584e0e57096532005cfbe1a/Tests/Entity/PaymentTest.php | Tests/Entity/PaymentTest.php | <?php
namespace JMS\Payment\CoreBundle\Tests\Entity;
use JMS\Payment\CoreBundle\Entity\ExtendedData;
use JMS\Payment\CoreBundle\Entity\FinancialTransaction;
use JMS\Payment\CoreBundle\Entity\Payment;
use JMS\Payment\CoreBundle\Entity\PaymentInstruction;
class PaymentTest extends \PHPUnit_Framework_TestCase
{
pub... | php | Apache-2.0 | c9052c9720203ce92584e0e57096532005cfbe1a | 2026-01-05T02:32:31.950987Z | false |
schmittjoh/JMSPaymentCoreBundle | https://github.com/schmittjoh/JMSPaymentCoreBundle/blob/c9052c9720203ce92584e0e57096532005cfbe1a/Tests/Entity/PaymentInstructionTest.php | Tests/Entity/PaymentInstructionTest.php | <?php
namespace JMS\Payment\CoreBundle\Tests\Entity;
use JMS\Payment\CoreBundle\Entity\Credit;
use JMS\Payment\CoreBundle\Entity\ExtendedData;
use JMS\Payment\CoreBundle\Entity\FinancialTransaction;
use JMS\Payment\CoreBundle\Entity\Payment;
use JMS\Payment\CoreBundle\Entity\PaymentInstruction;
class PaymentInstruct... | php | Apache-2.0 | c9052c9720203ce92584e0e57096532005cfbe1a | 2026-01-05T02:32:31.950987Z | false |
schmittjoh/JMSPaymentCoreBundle | https://github.com/schmittjoh/JMSPaymentCoreBundle/blob/c9052c9720203ce92584e0e57096532005cfbe1a/Tests/Entity/ExtendedDataTest.php | Tests/Entity/ExtendedDataTest.php | <?php
namespace JMS\Payment\CoreBundle\Tests\Entity;
use JMS\Payment\CoreBundle\Entity\ExtendedData;
class ExtendedDataTest extends \PHPUnit_Framework_TestCase
{
public function testRemoveIgnoresIfKeyDoesNotExist()
{
$data = new ExtendedData();
$this->assertFalse($data->has('foo'));
... | php | Apache-2.0 | c9052c9720203ce92584e0e57096532005cfbe1a | 2026-01-05T02:32:31.950987Z | false |
schmittjoh/JMSPaymentCoreBundle | https://github.com/schmittjoh/JMSPaymentCoreBundle/blob/c9052c9720203ce92584e0e57096532005cfbe1a/Tests/Entity/FinancialTransactionTest.php | Tests/Entity/FinancialTransactionTest.php | <?php
namespace JMS\Payment\CoreBundle\Tests\Entity;
use JMS\Payment\CoreBundle\Entity\FinancialTransaction;
class FinancialTransactionTest extends \PHPUnit_Framework_TestCase
{
public function testConstructor()
{
$transaction = new FinancialTransaction();
$this->assertEquals(FinancialTransa... | php | Apache-2.0 | c9052c9720203ce92584e0e57096532005cfbe1a | 2026-01-05T02:32:31.950987Z | false |
schmittjoh/JMSPaymentCoreBundle | https://github.com/schmittjoh/JMSPaymentCoreBundle/blob/c9052c9720203ce92584e0e57096532005cfbe1a/Tests/Entity/CreditTest.php | Tests/Entity/CreditTest.php | <?php
namespace JMS\Payment\CoreBundle\Tests\Entity;
use JMS\Payment\CoreBundle\Entity\Credit;
use JMS\Payment\CoreBundle\Entity\ExtendedData;
use JMS\Payment\CoreBundle\Entity\FinancialTransaction;
use JMS\Payment\CoreBundle\Entity\Payment;
use JMS\Payment\CoreBundle\Entity\PaymentInstruction;
use JMS\Payment\CoreBu... | php | Apache-2.0 | c9052c9720203ce92584e0e57096532005cfbe1a | 2026-01-05T02:32:31.950987Z | false |
schmittjoh/JMSPaymentCoreBundle | https://github.com/schmittjoh/JMSPaymentCoreBundle/blob/c9052c9720203ce92584e0e57096532005cfbe1a/Tests/Entity/ExtendedDataTypeTest.php | Tests/Entity/ExtendedDataTypeTest.php | <?php
namespace JMS\Payment\CoreBundle\Tests\Entity;
use Doctrine\DBAL\Types\Type;
use JMS\Payment\CoreBundle\Cryptography\DefusePhpEncryptionService;
use JMS\Payment\CoreBundle\Entity\ExtendedData;
use JMS\Payment\CoreBundle\Entity\ExtendedDataType;
class ExtendedDataTypeTest extends \PHPUnit_Framework_TestCase
{
... | php | Apache-2.0 | c9052c9720203ce92584e0e57096532005cfbe1a | 2026-01-05T02:32:31.950987Z | false |
schmittjoh/JMSPaymentCoreBundle | https://github.com/schmittjoh/JMSPaymentCoreBundle/blob/c9052c9720203ce92584e0e57096532005cfbe1a/Tests/Form/ChoosePaymentMethodTypeTest.php | Tests/Form/ChoosePaymentMethodTypeTest.php | <?php
namespace JMS\Payment\CoreBundle\Tests\Form\ChoosePaymentMethodTypeTest;
use JMS\Payment\CoreBundle\Form\ChoosePaymentMethodType;
use JMS\Payment\CoreBundle\Tests\Functional\TestPlugin\Form\TestPluginType;
use JMS\Payment\CoreBundle\Util\Legacy;
use Symfony\Component\Form\PreloadedExtension;
use Symfony\Compone... | php | Apache-2.0 | c9052c9720203ce92584e0e57096532005cfbe1a | 2026-01-05T02:32:31.950987Z | false |
schmittjoh/JMSPaymentCoreBundle | https://github.com/schmittjoh/JMSPaymentCoreBundle/blob/c9052c9720203ce92584e0e57096532005cfbe1a/Tests/Form/Transformer/ChoosePaymentMethodTransformerTest.php | Tests/Form/Transformer/ChoosePaymentMethodTransformerTest.php | <?php
namespace JMS\Payment\CoreBundle\Tests\Form\Transformer;
use JMS\Payment\CoreBundle\Entity\ExtendedData;
use JMS\Payment\CoreBundle\Entity\PaymentInstruction;
use JMS\Payment\CoreBundle\Form\Transformer\ChoosePaymentMethodTransformer;
class ChoosePaymentMethodTransformerTest extends \PHPUnit_Framework_TestCase... | php | Apache-2.0 | c9052c9720203ce92584e0e57096532005cfbe1a | 2026-01-05T02:32:31.950987Z | false |
schmittjoh/JMSPaymentCoreBundle | https://github.com/schmittjoh/JMSPaymentCoreBundle/blob/c9052c9720203ce92584e0e57096532005cfbe1a/Tests/Functional/BasePaymentWorkflowTest.php | Tests/Functional/BasePaymentWorkflowTest.php | <?php
namespace JMS\Payment\CoreBundle\Tests\Functional;
use Doctrine\ORM\EntityManager;
use JMS\Payment\CoreBundle\Tests\Functional\TestBundle\Entity\Order;
use JMS\Payment\CoreBundle\Util\Number;
abstract class BasePaymentWorkflowTest extends BaseTestCase
{
protected function getRawExtendedData($paymentInstruc... | php | Apache-2.0 | c9052c9720203ce92584e0e57096532005cfbe1a | 2026-01-05T02:32:31.950987Z | false |
schmittjoh/JMSPaymentCoreBundle | https://github.com/schmittjoh/JMSPaymentCoreBundle/blob/c9052c9720203ce92584e0e57096532005cfbe1a/Tests/Functional/BasicEntityInteractionsTest.php | Tests/Functional/BasicEntityInteractionsTest.php | <?php
namespace JMS\Payment\CoreBundle\Tests\Functional;
use JMS\Payment\CoreBundle\Entity\PaymentInstruction;
class BasicEntityInteractionsTest extends BaseTestCase
{
/**
* @runInSeparateProcess
*/
public function testIndependentCredit()
{
$this->createClient();
$this->importDa... | php | Apache-2.0 | c9052c9720203ce92584e0e57096532005cfbe1a | 2026-01-05T02:32:31.950987Z | false |
schmittjoh/JMSPaymentCoreBundle | https://github.com/schmittjoh/JMSPaymentCoreBundle/blob/c9052c9720203ce92584e0e57096532005cfbe1a/Tests/Functional/PaymentWorkflowNoEncryptionTest.php | Tests/Functional/PaymentWorkflowNoEncryptionTest.php | <?php
namespace JMS\Payment\CoreBundle\Tests\Functional;
class PaymentWorkflowNoEncryptionTest extends BasePaymentWorkflowTest
{
protected static function createKernel(array $options = array())
{
return parent::createKernel(array('config' => 'config_no_encryption.yml'));
}
/**
* @runInSe... | php | Apache-2.0 | c9052c9720203ce92584e0e57096532005cfbe1a | 2026-01-05T02:32:31.950987Z | false |
schmittjoh/JMSPaymentCoreBundle | https://github.com/schmittjoh/JMSPaymentCoreBundle/blob/c9052c9720203ce92584e0e57096532005cfbe1a/Tests/Functional/BaseTestCase.php | Tests/Functional/BaseTestCase.php | <?php
namespace JMS\Payment\CoreBundle\Tests\Functional;
use Symfony\Bundle\FrameworkBundle\Test\WebTestCase;
use Symfony\Component\Filesystem\Filesystem;
class BaseTestCase extends WebTestCase
{
protected static function createKernel(array $options = array())
{
return self::$kernel = new AppKernel(
... | php | Apache-2.0 | c9052c9720203ce92584e0e57096532005cfbe1a | 2026-01-05T02:32:31.950987Z | false |
schmittjoh/JMSPaymentCoreBundle | https://github.com/schmittjoh/JMSPaymentCoreBundle/blob/c9052c9720203ce92584e0e57096532005cfbe1a/Tests/Functional/PaymentWorkflowMcryptTest.php | Tests/Functional/PaymentWorkflowMcryptTest.php | <?php
namespace JMS\Payment\CoreBundle\Tests\Functional;
class PaymentWorkflowMcryptTest extends PaymentWorkflowTest
{
protected static function createKernel(array $options = array())
{
return parent::createKernel(array('config' => 'config_mcrypt.yml'));
}
/**
* @runInSeparateProcess
... | php | Apache-2.0 | c9052c9720203ce92584e0e57096532005cfbe1a | 2026-01-05T02:32:31.950987Z | false |
schmittjoh/JMSPaymentCoreBundle | https://github.com/schmittjoh/JMSPaymentCoreBundle/blob/c9052c9720203ce92584e0e57096532005cfbe1a/Tests/Functional/PaymentWorkflowTest.php | Tests/Functional/PaymentWorkflowTest.php | <?php
namespace JMS\Payment\CoreBundle\Tests\Functional;
class PaymentWorkflowTest extends BasePaymentWorkflowTest
{
/**
* @runInSeparateProcess
*/
public function testPaymentDetails()
{
$order = parent::doTestPaymentDetails();
$extendedData = $this->getRawExtendedData($order->g... | php | Apache-2.0 | c9052c9720203ce92584e0e57096532005cfbe1a | 2026-01-05T02:32:31.950987Z | false |
schmittjoh/JMSPaymentCoreBundle | https://github.com/schmittjoh/JMSPaymentCoreBundle/blob/c9052c9720203ce92584e0e57096532005cfbe1a/Tests/Functional/AppKernel.php | Tests/Functional/AppKernel.php | <?php
namespace JMS\Payment\CoreBundle\Tests\Functional;
use JMS\Payment\CoreBundle\Tests\Functional\TestPlugin\TestPluginBundle;
use Symfony\Component\Config\Loader\LoaderInterface;
use Symfony\Component\Filesystem\Filesystem;
use Symfony\Component\HttpKernel\Kernel;
class AppKernel extends Kernel
{
private $co... | php | Apache-2.0 | c9052c9720203ce92584e0e57096532005cfbe1a | 2026-01-05T02:32:31.950987Z | false |
schmittjoh/JMSPaymentCoreBundle | https://github.com/schmittjoh/JMSPaymentCoreBundle/blob/c9052c9720203ce92584e0e57096532005cfbe1a/Tests/Functional/SchemaTest.php | Tests/Functional/SchemaTest.php | <?php
namespace JMS\Payment\CoreBundle\Tests\Functional;
use Doctrine\ORM\Tools\SchemaValidator;
use JMS\Payment\CoreBundle\Util\Legacy;
class SchemaTest extends BaseTestCase
{
/**
* @runInSeparateProcess
*/
public function testLegacySchemaIsValid()
{
if (!Legacy::supportsSecureRandom()... | php | Apache-2.0 | c9052c9720203ce92584e0e57096532005cfbe1a | 2026-01-05T02:32:31.950987Z | false |
schmittjoh/JMSPaymentCoreBundle | https://github.com/schmittjoh/JMSPaymentCoreBundle/blob/c9052c9720203ce92584e0e57096532005cfbe1a/Tests/Functional/TestBundle/TestBundle.php | Tests/Functional/TestBundle/TestBundle.php | <?php
namespace JMS\Payment\CoreBundle\Tests\Functional\TestBundle;
use Symfony\Component\HttpKernel\Bundle\Bundle;
class TestBundle extends Bundle
{
}
| php | Apache-2.0 | c9052c9720203ce92584e0e57096532005cfbe1a | 2026-01-05T02:32:31.950987Z | false |
schmittjoh/JMSPaymentCoreBundle | https://github.com/schmittjoh/JMSPaymentCoreBundle/blob/c9052c9720203ce92584e0e57096532005cfbe1a/Tests/Functional/TestBundle/Entity/Order.php | Tests/Functional/TestBundle/Entity/Order.php | <?php
namespace JMS\Payment\CoreBundle\Tests\Functional\TestBundle\Entity;
use Doctrine\ORM\Mapping as ORM;
use JMS\Payment\CoreBundle\Entity\PaymentInstruction;
/**
* @ORM\Entity
* @ORM\Table(name = "orders")
* @ORM\ChangeTrackingPolicy("DEFERRED_EXPLICIT")
*
* @author Johannes M. Schmitt <schmittjoh@gmail.com... | php | Apache-2.0 | c9052c9720203ce92584e0e57096532005cfbe1a | 2026-01-05T02:32:31.950987Z | false |
schmittjoh/JMSPaymentCoreBundle | https://github.com/schmittjoh/JMSPaymentCoreBundle/blob/c9052c9720203ce92584e0e57096532005cfbe1a/Tests/Functional/TestBundle/Controller/OrderController.php | Tests/Functional/TestBundle/Controller/OrderController.php | <?php
namespace JMS\Payment\CoreBundle\Tests\Functional\TestBundle\Controller;
use JMS\Payment\CoreBundle\PluginController\PluginController;
use JMS\Payment\CoreBundle\Tests\Functional\TestBundle\Entity\Order;
use JMS\Payment\CoreBundle\Util\Legacy;
use Sensio\Bundle\FrameworkExtraBundle\Configuration\Route;
use Sens... | php | Apache-2.0 | c9052c9720203ce92584e0e57096532005cfbe1a | 2026-01-05T02:32:31.950987Z | false |
schmittjoh/JMSPaymentCoreBundle | https://github.com/schmittjoh/JMSPaymentCoreBundle/blob/c9052c9720203ce92584e0e57096532005cfbe1a/Tests/Functional/TestBundle/Controller/LegacyOrderController.php | Tests/Functional/TestBundle/Controller/LegacyOrderController.php | <?php
namespace JMS\Payment\CoreBundle\Tests\Functional\TestBundle\Controller;
use JMS\Payment\CoreBundle\Tests\Functional\TestBundle\Entity\Order;
use JMS\Payment\CoreBundle\Util\Legacy;
use Symfony\Bundle\FrameworkBundle\Controller\Controller;
use Symfony\Component\Form\FormFactory;
use Symfony\Component\HttpFounda... | php | Apache-2.0 | c9052c9720203ce92584e0e57096532005cfbe1a | 2026-01-05T02:32:31.950987Z | false |
schmittjoh/JMSPaymentCoreBundle | https://github.com/schmittjoh/JMSPaymentCoreBundle/blob/c9052c9720203ce92584e0e57096532005cfbe1a/Tests/Functional/TestBundle/Resources/config/default.php | Tests/Functional/TestBundle/Resources/config/default.php | <?php
use Symfony\Component\HttpKernel\Kernel;
$files = [
'database.php',
'framework.php',
'doctrine.yml',
];
if (version_compare(Kernel::VERSION, '3.0', '>=')) {
$files[] = 'services.yml';
}
foreach ($files as $file) {
$loader->import($file);
}
| php | Apache-2.0 | c9052c9720203ce92584e0e57096532005cfbe1a | 2026-01-05T02:32:31.950987Z | false |
schmittjoh/JMSPaymentCoreBundle | https://github.com/schmittjoh/JMSPaymentCoreBundle/blob/c9052c9720203ce92584e0e57096532005cfbe1a/Tests/Functional/TestBundle/Resources/config/database.php | Tests/Functional/TestBundle/Resources/config/database.php | <?php
$container->loadFromExtension('doctrine', array(
'dbal' => array(
'driver' => 'pdo_sqlite',
'path' => tempnam(sys_get_temp_dir(), 'database'),
),
));
| php | Apache-2.0 | c9052c9720203ce92584e0e57096532005cfbe1a | 2026-01-05T02:32:31.950987Z | false |
schmittjoh/JMSPaymentCoreBundle | https://github.com/schmittjoh/JMSPaymentCoreBundle/blob/c9052c9720203ce92584e0e57096532005cfbe1a/Tests/Functional/TestBundle/Resources/config/framework.php | Tests/Functional/TestBundle/Resources/config/framework.php | <?php
use Symfony\Component\HttpKernel\Kernel;
$config = [
'form' => true,
'router' => [
'resource' => '%kernel.root_dir%/TestBundle/Resources/config/routing.yml',
],
'secret' => 'test',
'session' => [
'storage_id' => 'session.storage.mock_file',
],
'templating' => [
... | php | Apache-2.0 | c9052c9720203ce92584e0e57096532005cfbe1a | 2026-01-05T02:32:31.950987Z | false |
schmittjoh/JMSPaymentCoreBundle | https://github.com/schmittjoh/JMSPaymentCoreBundle/blob/c9052c9720203ce92584e0e57096532005cfbe1a/Tests/Functional/TestPlugin/TestPluginBundle.php | Tests/Functional/TestPlugin/TestPluginBundle.php | <?php
namespace JMS\Payment\CoreBundle\Tests\Functional\TestPlugin;
use Symfony\Component\HttpKernel\Bundle\Bundle;
class TestPluginBundle extends Bundle
{
} | php | Apache-2.0 | c9052c9720203ce92584e0e57096532005cfbe1a | 2026-01-05T02:32:31.950987Z | false |
schmittjoh/JMSPaymentCoreBundle | https://github.com/schmittjoh/JMSPaymentCoreBundle/blob/c9052c9720203ce92584e0e57096532005cfbe1a/Tests/Functional/TestPlugin/Form/TestPluginType.php | Tests/Functional/TestPlugin/Form/TestPluginType.php | <?php
namespace JMS\Payment\CoreBundle\Tests\Functional\TestPlugin\Form;
use Symfony\Component\Form\AbstractType;
use Symfony\Component\Form\FormBuilderInterface;
class TestPluginType extends AbstractType
{
public function buildForm(FormBuilderInterface $builder, array $options)
{
}
public function g... | php | Apache-2.0 | c9052c9720203ce92584e0e57096532005cfbe1a | 2026-01-05T02:32:31.950987Z | false |
schmittjoh/JMSPaymentCoreBundle | https://github.com/schmittjoh/JMSPaymentCoreBundle/blob/c9052c9720203ce92584e0e57096532005cfbe1a/Tests/Functional/TestPlugin/DependencyInjection/TestPluginExtension.php | Tests/Functional/TestPlugin/DependencyInjection/TestPluginExtension.php | <?php
namespace JMS\Payment\CoreBundle\Tests\Functional\TestPlugin\DependencyInjection;
use Symfony\Component\Config\FileLocator;
use Symfony\Component\DependencyInjection\ContainerBuilder;
use Symfony\Component\DependencyInjection\Extension\Extension;
use Symfony\Component\DependencyInjection\Loader\YamlFileLoader;
... | php | Apache-2.0 | c9052c9720203ce92584e0e57096532005cfbe1a | 2026-01-05T02:32:31.950987Z | false |
schmittjoh/JMSPaymentCoreBundle | https://github.com/schmittjoh/JMSPaymentCoreBundle/blob/c9052c9720203ce92584e0e57096532005cfbe1a/Tests/Functional/TestPlugin/Plugin/TestPlugin.php | Tests/Functional/TestPlugin/Plugin/TestPlugin.php | <?php
namespace JMS\Payment\CoreBundle\Tests\Functional\TestPlugin\Plugin;
use JMS\Payment\CoreBundle\Plugin\AbstractPlugin;
class TestPlugin extends AbstractPlugin
{
public function processes($paymentSystemName)
{
return 'test_plugin' === $paymentSystemName;
}
} | php | Apache-2.0 | c9052c9720203ce92584e0e57096532005cfbe1a | 2026-01-05T02:32:31.950987Z | false |
schmittjoh/JMSPaymentCoreBundle | https://github.com/schmittjoh/JMSPaymentCoreBundle/blob/c9052c9720203ce92584e0e57096532005cfbe1a/Tests/Functional/Command/GenerateKeyCommandTest.php | Tests/Functional/Command/GenerateKeyCommandTest.php | <?php
namespace JMS\Payment\CoreBundle\Tests\Command;
use JMS\Payment\CoreBundle\Command\GenerateKeyCommand;
use JMS\Payment\CoreBundle\Cryptography\DefusePhpEncryptionService;
use JMS\Payment\CoreBundle\Tests\Functional\BaseTestCase;
use Symfony\Bundle\FrameworkBundle\Console\Application;
use Symfony\Component\Conso... | php | Apache-2.0 | c9052c9720203ce92584e0e57096532005cfbe1a | 2026-01-05T02:32:31.950987Z | false |
schmittjoh/JMSPaymentCoreBundle | https://github.com/schmittjoh/JMSPaymentCoreBundle/blob/c9052c9720203ce92584e0e57096532005cfbe1a/Tests/DependencyInjection/Configuration/ConfigurationTest.php | Tests/DependencyInjection/Configuration/ConfigurationTest.php | <?php
namespace JMS\Payment\CoreBundle\Tests\DependencyInjection\Configuration;
use JMS\Payment\CoreBundle\DependencyInjection\Configuration;
use Matthias\SymfonyConfigTest\PhpUnit\AbstractConfigurationTestCase;
class ConfigurationTest extends AbstractConfigurationTestCase
{
public function testNoSecret()
{
... | php | Apache-2.0 | c9052c9720203ce92584e0e57096532005cfbe1a | 2026-01-05T02:32:31.950987Z | false |
schmittjoh/JMSPaymentCoreBundle | https://github.com/schmittjoh/JMSPaymentCoreBundle/blob/c9052c9720203ce92584e0e57096532005cfbe1a/Tests/Plugin/ErrorBuilderTest.php | Tests/Plugin/ErrorBuilderTest.php | <?php
namespace JMS\Payment\CoreBundle\Tests\Plugin;
use JMS\Payment\CoreBundle\Plugin\ErrorBuilder;
class ErrorBuilderTest extends \PHPUnit_Framework_TestCase
{
private $builder;
public function testHasErrors()
{
$this->assertFalse($this->builder->hasErrors());
$this->builder->addGloba... | php | Apache-2.0 | c9052c9720203ce92584e0e57096532005cfbe1a | 2026-01-05T02:32:31.950987Z | false |
schmittjoh/JMSPaymentCoreBundle | https://github.com/schmittjoh/JMSPaymentCoreBundle/blob/c9052c9720203ce92584e0e57096532005cfbe1a/Tests/Plugin/GatewayPluginTest.php | Tests/Plugin/GatewayPluginTest.php | <?php
namespace JMS\Payment\CoreBundle\Tests\Plugin;
use JMS\Payment\CoreBundle\BrowserKit\Request;
class GatewayPluginTest extends \PHPUnit_Framework_TestCase
{
public function testRequest()
{
if (!extension_loaded('curl')) {
$this->markTestSkipped('cURL is not loaded.');
}
... | php | Apache-2.0 | c9052c9720203ce92584e0e57096532005cfbe1a | 2026-01-05T02:32:31.950987Z | false |
schmittjoh/JMSPaymentCoreBundle | https://github.com/schmittjoh/JMSPaymentCoreBundle/blob/c9052c9720203ce92584e0e57096532005cfbe1a/Tests/Util/NumberTest.php | Tests/Util/NumberTest.php | <?php
namespace JMS\Payment\CoreBundle\Tests\Util;
use JMS\Payment\CoreBundle\Util\Number;
class NumberTest extends \PHPUnit_Framework_TestCase
{
/**
* @dataProvider getComparisonTests
*/
public function testWithComparison($float1, $float2, $comparison, $expected)
{
$this->assertSame($e... | php | Apache-2.0 | c9052c9720203ce92584e0e57096532005cfbe1a | 2026-01-05T02:32:31.950987Z | false |
schmittjoh/JMSPaymentCoreBundle | https://github.com/schmittjoh/JMSPaymentCoreBundle/blob/c9052c9720203ce92584e0e57096532005cfbe1a/Tests/PluginController/ResultTest.php | Tests/PluginController/ResultTest.php | <?php
namespace JMS\Payment\CoreBundle\Tests\PluginController;
use JMS\Payment\CoreBundle\Entity\Credit;
use JMS\Payment\CoreBundle\Entity\ExtendedData;
use JMS\Payment\CoreBundle\Entity\FinancialTransaction;
use JMS\Payment\CoreBundle\Entity\Payment;
use JMS\Payment\CoreBundle\Entity\PaymentInstruction;
use JMS\Paym... | php | Apache-2.0 | c9052c9720203ce92584e0e57096532005cfbe1a | 2026-01-05T02:32:31.950987Z | false |
schmittjoh/JMSPaymentCoreBundle | https://github.com/schmittjoh/JMSPaymentCoreBundle/blob/c9052c9720203ce92584e0e57096532005cfbe1a/Tests/PluginController/PluginControllerTest.php | Tests/PluginController/PluginControllerTest.php | <?php
namespace JMS\Payment\CoreBundle\Tests\PluginController;
use JMS\Payment\CoreBundle\Entity\Credit;
use JMS\Payment\CoreBundle\Entity\ExtendedData;
use JMS\Payment\CoreBundle\Entity\FinancialTransaction;
use JMS\Payment\CoreBundle\Entity\Payment;
use JMS\Payment\CoreBundle\Entity\PaymentInstruction;
use JMS\Paym... | php | Apache-2.0 | c9052c9720203ce92584e0e57096532005cfbe1a | 2026-01-05T02:32:31.950987Z | true |
schmittjoh/JMSPaymentCoreBundle | https://github.com/schmittjoh/JMSPaymentCoreBundle/blob/c9052c9720203ce92584e0e57096532005cfbe1a/Tests/Validator/LuhnValidatorTest.php | Tests/Validator/LuhnValidatorTest.php | <?php
namespace JMS\Payment\CoreBundle\Tests\Validator;
use JMS\Payment\CoreBundle\Util\Legacy;
use JMS\Payment\CoreBundle\Validator\Luhn;
use JMS\Payment\CoreBundle\Validator\LuhnValidator;
class LuhnValidatorTest extends \PHPUnit_Framework_TestCase
{
protected $context;
protected $validator;
protected... | php | Apache-2.0 | c9052c9720203ce92584e0e57096532005cfbe1a | 2026-01-05T02:32:31.950987Z | false |
schmittjoh/JMSPaymentCoreBundle | https://github.com/schmittjoh/JMSPaymentCoreBundle/blob/c9052c9720203ce92584e0e57096532005cfbe1a/Tests/Validator/CardSchemeValidatorTest.php | Tests/Validator/CardSchemeValidatorTest.php | <?php
namespace JMS\Payment\CoreBundle\Tests\Validator;
use JMS\Payment\CoreBundle\Util\Legacy;
use JMS\Payment\CoreBundle\Validator\CardScheme;
use JMS\Payment\CoreBundle\Validator\CardSchemeValidator;
class CardSchemeValidatorTest extends \PHPUnit_Framework_TestCase
{
protected $context;
protected $validat... | php | Apache-2.0 | c9052c9720203ce92584e0e57096532005cfbe1a | 2026-01-05T02:32:31.950987Z | false |
schmittjoh/JMSPaymentCoreBundle | https://github.com/schmittjoh/JMSPaymentCoreBundle/blob/c9052c9720203ce92584e0e57096532005cfbe1a/.travis/script.php | .travis/script.php | #!/usr/bin/env php
<?php
include_once 'common.php';
run('vendor/bin/phpunit');
if (shouldBuildDocs()) {
run('venv/bin/sphinx-build -E -W Resources/doc Resources/doc/_build');
}
| php | Apache-2.0 | c9052c9720203ce92584e0e57096532005cfbe1a | 2026-01-05T02:32:31.950987Z | false |
schmittjoh/JMSPaymentCoreBundle | https://github.com/schmittjoh/JMSPaymentCoreBundle/blob/c9052c9720203ce92584e0e57096532005cfbe1a/.travis/common.php | .travis/common.php | <?php
function shouldBuildDocs()
{
return isLatestPhp() && isLatestSymfony();
}
function isLatestPhp()
{
return getPhpVersion() === '7.2';
}
function isLatestSymfony()
{
return getSymfonyVersion() === '4.2.*';
}
function getSymfonyVersion()
{
return getenv('SYMFONY_VERSION');
}
function getPhpVersi... | php | Apache-2.0 | c9052c9720203ce92584e0e57096532005cfbe1a | 2026-01-05T02:32:31.950987Z | false |
schmittjoh/JMSPaymentCoreBundle | https://github.com/schmittjoh/JMSPaymentCoreBundle/blob/c9052c9720203ce92584e0e57096532005cfbe1a/.travis/before_install.php | .travis/before_install.php | #!/usr/bin/env php
<?php
include_once 'common.php';
// Disable XDebug
run('phpenv config-rm xdebug.ini');
| php | Apache-2.0 | c9052c9720203ce92584e0e57096532005cfbe1a | 2026-01-05T02:32:31.950987Z | false |
schmittjoh/JMSPaymentCoreBundle | https://github.com/schmittjoh/JMSPaymentCoreBundle/blob/c9052c9720203ce92584e0e57096532005cfbe1a/.travis/install.php | .travis/install.php | #!/usr/bin/env php
<?php
include_once 'common.php';
if (isLatestPhp() && isLatestSymfony()) {
// Make sure composer.json references all necessary components by having one
// job run a `composer update`. Since `composer update` will install the
// latest Symfony, this should be done for the job correspondi... | php | Apache-2.0 | c9052c9720203ce92584e0e57096532005cfbe1a | 2026-01-05T02:32:31.950987Z | false |
schmittjoh/JMSPaymentCoreBundle | https://github.com/schmittjoh/JMSPaymentCoreBundle/blob/c9052c9720203ce92584e0e57096532005cfbe1a/Validator/CardScheme.php | Validator/CardScheme.php | <?php
namespace JMS\Payment\CoreBundle\Validator;
use Symfony\Component\Validator\Constraint;
/*
* Copyright 2010 Johannes M. Schmitt <schmittjoh@gmail.com>
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a c... | php | Apache-2.0 | c9052c9720203ce92584e0e57096532005cfbe1a | 2026-01-05T02:32:31.950987Z | false |
schmittjoh/JMSPaymentCoreBundle | https://github.com/schmittjoh/JMSPaymentCoreBundle/blob/c9052c9720203ce92584e0e57096532005cfbe1a/Validator/Luhn.php | Validator/Luhn.php | <?php
namespace JMS\Payment\CoreBundle\Validator;
use Symfony\Component\Validator\Constraint;
/*
* Copyright 2010 Johannes M. Schmitt <schmittjoh@gmail.com>
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a c... | php | Apache-2.0 | c9052c9720203ce92584e0e57096532005cfbe1a | 2026-01-05T02:32:31.950987Z | false |
schmittjoh/JMSPaymentCoreBundle | https://github.com/schmittjoh/JMSPaymentCoreBundle/blob/c9052c9720203ce92584e0e57096532005cfbe1a/Validator/CardSchemeValidator.php | Validator/CardSchemeValidator.php | <?php
namespace JMS\Payment\CoreBundle\Validator;
use Symfony\Component\Validator\Constraint;
use Symfony\Component\Validator\ConstraintValidator;
/*
* Copyright 2010 Johannes M. Schmitt <schmittjoh@gmail.com>
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except ... | php | Apache-2.0 | c9052c9720203ce92584e0e57096532005cfbe1a | 2026-01-05T02:32:31.950987Z | false |
schmittjoh/JMSPaymentCoreBundle | https://github.com/schmittjoh/JMSPaymentCoreBundle/blob/c9052c9720203ce92584e0e57096532005cfbe1a/Validator/LuhnValidator.php | Validator/LuhnValidator.php | <?php
namespace JMS\Payment\CoreBundle\Validator;
use Symfony\Component\Validator\Constraint;
use Symfony\Component\Validator\ConstraintValidator;
/*
* Copyright 2010 Johannes M. Schmitt <schmittjoh@gmail.com>
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except ... | php | Apache-2.0 | c9052c9720203ce92584e0e57096532005cfbe1a | 2026-01-05T02:32:31.950987Z | false |
schmittjoh/JMSPaymentCoreBundle | https://github.com/schmittjoh/JMSPaymentCoreBundle/blob/c9052c9720203ce92584e0e57096532005cfbe1a/Command/GenerateKeyCommand.php | Command/GenerateKeyCommand.php | <?php
namespace JMS\Payment\CoreBundle\Command;
use Defuse\Crypto\Key;
use Symfony\Component\Console\Command\Command;
use Symfony\Component\Console\Input\InputInterface;
use Symfony\Component\Console\Output\OutputInterface;
class GenerateKeyCommand extends Command
{
protected function configure()
{
$... | php | Apache-2.0 | c9052c9720203ce92584e0e57096532005cfbe1a | 2026-01-05T02:32:31.950987Z | false |
avocet-shores/laravel-rewind | https://github.com/avocet-shores/laravel-rewind/blob/3c62af7984d32604f3f1b69adec2689f212394ee/src/LaravelRewindServiceProvider.php | src/LaravelRewindServiceProvider.php | <?php
namespace AvocetShores\LaravelRewind;
use AvocetShores\LaravelRewind\Commands\AddVersionTrackingColumnCommand;
use AvocetShores\LaravelRewind\Events\RewindVersionCreating;
use AvocetShores\LaravelRewind\Listeners\CreateRewindVersion;
use AvocetShores\LaravelRewind\Listeners\CreateRewindVersionQueued;
use Avocet... | php | MIT | 3c62af7984d32604f3f1b69adec2689f212394ee | 2026-01-05T02:32:41.084889Z | false |
avocet-shores/laravel-rewind | https://github.com/avocet-shores/laravel-rewind/blob/3c62af7984d32604f3f1b69adec2689f212394ee/src/Exceptions/CurrentVersionColumnMissingException.php | src/Exceptions/CurrentVersionColumnMissingException.php | <?php
namespace AvocetShores\LaravelRewind\Exceptions;
class CurrentVersionColumnMissingException extends LaravelRewindException
{
public function __construct($model)
{
parent::__construct(sprintf("%s's table (%s) does not have a current_version column.
You can use the artisan command 'php art... | php | MIT | 3c62af7984d32604f3f1b69adec2689f212394ee | 2026-01-05T02:32:41.084889Z | false |
avocet-shores/laravel-rewind | https://github.com/avocet-shores/laravel-rewind/blob/3c62af7984d32604f3f1b69adec2689f212394ee/src/Exceptions/VersionDoesNotExistException.php | src/Exceptions/VersionDoesNotExistException.php | <?php
namespace AvocetShores\LaravelRewind\Exceptions;
class VersionDoesNotExistException extends LaravelRewindException {}
| php | MIT | 3c62af7984d32604f3f1b69adec2689f212394ee | 2026-01-05T02:32:41.084889Z | false |
avocet-shores/laravel-rewind | https://github.com/avocet-shores/laravel-rewind/blob/3c62af7984d32604f3f1b69adec2689f212394ee/src/Exceptions/LaravelRewindException.php | src/Exceptions/LaravelRewindException.php | <?php
namespace AvocetShores\LaravelRewind\Exceptions;
class LaravelRewindException extends \Exception {}
| php | MIT | 3c62af7984d32604f3f1b69adec2689f212394ee | 2026-01-05T02:32:41.084889Z | false |
avocet-shores/laravel-rewind | https://github.com/avocet-shores/laravel-rewind/blob/3c62af7984d32604f3f1b69adec2689f212394ee/src/Exceptions/ModelNotRewindableException.php | src/Exceptions/ModelNotRewindableException.php | <?php
namespace AvocetShores\LaravelRewind\Exceptions;
class ModelNotRewindableException extends LaravelRewindException {}
| php | MIT | 3c62af7984d32604f3f1b69adec2689f212394ee | 2026-01-05T02:32:41.084889Z | false |
avocet-shores/laravel-rewind | https://github.com/avocet-shores/laravel-rewind/blob/3c62af7984d32604f3f1b69adec2689f212394ee/src/Traits/Rewindable.php | src/Traits/Rewindable.php | <?php
namespace AvocetShores\LaravelRewind\Traits;
use AvocetShores\LaravelRewind\Events\RewindVersionCreating;
use AvocetShores\LaravelRewind\Models\RewindVersion;
use Illuminate\Contracts\Cache\LockTimeoutException;
use Illuminate\Database\Eloquent\Relations\HasMany;
use Illuminate\Database\Eloquent\Relations\Morph... | php | MIT | 3c62af7984d32604f3f1b69adec2689f212394ee | 2026-01-05T02:32:41.084889Z | false |
avocet-shores/laravel-rewind | https://github.com/avocet-shores/laravel-rewind/blob/3c62af7984d32604f3f1b69adec2689f212394ee/src/Listeners/CreateRewindVersionQueued.php | src/Listeners/CreateRewindVersionQueued.php | <?php
namespace AvocetShores\LaravelRewind\Listeners;
use Illuminate\Contracts\Queue\ShouldQueue;
class CreateRewindVersionQueued extends CreateRewindVersion implements ShouldQueue {}
| php | MIT | 3c62af7984d32604f3f1b69adec2689f212394ee | 2026-01-05T02:32:41.084889Z | false |
avocet-shores/laravel-rewind | https://github.com/avocet-shores/laravel-rewind/blob/3c62af7984d32604f3f1b69adec2689f212394ee/src/Listeners/CreateRewindVersion.php | src/Listeners/CreateRewindVersion.php | <?php
namespace AvocetShores\LaravelRewind\Listeners;
use AvocetShores\LaravelRewind\Events\RewindVersionCreated;
use AvocetShores\LaravelRewind\Events\RewindVersionCreating;
use AvocetShores\LaravelRewind\Models\RewindVersion;
use DateTimeInterface;
use Illuminate\Contracts\Cache\LockTimeoutException;
use Illuminate... | php | MIT | 3c62af7984d32604f3f1b69adec2689f212394ee | 2026-01-05T02:32:41.084889Z | false |
avocet-shores/laravel-rewind | https://github.com/avocet-shores/laravel-rewind/blob/3c62af7984d32604f3f1b69adec2689f212394ee/src/Dto/ApproachPlan.php | src/Dto/ApproachPlan.php | <?php
namespace AvocetShores\LaravelRewind\Dto;
use AvocetShores\LaravelRewind\Enums\ApproachMethod;
use AvocetShores\LaravelRewind\Models\RewindVersion;
class ApproachPlan
{
public ApproachMethod $method;
public ?RewindVersion $snapshot;
public int $cost;
public function __construct(ApproachMetho... | php | MIT | 3c62af7984d32604f3f1b69adec2689f212394ee | 2026-01-05T02:32:41.084889Z | false |
avocet-shores/laravel-rewind | https://github.com/avocet-shores/laravel-rewind/blob/3c62af7984d32604f3f1b69adec2689f212394ee/src/Services/RewindManager.php | src/Services/RewindManager.php | <?php
namespace AvocetShores\LaravelRewind\Services;
use AvocetShores\LaravelRewind\Enums\ApproachMethod;
use AvocetShores\LaravelRewind\Exceptions\CurrentVersionColumnMissingException;
use AvocetShores\LaravelRewind\Exceptions\LaravelRewindException;
use AvocetShores\LaravelRewind\Exceptions\ModelNotRewindableExcept... | php | MIT | 3c62af7984d32604f3f1b69adec2689f212394ee | 2026-01-05T02:32:41.084889Z | false |
avocet-shores/laravel-rewind | https://github.com/avocet-shores/laravel-rewind/blob/3c62af7984d32604f3f1b69adec2689f212394ee/src/Services/ApproachEngine.php | src/Services/ApproachEngine.php | <?php
namespace AvocetShores\LaravelRewind\Services;
use AvocetShores\LaravelRewind\Dto\ApproachPlan;
use AvocetShores\LaravelRewind\Enums\ApproachMethod;
class ApproachEngine
{
/**
* Decide how to reach the target version with the fewest partial diffs:
* 1) Directly stepping backward from current (if ... | php | MIT | 3c62af7984d32604f3f1b69adec2689f212394ee | 2026-01-05T02:32:41.084889Z | false |
avocet-shores/laravel-rewind | https://github.com/avocet-shores/laravel-rewind/blob/3c62af7984d32604f3f1b69adec2689f212394ee/src/Facades/Rewind.php | src/Facades/Rewind.php | <?php
namespace AvocetShores\LaravelRewind\Facades;
use Illuminate\Database\Eloquent\Model;
use Illuminate\Support\Facades\Facade;
/**
* @see \AvocetShores\LaravelRewind\Services\RewindManager
*
* @method static void rewind(Model $model, int $steps = 1) Rewind by a specified number of steps
* @method static void... | php | MIT | 3c62af7984d32604f3f1b69adec2689f212394ee | 2026-01-05T02:32:41.084889Z | false |
avocet-shores/laravel-rewind | https://github.com/avocet-shores/laravel-rewind/blob/3c62af7984d32604f3f1b69adec2689f212394ee/src/Enums/ApproachMethod.php | src/Enums/ApproachMethod.php | <?php
namespace AvocetShores\LaravelRewind\Enums;
enum ApproachMethod: string
{
case None = 'none';
case Direct = 'direct';
case From_Snapshot = 'from_snapshot';
}
| php | MIT | 3c62af7984d32604f3f1b69adec2689f212394ee | 2026-01-05T02:32:41.084889Z | false |
avocet-shores/laravel-rewind | https://github.com/avocet-shores/laravel-rewind/blob/3c62af7984d32604f3f1b69adec2689f212394ee/src/Models/RewindVersion.php | src/Models/RewindVersion.php | <?php
namespace AvocetShores\LaravelRewind\Models;
use Illuminate\Database\Eloquent\Model;
use Illuminate\Database\Eloquent\Relations\BelongsTo;
use Illuminate\Database\Eloquent\Relations\MorphTo;
/**
* @property array $old_values
* @property array $new_values
* @property int $version
*/
class RewindVersion exte... | php | MIT | 3c62af7984d32604f3f1b69adec2689f212394ee | 2026-01-05T02:32:41.084889Z | false |
avocet-shores/laravel-rewind | https://github.com/avocet-shores/laravel-rewind/blob/3c62af7984d32604f3f1b69adec2689f212394ee/src/Commands/AddVersionTrackingColumnCommand.php | src/Commands/AddVersionTrackingColumnCommand.php | <?php
namespace AvocetShores\LaravelRewind\Commands;
use Illuminate\Console\Command;
use Illuminate\Filesystem\Filesystem;
use Illuminate\Support\Str;
class AddVersionTrackingColumnCommand extends Command
{
protected $signature = 'rewind:add-version {table? : The name of the table to add current_version column t... | php | MIT | 3c62af7984d32604f3f1b69adec2689f212394ee | 2026-01-05T02:32:41.084889Z | false |
avocet-shores/laravel-rewind | https://github.com/avocet-shores/laravel-rewind/blob/3c62af7984d32604f3f1b69adec2689f212394ee/src/Events/RewindVersionCreating.php | src/Events/RewindVersionCreating.php | <?php
namespace AvocetShores\LaravelRewind\Events;
use Illuminate\Foundation\Events\Dispatchable;
use Illuminate\Queue\SerializesModels;
class RewindVersionCreating
{
use Dispatchable, SerializesModels;
public function __construct(
public $model,
) {}
}
| php | MIT | 3c62af7984d32604f3f1b69adec2689f212394ee | 2026-01-05T02:32:41.084889Z | false |
avocet-shores/laravel-rewind | https://github.com/avocet-shores/laravel-rewind/blob/3c62af7984d32604f3f1b69adec2689f212394ee/src/Events/RewindVersionCreated.php | src/Events/RewindVersionCreated.php | <?php
namespace AvocetShores\LaravelRewind\Events;
use Illuminate\Foundation\Events\Dispatchable;
class RewindVersionCreated
{
use Dispatchable;
public function __construct(
public $model,
public $version,
) {}
}
| php | MIT | 3c62af7984d32604f3f1b69adec2689f212394ee | 2026-01-05T02:32:41.084889Z | false |
avocet-shores/laravel-rewind | https://github.com/avocet-shores/laravel-rewind/blob/3c62af7984d32604f3f1b69adec2689f212394ee/tests/Pest.php | tests/Pest.php | <?php
use AvocetShores\LaravelRewind\Tests\TestCase;
uses(TestCase::class)->in(__DIR__);
| php | MIT | 3c62af7984d32604f3f1b69adec2689f212394ee | 2026-01-05T02:32:41.084889Z | false |
avocet-shores/laravel-rewind | https://github.com/avocet-shores/laravel-rewind/blob/3c62af7984d32604f3f1b69adec2689f212394ee/tests/TestCase.php | tests/TestCase.php | <?php
namespace AvocetShores\LaravelRewind\Tests;
use AvocetShores\LaravelRewind\LaravelRewindServiceProvider;
use AvocetShores\LaravelRewind\Tests\Models\User;
use Illuminate\Database\Eloquent\Factories\Factory;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Encryption\Encrypter;
use Illuminate\Support\Fac... | php | MIT | 3c62af7984d32604f3f1b69adec2689f212394ee | 2026-01-05T02:32:41.084889Z | false |
avocet-shores/laravel-rewind | https://github.com/avocet-shores/laravel-rewind/blob/3c62af7984d32604f3f1b69adec2689f212394ee/tests/ArchTest.php | tests/ArchTest.php | <?php
arch('it will not use debugging functions')
->expect(['dd', 'dump', 'ray'])
->each->not->toBeUsed();
| php | MIT | 3c62af7984d32604f3f1b69adec2689f212394ee | 2026-01-05T02:32:41.084889Z | false |
avocet-shores/laravel-rewind | https://github.com/avocet-shores/laravel-rewind/blob/3c62af7984d32604f3f1b69adec2689f212394ee/tests/Feature/Traits/RewindableTest.php | tests/Feature/Traits/RewindableTest.php | <?php
use AvocetShores\LaravelRewind\Models\RewindVersion;
use AvocetShores\LaravelRewind\Tests\Models\Post;
use AvocetShores\LaravelRewind\Tests\Models\PostWithExcludedAttributes;
use AvocetShores\LaravelRewind\Tests\Models\Template;
use AvocetShores\LaravelRewind\Tests\Models\User;
use Illuminate\Foundation\Testing\... | php | MIT | 3c62af7984d32604f3f1b69adec2689f212394ee | 2026-01-05T02:32:41.084889Z | false |
avocet-shores/laravel-rewind | https://github.com/avocet-shores/laravel-rewind/blob/3c62af7984d32604f3f1b69adec2689f212394ee/tests/Feature/Listeners/CreateRewindVersionTest.php | tests/Feature/Listeners/CreateRewindVersionTest.php | <?php
use AvocetShores\LaravelRewind\Events\RewindVersionCreating;
use AvocetShores\LaravelRewind\Listeners\CreateRewindVersion;
use AvocetShores\LaravelRewind\Tests\Models\Post;
use Illuminate\Cache\PhpRedisLock;
use Illuminate\Contracts\Cache\LockTimeoutException;
it('Logs error when unable to acquire a lock', func... | php | MIT | 3c62af7984d32604f3f1b69adec2689f212394ee | 2026-01-05T02:32:41.084889Z | false |
avocet-shores/laravel-rewind | https://github.com/avocet-shores/laravel-rewind/blob/3c62af7984d32604f3f1b69adec2689f212394ee/tests/Feature/Listeners/CreateRewindVersionQueuedTest.php | tests/Feature/Listeners/CreateRewindVersionQueuedTest.php | <?php
use AvocetShores\LaravelRewind\Events\RewindVersionCreating;
use AvocetShores\LaravelRewind\LaravelRewindServiceProvider;
use AvocetShores\LaravelRewind\Listeners\CreateRewindVersion;
use AvocetShores\LaravelRewind\Listeners\CreateRewindVersionQueued;
use AvocetShores\LaravelRewind\Tests\Models\Post;
test('it t... | php | MIT | 3c62af7984d32604f3f1b69adec2689f212394ee | 2026-01-05T02:32:41.084889Z | false |
avocet-shores/laravel-rewind | https://github.com/avocet-shores/laravel-rewind/blob/3c62af7984d32604f3f1b69adec2689f212394ee/tests/Feature/Services/RewindManagerTest.php | tests/Feature/Services/RewindManagerTest.php | <?php
use AvocetShores\LaravelRewind\Exceptions\CurrentVersionColumnMissingException;
use AvocetShores\LaravelRewind\Exceptions\ModelNotRewindableException;
use AvocetShores\LaravelRewind\Exceptions\VersionDoesNotExistException;
use AvocetShores\LaravelRewind\Facades\Rewind;
use AvocetShores\LaravelRewind\Tests\Models... | php | MIT | 3c62af7984d32604f3f1b69adec2689f212394ee | 2026-01-05T02:32:41.084889Z | false |
avocet-shores/laravel-rewind | https://github.com/avocet-shores/laravel-rewind/blob/3c62af7984d32604f3f1b69adec2689f212394ee/tests/Feature/Services/ApproachEngineTest.php | tests/Feature/Services/ApproachEngineTest.php | <?php
use AvocetShores\LaravelRewind\Dto\ApproachPlan;
use AvocetShores\LaravelRewind\Enums\ApproachMethod;
use AvocetShores\LaravelRewind\Models\RewindVersion;
use AvocetShores\LaravelRewind\Services\ApproachEngine;
use Illuminate\Database\Eloquent\Model;
/**
* Helper: Create a mock Model with a "versions" collecti... | php | MIT | 3c62af7984d32604f3f1b69adec2689f212394ee | 2026-01-05T02:32:41.084889Z | false |
avocet-shores/laravel-rewind | https://github.com/avocet-shores/laravel-rewind/blob/3c62af7984d32604f3f1b69adec2689f212394ee/tests/Feature/Models/RewindVersionTest.php | tests/Feature/Models/RewindVersionTest.php | <?php
use AvocetShores\LaravelRewind\Models\RewindVersion;
use AvocetShores\LaravelRewind\Tests\Models\Post;
use AvocetShores\LaravelRewind\Tests\Models\User;
beforeEach(function () {
// Create a user
$this->user = User::create([
'name' => 'John Doe',
'email' => 'john@example.com',
'pa... | php | MIT | 3c62af7984d32604f3f1b69adec2689f212394ee | 2026-01-05T02:32:41.084889Z | false |
avocet-shores/laravel-rewind | https://github.com/avocet-shores/laravel-rewind/blob/3c62af7984d32604f3f1b69adec2689f212394ee/tests/Feature/Commands/AddVersionTrackingColumnCommandTest.php | tests/Feature/Commands/AddVersionTrackingColumnCommandTest.php | <?php
use Illuminate\Support\Facades\File;
use function Pest\Laravel\artisan;
beforeEach(function () {
// Ensure the migrations directory is clean before we start
File::cleanDirectory(database_path('migrations'));
});
afterEach(function () {
// Clean up after each test
File::cleanDirectory(database_... | php | MIT | 3c62af7984d32604f3f1b69adec2689f212394ee | 2026-01-05T02:32:41.084889Z | false |
avocet-shores/laravel-rewind | https://github.com/avocet-shores/laravel-rewind/blob/3c62af7984d32604f3f1b69adec2689f212394ee/tests/Models/PostThatIsNotRewindable.php | tests/Models/PostThatIsNotRewindable.php | <?php
namespace AvocetShores\LaravelRewind\Tests\Models;
use Illuminate\Database\Eloquent\Model;
class PostThatIsNotRewindable extends Model
{
protected $table = 'posts';
protected $fillable = [
'user_id',
'title',
'body',
];
}
| php | MIT | 3c62af7984d32604f3f1b69adec2689f212394ee | 2026-01-05T02:32:41.084889Z | false |
avocet-shores/laravel-rewind | https://github.com/avocet-shores/laravel-rewind/blob/3c62af7984d32604f3f1b69adec2689f212394ee/tests/Models/User.php | tests/Models/User.php | <?php
namespace AvocetShores\LaravelRewind\Tests\Models;
use Illuminate\Contracts\Auth\Authenticatable;
use Illuminate\Database\Eloquent\Model;
use Illuminate\Database\Eloquent\Relations\HasMany;
class User extends Model implements Authenticatable
{
protected $fillable = [
'name',
'email',
... | php | MIT | 3c62af7984d32604f3f1b69adec2689f212394ee | 2026-01-05T02:32:41.084889Z | false |
avocet-shores/laravel-rewind | https://github.com/avocet-shores/laravel-rewind/blob/3c62af7984d32604f3f1b69adec2689f212394ee/tests/Models/Template.php | tests/Models/Template.php | <?php
namespace AvocetShores\LaravelRewind\Tests\Models;
use AvocetShores\LaravelRewind\Traits\Rewindable;
use Illuminate\Database\Eloquent\Model;
use Illuminate\Database\Eloquent\SoftDeletes;
class Template extends Model
{
use Rewindable;
use SoftDeletes;
protected $fillable = [
'name',
... | php | MIT | 3c62af7984d32604f3f1b69adec2689f212394ee | 2026-01-05T02:32:41.084889Z | false |
avocet-shores/laravel-rewind | https://github.com/avocet-shores/laravel-rewind/blob/3c62af7984d32604f3f1b69adec2689f212394ee/tests/Models/PostWithExcludedAttributes.php | tests/Models/PostWithExcludedAttributes.php | <?php
namespace AvocetShores\LaravelRewind\Tests\Models;
use AvocetShores\LaravelRewind\Traits\Rewindable;
use Illuminate\Database\Eloquent\Model;
class PostWithExcludedAttributes extends Model
{
use Rewindable;
protected $table = 'posts';
protected $fillable = [
'user_id',
'title',
... | php | MIT | 3c62af7984d32604f3f1b69adec2689f212394ee | 2026-01-05T02:32:41.084889Z | false |
avocet-shores/laravel-rewind | https://github.com/avocet-shores/laravel-rewind/blob/3c62af7984d32604f3f1b69adec2689f212394ee/tests/Models/Post.php | tests/Models/Post.php | <?php
namespace AvocetShores\LaravelRewind\Tests\Models;
use AvocetShores\LaravelRewind\Traits\Rewindable;
use Illuminate\Database\Eloquent\Model;
class Post extends Model
{
use Rewindable;
protected $table = 'posts';
protected $fillable = [
'user_id',
'title',
'body',
];
}
| php | MIT | 3c62af7984d32604f3f1b69adec2689f212394ee | 2026-01-05T02:32:41.084889Z | false |
avocet-shores/laravel-rewind | https://github.com/avocet-shores/laravel-rewind/blob/3c62af7984d32604f3f1b69adec2689f212394ee/config/rewind.php | config/rewind.php | <?php
// config for AvocetShores/LaravelRewind
return [
/*
|--------------------------------------------------------------------------
| Rewind Versions Table Name
|--------------------------------------------------------------------------
|
| Here you may define the name of the table that sto... | php | MIT | 3c62af7984d32604f3f1b69adec2689f212394ee | 2026-01-05T02:32:41.084889Z | false |
avocet-shores/laravel-rewind | https://github.com/avocet-shores/laravel-rewind/blob/3c62af7984d32604f3f1b69adec2689f212394ee/database/factories/ModelFactory.php | database/factories/ModelFactory.php | <?php
namespace AvocetShores\LaravelRewind\Database\Factories;
use Illuminate\Database\Eloquent\Factories\Factory;
/*
class ModelFactory extends Factory
{
protected $model = YourModel::class;
public function definition()
{
return [
];
}
}
*/
| php | MIT | 3c62af7984d32604f3f1b69adec2689f212394ee | 2026-01-05T02:32:41.084889Z | false |
voronkovich/sberbank-acquiring-client | https://github.com/voronkovich/sberbank-acquiring-client/blob/5488b82c58451484519feebf9f52888f0e28f923/.php-cs-fixer.dist.php | .php-cs-fixer.dist.php | <?php
$finder = PhpCsFixer\Finder::create()
->in('src')
;
return (new PhpCsFixer\Config())
->setRules([
'@PSR2' => true,
'array_syntax' => ['syntax' => 'short'],
])
->setFinder($finder)
->setUsingCache(false)
;
| php | MIT | 5488b82c58451484519feebf9f52888f0e28f923 | 2026-01-05T02:32:55.856790Z | false |
voronkovich/sberbank-acquiring-client | https://github.com/voronkovich/sberbank-acquiring-client/blob/5488b82c58451484519feebf9f52888f0e28f923/src/Client.php | src/Client.php | <?php
declare(strict_types=1);
namespace Voronkovich\SberbankAcquiring;
use Voronkovich\SberbankAcquiring\Exception\ActionException;
use Voronkovich\SberbankAcquiring\Exception\BadResponseException;
use Voronkovich\SberbankAcquiring\Exception\NetworkException;
use Voronkovich\SberbankAcquiring\Exception\ResponsePars... | php | MIT | 5488b82c58451484519feebf9f52888f0e28f923 | 2026-01-05T02:32:55.856790Z | false |
voronkovich/sberbank-acquiring-client | https://github.com/voronkovich/sberbank-acquiring-client/blob/5488b82c58451484519feebf9f52888f0e28f923/src/Currency.php | src/Currency.php | <?php
declare(strict_types=1);
namespace Voronkovich\SberbankAcquiring;
/**
* Helper class with currencies codes (ISO 4217).
*
* @author Oleg Voronkovich <oleg-voronkovich@yandex.ru>
* @see https://en.wikipedia.org/wiki/ISO_4217
*/
class Currency
{
const EUR = 978;
const RUB = 643;
const UAH = 980;
... | php | MIT | 5488b82c58451484519feebf9f52888f0e28f923 | 2026-01-05T02:32:55.856790Z | false |
voronkovich/sberbank-acquiring-client | https://github.com/voronkovich/sberbank-acquiring-client/blob/5488b82c58451484519feebf9f52888f0e28f923/src/OrderStatus.php | src/OrderStatus.php | <?php
declare(strict_types=1);
namespace Voronkovich\SberbankAcquiring;
/**
* Order statuses.
*
* @author Oleg Voronkovich <oleg-voronkovich@yandex.ru>
*/
class OrderStatus
{
// An order was successfully registered, but is'nt paid yet
const CREATED = 0;
// An order's amount was successfully holded (... | php | MIT | 5488b82c58451484519feebf9f52888f0e28f923 | 2026-01-05T02:32:55.856790Z | false |
voronkovich/sberbank-acquiring-client | https://github.com/voronkovich/sberbank-acquiring-client/blob/5488b82c58451484519feebf9f52888f0e28f923/src/ClientFactory.php | src/ClientFactory.php | <?php
declare(strict_types=1);
namespace Voronkovich\SberbankAcquiring;
/**
* Factory for creating API clients.
*
* @author Oleg Voronkovich <oleg-voronkovich@yandex.ru>
*/
class ClientFactory
{
/**
* Create a client for the Sberbank production environment.
*
* @param array $options Client opt... | php | MIT | 5488b82c58451484519feebf9f52888f0e28f923 | 2026-01-05T02:32:55.856790Z | false |
voronkovich/sberbank-acquiring-client | https://github.com/voronkovich/sberbank-acquiring-client/blob/5488b82c58451484519feebf9f52888f0e28f923/src/HttpClient/Psr18Adapter.php | src/HttpClient/Psr18Adapter.php | <?php
declare(strict_types=1);
namespace Voronkovich\SberbankAcquiring\HttpClient;
use Psr\Http\Client\ClientInterface;
use Psr\Http\Message\RequestFactoryInterface;
use Psr\Http\Message\StreamFactoryInterface;
/**
* Adapter for the PSR-18 compatible HTTP client.
*
* @author Oleg Voronkovich <oleg-voronkovich@ya... | php | MIT | 5488b82c58451484519feebf9f52888f0e28f923 | 2026-01-05T02:32:55.856790Z | false |
voronkovich/sberbank-acquiring-client | https://github.com/voronkovich/sberbank-acquiring-client/blob/5488b82c58451484519feebf9f52888f0e28f923/src/HttpClient/HttpClientInterface.php | src/HttpClient/HttpClientInterface.php | <?php
declare(strict_types=1);
namespace Voronkovich\SberbankAcquiring\HttpClient;
use Voronkovich\SberbankAcquiring\Exception\NetworkException;
/**
* Simple HTTP client interface.
*
* @author Oleg Voronkovich <oleg-voronkovich@yandex.ru>
*/
interface HttpClientInterface
{
const METHOD_GET = 'GET';
cons... | php | MIT | 5488b82c58451484519feebf9f52888f0e28f923 | 2026-01-05T02:32:55.856790Z | false |
voronkovich/sberbank-acquiring-client | https://github.com/voronkovich/sberbank-acquiring-client/blob/5488b82c58451484519feebf9f52888f0e28f923/src/HttpClient/GuzzleAdapter.php | src/HttpClient/GuzzleAdapter.php | <?php
declare(strict_types=1);
namespace Voronkovich\SberbankAcquiring\HttpClient;
use GuzzleHttp\ClientInterface;
use Psr\Http\Message\ResponseInterface;
/**
* Adapter for the guzzle.
*
* @author Oleg Voronkovich <oleg-voronkovich@yandex.ru>
* @see http://docs.guzzlephp.org/en/latest/
*/
class GuzzleAdapter i... | php | MIT | 5488b82c58451484519feebf9f52888f0e28f923 | 2026-01-05T02:32:55.856790Z | false |
voronkovich/sberbank-acquiring-client | https://github.com/voronkovich/sberbank-acquiring-client/blob/5488b82c58451484519feebf9f52888f0e28f923/src/HttpClient/SymfonyAdapter.php | src/HttpClient/SymfonyAdapter.php | <?php
declare(strict_types=1);
namespace Voronkovich\SberbankAcquiring\HttpClient;
use Symfony\Contracts\HttpClient\HttpClientInterface as ClientInterface;
/**
* Adapter for the Symfony's HTTP client.
*
* @author Oleg Voronkovich <oleg-voronkovich@yandex.ru>
* @see https://symfony.com/doc/current/http_client.ht... | php | MIT | 5488b82c58451484519feebf9f52888f0e28f923 | 2026-01-05T02:32:55.856790Z | false |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.