Passed
Pull Request — master (#39)
by Adam
02:20
created
src/Response/LogsResponse.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -15,7 +15,7 @@
 block discarded – undo
15 15
      */
16 16
     public function __construct($logs)
17 17
     {
18
-        parent::__construct(array_map(function ($log) {
18
+        parent::__construct(array_map(function($log) {
19 19
             return new LogResponse($log);
20 20
         }, $logs), self::ARRAY_AS_PROPS);
21 21
     }
Please login to merge, or discard this patch.
src/Response/TagsResponse.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -15,7 +15,7 @@
 block discarded – undo
15 15
      */
16 16
     public function __construct($tags)
17 17
     {
18
-        parent::__construct(array_map(function ($tag) {
18
+        parent::__construct(array_map(function($tag) {
19 19
             return new TagResponse($tag);
20 20
         }, $tags), self::ARRAY_AS_PROPS);
21 21
     }
Please login to merge, or discard this patch.
src/Response/InsightModulesResponse.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -15,7 +15,7 @@
 block discarded – undo
15 15
      */
16 16
     public function __construct($modules)
17 17
     {
18
-        parent::__construct(array_map(function ($module) {
18
+        parent::__construct(array_map(function($module) {
19 19
             return new InsightModuleResponse($module);
20 20
         }, $modules), self::ARRAY_AS_PROPS);
21 21
     }
Please login to merge, or discard this patch.
src/Response/MetricsResponse.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -15,7 +15,7 @@
 block discarded – undo
15 15
      */
16 16
     public function __construct($metrics)
17 17
     {
18
-        parent::__construct(array_map(function ($metric) {
18
+        parent::__construct(array_map(function($metric) {
19 19
             return new MetricResponse($metric);
20 20
         }, $metrics), self::ARRAY_AS_PROPS);
21 21
     }
Please login to merge, or discard this patch.
src/Response/IdentityProvidersResponse.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -15,7 +15,7 @@
 block discarded – undo
15 15
      */
16 16
     public function __construct($idps)
17 17
     {
18
-        parent::__construct(array_map(function ($idp) {
18
+        parent::__construct(array_map(function($idp) {
19 19
             return new IdentityProviderResponse($idp);
20 20
         }, $idps), self::ARRAY_AS_PROPS);
21 21
     }
Please login to merge, or discard this patch.
src/Response/InsightAlertsResponse.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -15,7 +15,7 @@
 block discarded – undo
15 15
      */
16 16
     public function __construct($alerts)
17 17
     {
18
-        parent::__construct(array_map(function ($alert) {
18
+        parent::__construct(array_map(function($alert) {
19 19
             return new InsightAlertResponse($alert);
20 20
         }, $alerts), self::ARRAY_AS_PROPS);
21 21
     }
Please login to merge, or discard this patch.
src/Response/IdesResponse.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -15,7 +15,7 @@
 block discarded – undo
15 15
      */
16 16
     public function __construct($ides)
17 17
     {
18
-        parent::__construct(array_map(function ($ide) {
18
+        parent::__construct(array_map(function($ide) {
19 19
             return new IdeResponse($ide);
20 20
         }, $ides), self::ARRAY_AS_PROPS);
21 21
     }
Please login to merge, or discard this patch.
src/Connector/Client.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -67,7 +67,7 @@
 block discarded – undo
67 67
         try {
68 68
             return $this->processResponse($response);
69 69
         } catch (ApiErrorException $e) {
70
-            exit($e->getErrorType() . ' error: ' .  $e->getMessage());
70
+            exit($e->getErrorType().' error: '.$e->getMessage());
71 71
         }
72 72
     }
73 73
 
Please login to merge, or discard this patch.
src/Exception/ApiErrorException.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -31,7 +31,7 @@  discard block
 block discarded – undo
31 31
      */
32 32
     public function __toString()
33 33
     {
34
-        return __CLASS__ . ": [{$this->errorType}]: {$this->message}\n";
34
+        return __CLASS__.": [{$this->errorType}]: {$this->message}\n";
35 35
     }
36 36
 
37 37
     /**
@@ -45,7 +45,7 @@  discard block
 block discarded – undo
45 45
         if (is_array($object->message) || is_object($object->message)) {
46 46
             $output = '';
47 47
             foreach ($object->message as $message) {
48
-                $output .= $message . PHP_EOL;
48
+                $output .= $message.PHP_EOL;
49 49
             }
50 50
             $this->message = $output;
51 51
         } else {
Please login to merge, or discard this patch.