Completed
Pull Request — master (#8)
by Omid
02:46 queued 18s
created
src/MovingImage/Client/VMPro/ApiClient/Guzzle5ApiClient.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -20,7 +20,7 @@
 block discarded – undo
20 20
      * @param string $uri
21 21
      * @param array  $options
22 22
      *
23
-     * @return \GuzzleHttp\Message\ResponseInterface
23
+     * @return \Psr\Http\Message\ResponseInterface
24 24
      */
25 25
     protected function _doRequest($method, $uri, $options)
26 26
     {
Please login to merge, or discard this patch.
src/MovingImage/Client/VMPro/Middleware/TokenMiddleware.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -46,7 +46,7 @@
 block discarded – undo
46 46
      */
47 47
     public function __invoke(callable $handler)
48 48
     {
49
-        return function (
49
+        return function(
50 50
             RequestInterface $request,
51 51
             array $options
52 52
         ) use ($handler) {
Please login to merge, or discard this patch.
src/MovingImage/Util/AccessorTrait.php 1 patch
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -15,11 +15,11 @@  discard block
 block discarded – undo
15 15
     public function __call($methodName, $args) {
16 16
         // are we getting or setting?
17 17
         if (preg_match('~^(set|get|is)([A-Z])(.*)$~', $methodName, $matches)) {
18
-            $property = strtolower($matches[2]) . $matches[3];
18
+            $property = strtolower($matches[2]).$matches[3];
19 19
             if (!property_exists($this, $property)) {
20
-                throw new \InvalidArgumentException('Property ' . $property . ' is not exist');
20
+                throw new \InvalidArgumentException('Property '.$property.' is not exist');
21 21
             }
22
-            switch($matches[1]) {
22
+            switch ($matches[1]) {
23 23
                 case 'set':
24 24
                     $this->checkArguments($args, 1, 1, $methodName);
25 25
                     return $this->set($property, $args[0]);
@@ -28,7 +28,7 @@  discard block
 block discarded – undo
28 28
                     $this->checkArguments($args, 0, 0, $methodName);
29 29
                     return $this->get($property);
30 30
                 case 'default':
31
-                    throw new \BadMethodCallException('Method ' . $methodName . ' is not exist');
31
+                    throw new \BadMethodCallException('Method '.$methodName.' is not exist');
32 32
             }
33 33
         }
34 34
 
@@ -63,7 +63,7 @@  discard block
 block discarded – undo
63 63
     protected function checkArguments(array $args, $min, $max, $methodName) {
64 64
         $argc = count($args);
65 65
         if ($argc < $min || $argc > $max) {
66
-            throw new \BadMethodCallException('Method ' . $methodName . ' is not exist');
66
+            throw new \BadMethodCallException('Method '.$methodName.' is not exist');
67 67
         }
68 68
     }
69 69
 
Please login to merge, or discard this patch.