@@ -130,6 +130,9 @@ |
||
130 | 130 | return $this->requestBody; |
131 | 131 | } |
132 | 132 | |
133 | + /** |
|
134 | + * @param string $type |
|
135 | + */ |
|
133 | 136 | public function addFeature($type, $maxResults = 1) |
134 | 137 | { |
135 | 138 |
@@ -106,7 +106,7 @@ |
||
106 | 106 | $data = file_get_contents($path); |
107 | 107 | // For URLs, we have to wait till we've got the contents. |
108 | 108 | if (strlen($data) > $this->imageMaxSize) { |
109 | - throw new LimitExceededException(sprintf($msg, $path, $size, $this->imageMaxSize), 2); |
|
109 | + throw new LimitExceededException(sprintf($msg, $path, $size, $this->imageMaxSize), 2); |
|
110 | 110 | } |
111 | 111 | return base64_encode($data); |
112 | 112 | } |
@@ -213,7 +213,7 @@ |
||
213 | 213 | throw new Exception("Images is can't empty.", 1); |
214 | 214 | } |
215 | 215 | |
216 | - $url = $this->endpoint.$this->version."/images:$apiMethod?key=".$this->key; |
|
216 | + $url = $this->endpoint . $this->version . "/images:$apiMethod?key=" . $this->key; |
|
217 | 217 | return $this->requestServer($url, $this->requestBody); |
218 | 218 | } |
219 | 219 |
@@ -3,8 +3,8 @@ |
||
3 | 3 | * This is the function example script. Load it in your browser to see the result. |
4 | 4 | */ |
5 | 5 | |
6 | -require_once __DIR__."/../vendor/autoload.php"; |
|
7 | -require_once __DIR__."/config.php"; |
|
6 | +require_once __DIR__ . "/../vendor/autoload.php"; |
|
7 | +require_once __DIR__ . "/config.php"; |
|
8 | 8 | |
9 | 9 | // Make sure config.php sets the $key variable. |
10 | 10 | if (empty($key) === true) { |