composer update

This commit is contained in:
Manish Verma
2018-12-05 10:50:52 +05:30
parent 9eabcacfa7
commit 4addd1e9c6
3328 changed files with 156676 additions and 138988 deletions

19
vendor/sebastian/resource-operations/build/generate.php vendored Normal file → Executable file
View File

@@ -1,5 +1,5 @@
#!/usr/bin/env php
<?php
<?php declare(strict_types=1);
/*
* This file is part of resource-operations.
*
@@ -9,13 +9,17 @@
* file that was distributed with this source code.
*/
$functions = require __DIR__ . '/arginfo.php';
$functions = require __DIR__ . '/FunctionSignatureMap.php';
$resourceFunctions = [];
foreach ($functions as $function => $arguments) {
foreach ($arguments as $argument) {
if ($argument == 'resource') {
$resourceFunctions[] = $function;
if (strpos($argument, '?') === 0) {
$argument = substr($argument, 1);
}
if ($argument === 'resource') {
$resourceFunctions[] = explode('\'', $function)[0];
}
}
}
@@ -24,7 +28,7 @@ $resourceFunctions = array_unique($resourceFunctions);
sort($resourceFunctions);
$buffer = <<<EOT
<?php
<?php declare(strict_types=1);
/*
* This file is part of resource-operations.
*
@@ -33,15 +37,14 @@ $buffer = <<<EOT
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
namespace SebastianBergmann\ResourceOperations;
class ResourceOperations
final class ResourceOperations
{
/**
* @return string[]
*/
public static function getFunctions()
public static function getFunctions(): array
{
return [