Skip to content

Commit eefb3c9

Browse files
committed
Merge pull request #117 from spekulatius/patch-1
fixing up readme, especially broken example code.
2 parents 0115edf + 9559d7f commit eefb3c9

File tree

1 file changed

+15
-16
lines changed

1 file changed

+15
-16
lines changed

README.md

Lines changed: 15 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -90,12 +90,12 @@ $config = [
9090

9191
'config' => [
9292
'minImageWidth' => 16,
93-
'minImageHeight' => 16,
94-
'imagesBlacklist' => null,
95-
'getBiggerImage' => false,
96-
'getBiggerIcon' => false,
93+
'minImageHeight' => 16,
94+
'imagesBlacklist' => null,
95+
'getBiggerImage' => false,
96+
'getBiggerIcon' => false,
9797
]
98-
]
98+
]
9999
];
100100
```
101101

@@ -146,11 +146,10 @@ The resolver configuration is defined under the "resolver" key and it has two op
146146
* config: The options passed to the class. If you use the default curl class, the config are the same than the [curl_setopt PHP function](http://php.net/manual/en/function.curl-setopt.php)
147147

148148
```php
149-
150149
// CURL
151150
$config = [
152151
'resolver' => [
153-
'class' => 'Embed\\RequestResolvers\\Curl' // The default resolver used
152+
'class' => 'Embed\\RequestResolvers\\Curl', // The default resolver used
154153

155154
'config' => [
156155
CURLOPT_MAXREDIRS => 20,
@@ -195,7 +194,7 @@ Like the resolver class, you can provide your own image class (it must implement
195194
//CURL
196195
$config = [
197196
'image' => [
198-
'class' => 'Embed\\ImageInfo\\Curl' //The default imageInfo used
197+
'class' => 'Embed\\ImageInfo\\Curl', //The default imageInfo used
199198

200199
'config' => [
201200
CURLOPT_MAXREDIRS => 20,
@@ -231,17 +230,17 @@ $config = [
231230

232231
```php
233232
$config = [
234-
'adapter' => [
235-
'config' => [
236-
'minImageWidth' => 16,
233+
'adapter' => [
234+
'config' => [
235+
'minImageWidth' => 16,
237236
'minImageHeight' => 16,
238237
'imagesBlacklist' => [
239238
'http://example.com/full/path/to/image.jpg',
240239
'http?://test.*/*.png/',
241240
'*/bad_image.gif'
242241
]
243-
]
244-
],
242+
]
243+
],
245244
'providers' => [
246245
'oembed' => [
247246
'parameters' => [],
@@ -260,9 +259,9 @@ $config = [
260259
CURLOPT_MAXREDIRS => 3
261260
]
262261
]
263-
'image' => [
264-
'class' => 'App\\MyImageInfoClass'
265-
]
262+
'image' => [
263+
'class' => 'App\\MyImageInfoClass'
264+
]
266265
];
267266
```
268267

0 commit comments

Comments
 (0)