web/ckfinder/core/connector/php/vendor/aws/aws-sdk-php/src/S3/BatchDelete.php 2 locations
|
@@ 152-157 (lines=6) @@
|
| 149 |
|
$this->bucket = $bucket; |
| 150 |
|
$this->promiseCreator = $promiseFn; |
| 151 |
|
|
| 152 |
|
if (isset($options['before'])) { |
| 153 |
|
if (!is_callable($options['before'])) { |
| 154 |
|
throw new \InvalidArgumentException('before must be callable'); |
| 155 |
|
} |
| 156 |
|
$this->before = $options['before']; |
| 157 |
|
} |
| 158 |
|
|
| 159 |
|
if (isset($options['batch_size'])) { |
| 160 |
|
if ($options['batch_size'] <= 0) { |
|
@@ 159-164 (lines=6) @@
|
| 156 |
|
$this->before = $options['before']; |
| 157 |
|
} |
| 158 |
|
|
| 159 |
|
if (isset($options['batch_size'])) { |
| 160 |
|
if ($options['batch_size'] <= 0) { |
| 161 |
|
throw new \InvalidArgumentException('batch_size is not > 0'); |
| 162 |
|
} |
| 163 |
|
$this->batchSize = min($options['batch_size'], 1000); |
| 164 |
|
} |
| 165 |
|
} |
| 166 |
|
|
| 167 |
|
private function enqueue(array $obj) |
web/ckfinder/core/connector/php/vendor/aws/aws-sdk-php/src/S3/Transfer.php 1 location
|
@@ 121-126 (lines=6) @@
|
| 118 |
|
} |
| 119 |
|
|
| 120 |
|
// Handle "before" callback option. |
| 121 |
|
if (isset($options['before'])) { |
| 122 |
|
$this->before = $options['before']; |
| 123 |
|
if (!is_callable($this->before)) { |
| 124 |
|
throw new \InvalidArgumentException('before must be a callable.'); |
| 125 |
|
} |
| 126 |
|
} |
| 127 |
|
|
| 128 |
|
// Handle "debug" option. |
| 129 |
|
if (isset($options['debug'])) { |
web/ckfinder/core/connector/php/vendor/guzzlehttp/guzzle/src/Client.php 1 location
|
@@ 64-68 (lines=5) @@
|
| 61 |
|
*/ |
| 62 |
|
public function __construct(array $config = []) |
| 63 |
|
{ |
| 64 |
|
if (!isset($config['handler'])) { |
| 65 |
|
$config['handler'] = HandlerStack::create(); |
| 66 |
|
} elseif (!is_callable($config['handler'])) { |
| 67 |
|
throw new \InvalidArgumentException('handler must be a callable'); |
| 68 |
|
} |
| 69 |
|
|
| 70 |
|
// Convert the base_uri to a UriInterface |
| 71 |
|
if (isset($config['base_uri'])) { |
web/ckfinder/core/connector/php/vendor/guzzlehttp/guzzle/src/Handler/StreamHandler.php 1 location
|
@@ 281-283 (lines=3) @@
|
| 278 |
|
$params = []; |
| 279 |
|
$context = $this->getDefaultContext($request, $options); |
| 280 |
|
|
| 281 |
|
if (isset($options['on_headers']) && !is_callable($options['on_headers'])) { |
| 282 |
|
throw new \InvalidArgumentException('on_headers must be callable'); |
| 283 |
|
} |
| 284 |
|
|
| 285 |
|
if (!empty($options)) { |
| 286 |
|
foreach ($options as $key => $value) { |