@@ -34,13 +34,13 @@ |
||
34 | 34 | protected function execute(InputInterface $input, OutputInterface $output) |
35 | 35 | { |
36 | 36 | $collection = $this->_getCustomerCollection(); |
37 | - $output->writeln('Preparing to send '. count($collection) .' customers'); |
|
37 | + $output->writeln('Preparing to send '.count($collection).' customers'); |
|
38 | 38 | |
39 | 39 | try { |
40 | 40 | $sentCount = $this->_sendCustomerData($collection); |
41 | - $output->writeln('Successfully sent '. $sentCount .' customers to the PredictionIO event server'); |
|
41 | + $output->writeln('Successfully sent '.$sentCount.' customers to the PredictionIO event server'); |
|
42 | 42 | } catch (\Exception $e) { |
43 | - $output->writeln('Error: ' . $e->getMessage()); |
|
43 | + $output->writeln('Error: '.$e->getMessage()); |
|
44 | 44 | } |
45 | 45 | } |
46 | 46 | } |
@@ -20,7 +20,7 @@ discard block |
||
20 | 20 | */ |
21 | 21 | public function buildUrl($url, $port) |
22 | 22 | { |
23 | - return trim($this->_checkUrlScheme($url), '/') . ":" . $port; |
|
23 | + return trim($this->_checkUrlScheme($url), '/').":".$port; |
|
24 | 24 | } |
25 | 25 | |
26 | 26 | /** |
@@ -33,7 +33,7 @@ discard block |
||
33 | 33 | { |
34 | 34 | $parsed = parse_url($url); |
35 | 35 | if (empty($parsed['scheme'])) { |
36 | - $url = 'http://' . $url; |
|
36 | + $url = 'http://'.$url; |
|
37 | 37 | } |
38 | 38 | |
39 | 39 | return $url; |
@@ -85,14 +85,14 @@ |
||
85 | 85 | $this->_setExportedProducts($productId); |
86 | 86 | ++$exportCount; |
87 | 87 | } catch (\Exception $e) { |
88 | - $this->_logger->addCritical("Product ID - $productId failed to export: " . $e); |
|
88 | + $this->_logger->addCritical("Product ID - $productId failed to export: ".$e); |
|
89 | 89 | return false; |
90 | 90 | } |
91 | 91 | } |
92 | 92 | |
93 | 93 | $this->_updateDatabase(); |
94 | 94 | |
95 | - $this->_logger->addInfo("Successfully exported " . $exportCount . " out " . $productCount . " products "); |
|
95 | + $this->_logger->addInfo("Successfully exported ".$exportCount." out ".$productCount." products "); |
|
96 | 96 | return true; |
97 | 97 | } |
98 | 98 |