Passed
Push — master ( 2d4f15...ed59ee )
by Christian
02:15
created
src/Resolvers/CloudFlare.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -68,10 +68,10 @@  discard block
 block discarded – undo
68 68
             }
69 69
 
70 70
             $promises[] = $this->doAsyncApiQuery(['name' => (string)$hostname, 'type' => $type])
71
-                ->then(function (Response $response) use (&$results) {
71
+                ->then(function(Response $response) use (&$results) {
72 72
                     $results = array_merge(
73 73
                         $results,
74
-                        $this->parseResult((array) json_decode((string)$response->getBody(), true))
74
+                        $this->parseResult((array)json_decode((string)$response->getBody(), true))
75 75
                     );
76 76
                 });
77 77
         }
@@ -88,7 +88,7 @@  discard block
 block discarded – undo
88 88
 
89 89
     private function doApiQuery(array $query = []) : DNSRecordCollection
90 90
     {
91
-        $decoded = (array) json_decode((string)$this->doAsyncApiQuery($query)->wait()->getBody(), true);
91
+        $decoded = (array)json_decode((string)$this->doAsyncApiQuery($query)->wait()->getBody(), true);
92 92
 
93 93
         return $this->mapResults($this->mapper, $this->parseResult($decoded));
94 94
     }
Please login to merge, or discard this patch.
src/Resolvers/ResolverAbstract.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -28,7 +28,7 @@  discard block
 block discarded – undo
28 28
     {
29 29
         if ($this->name === null) {
30 30
             $explodedClass = explode('\\', get_class($this));
31
-            $this->name = (string) array_pop($explodedClass);
31
+            $this->name = (string)array_pop($explodedClass);
32 32
         }
33 33
 
34 34
         return $this->name;
@@ -108,7 +108,7 @@  discard block
 block discarded – undo
108 108
     public function mapResults(MapperInterface $mapper, array $results) : DNSRecordCollection
109 109
     {
110 110
         $collection = new DNSRecordCollection();
111
-        array_map(function (array $fields) use (&$collection, $mapper) {
111
+        array_map(function(array $fields) use (&$collection, $mapper) {
112 112
             try {
113 113
                 $collection[] = $mapper->mapFields($fields)->toDNSRecord();
114 114
             } catch (InvalidArgumentException $e) {
Please login to merge, or discard this patch.