Skip to content

Commit

Permalink
Update libs
Browse files Browse the repository at this point in the history
  • Loading branch information
collectiveaccess committed Apr 15, 2019
1 parent 2239762 commit a051f2f
Show file tree
Hide file tree
Showing 17 changed files with 200 additions and 116 deletions.
46 changes: 23 additions & 23 deletions composer.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion vendor/autoload.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,4 @@

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

return ComposerAutoloaderInite74cd27e1feadfb3f0d642944080e956::getLoader();
return ComposerAutoloaderInitd0a456687b3dab21148a043296334846::getLoader();
1 change: 1 addition & 0 deletions vendor/clue/stream-filter/.travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ php:
- 5.6
- 7.0
- 7.1
- 7.2
- hhvm # ignore errors, see below

# lock distro so new future defaults will not break the build
Expand Down
9 changes: 9 additions & 0 deletions vendor/clue/stream-filter/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,14 @@
# Changelog

## 1.4.1 (2019-04-09)

* Fix: Check if the function is declared before declaring it.
(#23 by @Niko9911)

* Improve test suite to also test against PHP 7.2 and
add test for base64 encoding and decoding filters.
(#22 by @arubacao and #25 by @Nyholm and @clue)

## 1.4.0 (2017-08-18)

* Feature / Fix: The `fun()` function does not pass filter parameter `null`
Expand Down
24 changes: 14 additions & 10 deletions vendor/clue/stream-filter/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -27,13 +27,13 @@ These filters can be used to easily and efficiently perform various transformati
* and much more.

But let's face it:
Its API is [*difficult to work with*](http://php.net/manual/en/php-user-filter.filter.php)
and its documentation is [*subpar*](http://stackoverflow.com/questions/27103269/what-is-a-bucket-brigade).
Its API is [*difficult to work with*](https://www.php.net/manual/en/php-user-filter.filter.php)
and its documentation is [*subpar*](https://stackoverflow.com/questions/27103269/what-is-a-bucket-brigade).
This combined means its powerful features are often neglected.

This project aims to make these features more accessible to a broader audience.
* **Lightweight, SOLID design** -
Provides a thin abstraction that is [*just good enough*](http://en.wikipedia.org/wiki/Principle_of_good_enough)
Provides a thin abstraction that is [*just good enough*](https://en.wikipedia.org/wiki/Principle_of_good_enough)
and does not get in your way.
Custom filters require trivial effort.
* **Good test coverage** -
Expand Down Expand Up @@ -141,7 +141,7 @@ Filter\append($stream, function ($chunk) {
```

> Note that once a filter has been added to stream, the stream can no longer be passed to
> [`stream_select()`](http://php.net/manual/en/function.stream-select.php)
> [`stream_select()`](https://www.php.net/manual/en/function.stream-select.php)
> (and family).
>
> > Warning: stream_select(): cannot cast a filtered stream on this system in {file} on line {line}
Expand Down Expand Up @@ -178,7 +178,7 @@ For more details about its behavior, see also the [`append()`](#append) function
The `fun($filter, $parameters = null)` function can be used to
create a filter function which uses the given built-in `$filter`.

PHP comes with a useful set of [built-in filters](http://php.net/manual/en/filters.php).
PHP comes with a useful set of [built-in filters](https://www.php.net/manual/en/filters.php).
Using `fun()` makes accessing these as easy as passing an input string to filter
and getting the filtered output string.

Expand All @@ -191,7 +191,7 @@ assert('test' === $fun($fun('test'));

Please note that not all filter functions may be available depending on installed
PHP extensions and the PHP version in use.
In particular, [HHVM](http://hhvm.com/) may not offer the same filter functions
In particular, [HHVM](https://hhvm.com/) may not offer the same filter functions
or parameters as Zend PHP.
Accessing an unknown filter function will result in a `RuntimeException`:

Expand All @@ -218,7 +218,7 @@ assert('<b>hi</b>' === $ret);
Under the hood, this function allocates a temporary memory stream, so it's
recommended to clean up the filter function after use.
Also, some filter functions (in particular the
[zlib compression filters](http://php.net/manual/en/filters.compression.php))
[zlib compression filters](https://www.php.net/manual/en/filters.compression.php))
may use internal buffers and may emit a final data chunk on close.
The filter function can be closed by invoking without any arguments:

Expand Down Expand Up @@ -263,10 +263,11 @@ Filter\remove($filter);
The recommended way to install this library is [through Composer](https://getcomposer.org).
[New to Composer?](https://getcomposer.org/doc/00-intro.md)

This project follows [SemVer](https://semver.org/).
This will install the latest supported version:

```bash
$ composer require clue/stream-filter:^1.4
$ composer require clue/stream-filter:^1.4.1
```

See also the [CHANGELOG](CHANGELOG.md) for details about version upgrades.
Expand All @@ -280,7 +281,7 @@ Older PHP versions may suffer from a number of inconsistencies documented above.
## Tests

To run the test suite, you first need to clone this repo and then install all
dependencies [through Composer](http://getcomposer.org):
dependencies [through Composer](https://getcomposer.org):

```bash
$ composer install
Expand All @@ -294,4 +295,7 @@ $ php vendor/bin/phpunit

## License

MIT
This project is released under the permissive [MIT license](LICENSE).

> Did you know that I offer custom development services and issuing invoices for
sponsorships of releases and for contributions? Contact me (@clue) for details.
2 changes: 1 addition & 1 deletion vendor/clue/stream-filter/composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,6 @@
},
"autoload": {
"psr-4": { "Clue\\StreamFilter\\": "src/" },
"files": [ "src/functions.php" ]
"files": [ "src/functions_include.php" ]
}
}
5 changes: 5 additions & 0 deletions vendor/clue/stream-filter/src/functions_include.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
<?php

if (!function_exists('Clue\\StreamFilter\\append')) {
require __DIR__ . '/functions.php';
}
17 changes: 17 additions & 0 deletions vendor/clue/stream-filter/tests/FunTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -41,4 +41,21 @@ public function testFunInvalid()
{
Filter\fun('unknown');
}

public function testFunInBase64()
{
$encode = Filter\fun('convert.base64-encode');
$decode = Filter\fun('convert.base64-decode');

$string = 'test';
$this->assertEquals(base64_encode($string), $encode($string) . $encode());
$this->assertEquals($string, $decode(base64_encode($string)));

$encode = Filter\fun('convert.base64-encode');
$decode = Filter\fun('convert.base64-decode');
$this->assertEquals($string, $decode($encode($string) . $encode()));

$encode = Filter\fun('convert.base64-encode');
$this->assertEquals(null, $encode());
}
}
2 changes: 1 addition & 1 deletion vendor/composer/autoload_files.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
'3e76f7f02b41af8cea96018933f6b7e3' => $vendorDir . '/hoa/protocol/Wrapper.php',
'7b11c4dc42b3b3023073cb14e519683c' => $vendorDir . '/ralouphie/getallheaders/src/getallheaders.php',
'a0edc8309cc5e1d60e3047b5df6b7052' => $vendorDir . '/guzzlehttp/psr7/src/functions_include.php',
'ddc0a4d7e61c0286f0f8593b1903e894' => $vendorDir . '/clue/stream-filter/src/functions.php',
'9c67151ae59aff4788964ce8eb2a0f43' => $vendorDir . '/clue/stream-filter/src/functions_include.php',
'8cff32064859f4559445b89279f3199c' => $vendorDir . '/php-http/message/src/filters.php',
'c964ee0ededf28c96ebd9db5099ef910' => $vendorDir . '/guzzlehttp/promises/src/functions_include.php',
'37a3dc5111fe8f707ab4c132ef1dbc62' => $vendorDir . '/guzzlehttp/guzzle/src/functions_include.php',
Expand Down
14 changes: 7 additions & 7 deletions vendor/composer/autoload_real.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

// autoload_real.php @generated by Composer

class ComposerAutoloaderInite74cd27e1feadfb3f0d642944080e956
class ComposerAutoloaderInitd0a456687b3dab21148a043296334846
{
private static $loader;

Expand All @@ -19,9 +19,9 @@ public static function getLoader()
return self::$loader;
}

spl_autoload_register(array('ComposerAutoloaderInite74cd27e1feadfb3f0d642944080e956', 'loadClassLoader'), true, true);
spl_autoload_register(array('ComposerAutoloaderInitd0a456687b3dab21148a043296334846', 'loadClassLoader'), true, true);
self::$loader = $loader = new \Composer\Autoload\ClassLoader();
spl_autoload_unregister(array('ComposerAutoloaderInite74cd27e1feadfb3f0d642944080e956', 'loadClassLoader'));
spl_autoload_unregister(array('ComposerAutoloaderInitd0a456687b3dab21148a043296334846', 'loadClassLoader'));

$includePaths = require __DIR__ . '/include_paths.php';
$includePaths[] = get_include_path();
Expand All @@ -31,7 +31,7 @@ public static function getLoader()
if ($useStaticLoader) {
require_once __DIR__ . '/autoload_static.php';

call_user_func(\Composer\Autoload\ComposerStaticInite74cd27e1feadfb3f0d642944080e956::getInitializer($loader));
call_user_func(\Composer\Autoload\ComposerStaticInitd0a456687b3dab21148a043296334846::getInitializer($loader));
} else {
$map = require __DIR__ . '/autoload_namespaces.php';
foreach ($map as $namespace => $path) {
Expand All @@ -52,19 +52,19 @@ public static function getLoader()
$loader->register(true);

if ($useStaticLoader) {
$includeFiles = Composer\Autoload\ComposerStaticInite74cd27e1feadfb3f0d642944080e956::$files;
$includeFiles = Composer\Autoload\ComposerStaticInitd0a456687b3dab21148a043296334846::$files;
} else {
$includeFiles = require __DIR__ . '/autoload_files.php';
}
foreach ($includeFiles as $fileIdentifier => $file) {
composerRequiree74cd27e1feadfb3f0d642944080e956($fileIdentifier, $file);
composerRequired0a456687b3dab21148a043296334846($fileIdentifier, $file);
}

return $loader;
}
}

function composerRequiree74cd27e1feadfb3f0d642944080e956($fileIdentifier, $file)
function composerRequired0a456687b3dab21148a043296334846($fileIdentifier, $file)
{
if (empty($GLOBALS['__composer_autoload_files'][$fileIdentifier])) {
require $file;
Expand Down
14 changes: 7 additions & 7 deletions vendor/composer/autoload_static.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,15 +4,15 @@

namespace Composer\Autoload;

class ComposerStaticInite74cd27e1feadfb3f0d642944080e956
class ComposerStaticInitd0a456687b3dab21148a043296334846
{
public static $files = array (
'e88992873b7765f9b5710cab95ba5dd7' => __DIR__ . '/..' . '/hoa/consistency/Prelude.php',
'320cde22f66dd4f5d3fd621d3e88b98f' => __DIR__ . '/..' . '/symfony/polyfill-ctype/bootstrap.php',
'3e76f7f02b41af8cea96018933f6b7e3' => __DIR__ . '/..' . '/hoa/protocol/Wrapper.php',
'7b11c4dc42b3b3023073cb14e519683c' => __DIR__ . '/..' . '/ralouphie/getallheaders/src/getallheaders.php',
'a0edc8309cc5e1d60e3047b5df6b7052' => __DIR__ . '/..' . '/guzzlehttp/psr7/src/functions_include.php',
'ddc0a4d7e61c0286f0f8593b1903e894' => __DIR__ . '/..' . '/clue/stream-filter/src/functions.php',
'9c67151ae59aff4788964ce8eb2a0f43' => __DIR__ . '/..' . '/clue/stream-filter/src/functions_include.php',
'8cff32064859f4559445b89279f3199c' => __DIR__ . '/..' . '/php-http/message/src/filters.php',
'c964ee0ededf28c96ebd9db5099ef910' => __DIR__ . '/..' . '/guzzlehttp/promises/src/functions_include.php',
'37a3dc5111fe8f707ab4c132ef1dbc62' => __DIR__ . '/..' . '/guzzlehttp/guzzle/src/functions_include.php',
Expand Down Expand Up @@ -884,11 +884,11 @@ class ComposerStaticInite74cd27e1feadfb3f0d642944080e956
public static function getInitializer(ClassLoader $loader)
{
return \Closure::bind(function () use ($loader) {
$loader->prefixLengthsPsr4 = ComposerStaticInite74cd27e1feadfb3f0d642944080e956::$prefixLengthsPsr4;
$loader->prefixDirsPsr4 = ComposerStaticInite74cd27e1feadfb3f0d642944080e956::$prefixDirsPsr4;
$loader->prefixesPsr0 = ComposerStaticInite74cd27e1feadfb3f0d642944080e956::$prefixesPsr0;
$loader->fallbackDirsPsr0 = ComposerStaticInite74cd27e1feadfb3f0d642944080e956::$fallbackDirsPsr0;
$loader->classMap = ComposerStaticInite74cd27e1feadfb3f0d642944080e956::$classMap;
$loader->prefixLengthsPsr4 = ComposerStaticInitd0a456687b3dab21148a043296334846::$prefixLengthsPsr4;
$loader->prefixDirsPsr4 = ComposerStaticInitd0a456687b3dab21148a043296334846::$prefixDirsPsr4;
$loader->prefixesPsr0 = ComposerStaticInitd0a456687b3dab21148a043296334846::$prefixesPsr0;
$loader->fallbackDirsPsr0 = ComposerStaticInitd0a456687b3dab21148a043296334846::$fallbackDirsPsr0;
$loader->classMap = ComposerStaticInitd0a456687b3dab21148a043296334846::$classMap;

}, null, ClassLoader::class);
}
Expand Down
Loading

0 comments on commit a051f2f

Please sign in to comment.