Completed
Push — develop ( 7b18e0...586412 )
by Steven
04:14
created
Console/Command/SendCustomersCommand.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -34,13 +34,13 @@
 block discarded – undo
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
 }
Please login to merge, or discard this patch.
Helper/Urls.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -20,7 +20,7 @@  discard block
 block discarded – undo
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
 block discarded – undo
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;
Please login to merge, or discard this patch.
Model/Cron.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -85,14 +85,14 @@
 block discarded – undo
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
 
Please login to merge, or discard this patch.