| @@ -24,7 +24,7 @@ discard block | ||
| 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 | ||
| 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 | |
| @@ -46,7 +46,7 @@ | ||
| 46 | 46 | $target = $target->getResult(); | 
| 47 | 47 | $this->applyNodeResults($target); | 
| 48 | 48 |          } elseif (is_array($target) || is_object($target)) { | 
| 49 | -            foreach ($target as &$value) {          | |
| 49 | +            foreach ($target as &$value) { | |
| 50 | 50 | $this->applyNodeResults($value); | 
| 51 | 51 | } | 
| 52 | 52 | } | 
| @@ -28,7 +28,7 @@ | ||
| 28 | 28 | $template = $node->getInstruction($this); | 
| 29 | 29 | |
| 30 | 30 |          if (!is_string($template) && !is_array($template) && !is_object($template)) { | 
| 31 | -            return trigger_error("Unable to parse given template of type: " . gettype($template), E_WARNING); | |
| 31 | +            return trigger_error("Unable to parse given template of type: ".gettype($template), E_WARNING); | |
| 32 | 32 | } | 
| 33 | 33 | |
| 34 | 34 | $result = $this->getParsedResult($template); | 
| @@ -92,7 +92,7 @@ discard block | ||
| 92 | 92 | } | 
| 93 | 93 | |
| 94 | 94 |          if (!is_object($source)) { | 
| 95 | -            throw new \Exception("Data enricher on works on an object, not on a " . gettype($source)); | |
| 95 | +            throw new \Exception("Data enricher on works on an object, not on a ".gettype($source)); | |
| 96 | 96 | } | 
| 97 | 97 | |
| 98 | 98 |          if (is_string($target)) { | 
| @@ -144,7 +144,7 @@ discard block | ||
| 144 | 144 | */ | 
| 145 | 145 | protected function hasProcessorProperty($value) | 
| 146 | 146 |      { | 
| 147 | -        $processorProps = array_map(function ($processor) { | |
| 147 | +        $processorProps = array_map(function($processor) { | |
| 148 | 148 | return $processor->getProperty(); | 
| 149 | 149 | }, $this->processors); | 
| 150 | 150 | |
| @@ -31,7 +31,7 @@ | ||
| 31 | 31 |      { | 
| 32 | 32 | $instruction = $node->getInstruction($this); | 
| 33 | 33 | |
| 34 | -        if(!isset($instruction->date)) { | |
| 34 | +        if (!isset($instruction->date)) { | |
| 35 | 35 | return; | 
| 36 | 36 | } | 
| 37 | 37 | |
| @@ -25,7 +25,7 @@ | ||
| 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->execute((array)$list); |