Completed
Push — master ( 7c6001...071064 )
by Arnold
05:03
created
src/DataEnricher.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -45,7 +45,7 @@  discard block
 block discarded – undo
45 45
     public function __construct($source)
46 46
     {
47 47
         if (!is_object($source)) {
48
-            throw new \Exception("Data enricher on works on an object, not on a " . gettype($source));
48
+            throw new \Exception("Data enricher on works on an object, not on a ".gettype($source));
49 49
         }
50 50
         
51 51
         $this->source = $source;
@@ -123,7 +123,7 @@  discard block
 block discarded – undo
123 123
      */
124 124
     protected function hasProcessorProperty($value)
125 125
     {
126
-        $processorProps = array_map(function ($processor) {
126
+        $processorProps = array_map(function($processor) {
127 127
             return $processor->getProperty();
128 128
         }, $this->processors);
129 129
         
Please login to merge, or discard this patch.
src/DataEnricher/Processor/Http.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -24,7 +24,7 @@  discard block
 block discarded – undo
24 24
     {
25 25
         $url = $node->getInstruction($this);
26 26
         
27
-        $type = (is_object($url) ? get_class($url) . ' ' : '') . gettype($url);
27
+        $type = (is_object($url) ? get_class($url).' ' : '').gettype($url);
28 28
         if (!assert(is_string($url), "Expected '{$this->property}' to be a string, but got a $type")) {
29 29
             return null;
30 30
         }
@@ -45,7 +45,7 @@  discard block
 block discarded – undo
45 45
         }
46 46
 
47 47
         $client = new Client(['http_errors' => false]);
48
-        $promise = $client->getAsync($url)->then(function (Response $response) use ($node) {
48
+        $promise = $client->getAsync($url)->then(function(Response $response) use ($node) {
49 49
             $this->applyResult($node, $response);
50 50
         });
51 51
         
Please login to merge, or discard this patch.
src/DataEnricher/Processor/Merge.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -25,7 +25,7 @@
 block discarded – undo
25 25
         
26 26
         if (isset($list) && !is_array($list)) {
27 27
             throw new \Exception("Unable to apply {$this->property} processing instruction:"
28
-                . " Expected an array, got a " . (is_object($list) ? get_class($list) . ' ' : '') . gettype($list));
28
+                . " Expected an array, got a ".(is_object($list) ? get_class($list).' ' : '').gettype($list));
29 29
         }
30 30
         
31 31
         $result = $this->merge((array)$list);
Please login to merge, or discard this patch.