Completed
Push — master ( b017f2...0863fe )
by Sam
02:51
created
src/GoogleCloudVision.php 3 patches
Doc Comments   +3 added lines patch added patch discarded remove patch
@@ -130,6 +130,9 @@
 block discarded – undo
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
 
Please login to merge, or discard this patch.
Indentation   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -106,7 +106,7 @@
 block discarded – undo
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
     }
Please login to merge, or discard this patch.
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -213,7 +213,7 @@
 block discarded – undo
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
 
Please login to merge, or discard this patch.
examples/index.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -3,8 +3,8 @@
 block discarded – undo
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) {
Please login to merge, or discard this patch.