Commit ce760af3 authored by Jean-Philippe Metivier's avatar Jean-Philippe Metivier
Browse files

remove old vendor

parent f5a81935
Loading
Loading
Loading
Loading

vendor-old/autoload.php

deleted100644 → 0
+0 −12
Changes for vendor-old/autoload.php: 0 added lines, 12 removed lines.
Original line number Diff line number Diff line
<?php

// autoload.php @generated by Composer

if (PHP_VERSION_ID < 50600) {
    echo 'Composer 2.3.0 dropped support for autoloading on PHP <5.6 and you are running '.PHP_VERSION.', please upgrade PHP or use Composer 2.2 LTS via "composer self-update --2.2". Aborting.'.PHP_EOL;
    exit(1);
}

require_once __DIR__ . '/composer/autoload_real.php';

return ComposerAutoloaderInitb5f41795f46bdbbaf7d64e6437789311::getLoader();
+0 −11
Changes for vendor-old/beberlei/assert/LICENSE: 0 added lines, 11 removed lines.
Original line number Diff line number Diff line
Copyright (c) 2011-2013, Benjamin Eberlei
All rights reserved.

Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions are met:

- Redistributions of source code must retain the above copyright notice, this
  list of conditions and the following disclaimer.
- Redistributions in binary form must reproduce the above copyright notice,
  this list of conditions and the following disclaimer in the documentation
  and/or other materials provided with the distribution.
+0 −54
Changes for vendor-old/beberlei/assert/composer.json: 0 added lines, 54 removed lines.
Original line number Diff line number Diff line
{
  "name": "beberlei/assert",
  "description": "Thin assertion library for input validation in business models.",
  "authors": [
    {
      "name": "Benjamin Eberlei",
      "email": "kontakt@beberlei.de",
      "role": "Lead Developer"
    },
    {
      "name": "Richard Quadling",
      "email": "rquadling@gmail.com",
      "role": "Collaborator"
    }
  ],
  "license": "BSD-2-Clause",
  "keywords": [
    "assert",
    "assertion",
    "validation"
  ],
  "config": {
    "sort-packages": true
  },
  "require": {
    "php": ">=5.3",
    "ext-mbstring": "*"
  },
  "require-dev": {
    "friendsofphp/php-cs-fixer": "^2.1.1",
    "phpunit/phpunit": "^4.8.35|^5.7"
  },
  "autoload": {
    "psr-4": {
      "Assert\\": "lib/Assert"
    },
    "files": [
      "lib/Assert/functions.php"
    ]
  },
  "autoload-dev": {
    "psr-4": {
      "Assert\\Tests\\": "tests/Assert/Tests"
    },
    "files": [
      "tests/Assert/Tests/Fixtures/functions.php"
    ]
  },
  "scripts": {
    "assert:generate-docs": "php bin/generate_method_docs.php",
    "assert:cs-lint": "php-cs-fixer fix --diff -vvv --dry-run",
    "assert:cs-fix": "php-cs-fixer fix . -vvv || true"
  }
}
+0 −99
Changes for vendor-old/beberlei/assert/lib/Assert/Assert.php: 0 added lines, 99 removed lines.
Original line number Diff line number Diff line
<?php

/**
 * Assert
 *
 * LICENSE
 *
 * This source file is subject to the MIT license that is bundled
 * with this package in the file LICENSE.txt.
 * If you did not receive a copy of the license and are unable to
 * obtain it through the world-wide-web, please send an email
 * to kontakt@beberlei.de so I can send you a copy immediately.
 */

namespace Assert;

/**
 * AssertionChain factory.
 */
abstract class Assert
{
    /** @var string */
    protected static $lazyAssertionExceptionClass = 'Assert\LazyAssertionException';

    /** @var string */
    protected static $assertionClass = 'Assert\Assertion';

    /**
     * Start validation on a value, returns {@link AssertionChain}.
     *
     * The invocation of this method starts an assertion chain
     * that is happening on the passed value.
     *
     * @example
     *
     *  Assert::that($value)->notEmpty()->integer();
     *  Assert::that($value)->nullOr()->string()->startsWith("Foo");
     *
     * The assertion chain can be stateful, that means be careful when you reuse
     * it. You should never pass around the chain.
     *
     * @param mixed  $value
     * @param string $defaultMessage
     * @param string $defaultPropertyPath
     *
     * @return \Assert\AssertionChain
     */
    public static function that($value, $defaultMessage = null, $defaultPropertyPath = null)
    {
        $assertionChain = new AssertionChain($value, $defaultMessage, $defaultPropertyPath);

        return $assertionChain
            ->setAssertionClassName(static::$assertionClass)
        ;
    }

    /**
     * Start validation on a set of values, returns {@link AssertionChain}.
     *
     * @param mixed  $values
     * @param string $defaultMessage
     * @param string $defaultPropertyPath
     *
     * @return \Assert\AssertionChain
     */
    public static function thatAll($values, $defaultMessage = null, $defaultPropertyPath = null)
    {
        return static::that($values, $defaultMessage, $defaultPropertyPath)->all();
    }

    /**
     * Start validation and allow NULL, returns {@link AssertionChain}.
     *
     * @param mixed  $value
     * @param string $defaultMessage
     * @param string $defaultPropertyPath
     *
     * @return \Assert\AssertionChain
     */
    public static function thatNullOr($value, $defaultMessage = null, $defaultPropertyPath = null)
    {
        return static::that($value, $defaultMessage, $defaultPropertyPath)->nullOr();
    }

    /**
     * Create a lazy assertion object.
     *
     * @return \Assert\LazyAssertion
     */
    public static function lazy()
    {
        $lazyAssertion = new LazyAssertion();

        return $lazyAssertion
            ->setAssertClass(\get_called_class())
            ->setExceptionClass(static::$lazyAssertionExceptionClass)
        ;
    }
}
+0 −2603

File deleted.

Preview size limit exceeded, changes collapsed.

Loading