Completed
Pull Request — master (#22)
by
unknown
03:40
created
src/Exceptions/ApiException.php 2 patches
Indentation   +15 added lines, -15 removed lines patch added patch discarded remove patch
@@ -27,33 +27,33 @@
 block discarded – undo
27 27
      * MethodNotAllowedException|NotFoundException|RateLimitExceededException|UnsupportedAcceptHeaderException|
28 28
      * UnsupportedContentTypeException|ValidationException
29 29
      */
30
-     public static function create(RequestException $e) {
30
+        public static function create(RequestException $e) {
31 31
 
32
-         if($response = $e->getResponse()) {
32
+            if($response = $e->getResponse()) {
33 33
              
34
-             switch ($response->getStatusCode()) {
35
-                 case 400:
34
+                switch ($response->getStatusCode()) {
35
+                    case 400:
36 36
                      return new ValidationException($e);
37
-                 case 401:
37
+                    case 401:
38 38
                      return new AuthenticationException($e);
39
-                 case 403:
39
+                    case 403:
40 40
                      return new AccessDeniedException($e);
41
-                 case 404:
41
+                    case 404:
42 42
                      return new NotFoundException($e);
43
-                 case 405:
43
+                    case 405:
44 44
                      return new MethodNotAllowedException($e);
45
-                 case 406:
45
+                    case 406:
46 46
                      return new UnsupportedAcceptHeaderException($e);
47
-                 case 409:
47
+                    case 409:
48 48
                      return new ConflictingStateException($e);
49
-                 case 415:
49
+                    case 415:
50 50
                      return new UnsupportedContentTypeException($e);
51
-                 case 429:
51
+                    case 429:
52 52
                      return new RateLimitExceededException($e);
53
-             }
54
-         }
53
+                }
54
+            }
55 55
 
56
-         return new ApiException($e);
56
+            return new ApiException($e);
57 57
     }
58 58
 
59 59
     /**
Please login to merge, or discard this patch.
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -29,7 +29,7 @@
 block discarded – undo
29 29
      */
30 30
      public static function create(RequestException $e) {
31 31
 
32
-         if($response = $e->getResponse()) {
32
+         if ($response = $e->getResponse()) {
33 33
              
34 34
              switch ($response->getStatusCode()) {
35 35
                  case 400:
Please login to merge, or discard this patch.
src/Resources/Traits/FilterTrait.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -45,9 +45,9 @@
 block discarded – undo
45 45
      */
46 46
     public function filter(string $query)
47 47
     {
48
-        $end = '/search'.$this->endpoint();
48
+        $end = '/search' . $this->endpoint();
49 49
         $query = [
50
-            'query' => '"'.$query.'"',
50
+            'query' => '"' . $query . '"',
51 51
         ];
52 52
         return $this->api()->request('GET', $end, null, $query);
53 53
     }
Please login to merge, or discard this patch.