Completed
Push — master ( d4c1a9...555df9 )
by Oleg
02:38
created
lib/WebMarketingROI/OptimizelyPHP/Resource/v2/Variation.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -78,7 +78,7 @@  discard block
 block discarded – undo
78 78
                 case 'weight': $this->setWeight($value); break;
79 79
                 case 'status': $this->setStatus($value); break;
80 80
                 default:
81
-                    throw new Exception('Unknown option found in the Variation entity: ' . $name);
81
+                    throw new Exception('Unknown option found in the Variation entity: '.$name);
82 82
             }
83 83
         }
84 84
     }
@@ -105,7 +105,7 @@  discard block
 block discarded – undo
105 105
         // Remove options with empty values
106 106
         $cleanedOptions = array();
107 107
         foreach ($options as $name=>$value) {
108
-            if ($value!==null)
108
+            if ($value !== null)
109 109
                 $cleanedOptions[$name] = $value;
110 110
         }
111 111
         
Please login to merge, or discard this patch.
lib/WebMarketingROI/OptimizelyPHP/Resource/v2/VariationReach.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -49,7 +49,7 @@  discard block
 block discarded – undo
49 49
                 case 'variation_id': $this->setVariationId($value); break;
50 50
                 case 'variation_reach': $this->setVariationReach($value); break;
51 51
                 default:
52
-                    throw new Exception('Unknown option found in VariationReach entity: ' . $name);
52
+                    throw new Exception('Unknown option found in VariationReach entity: '.$name);
53 53
             }
54 54
         }
55 55
     }
@@ -69,7 +69,7 @@  discard block
 block discarded – undo
69 69
         // Remove options with empty values
70 70
         $cleanedOptions = array();
71 71
         foreach ($options as $name=>$value) {
72
-            if ($value!==null)
72
+            if ($value !== null)
73 73
                 $cleanedOptions[$name] = $value;
74 74
         }
75 75
         
Please login to merge, or discard this patch.
lib/WebMarketingROI/OptimizelyPHP/Resource/v2/ExperimentResults.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -75,7 +75,7 @@  discard block
 block discarded – undo
75 75
                 case 'reach': $this->setReach(new ExperimentVariationReach($value)); break;
76 76
                 case 'start_time': $this->setStartTime($value); break;
77 77
                 default:
78
-                    throw new Exception('Unknown option found in the ExperimentVariationReach entity: ' . $name);
78
+                    throw new Exception('Unknown option found in the ExperimentVariationReach entity: '.$name);
79 79
             }
80 80
         }
81 81
     }
@@ -90,7 +90,7 @@  discard block
 block discarded – undo
90 90
             'end_time' => $this->getEndTime(),
91 91
             'experiment_id' => $this->getExperimentId(),
92 92
             'metrics' => array(),
93
-            'reach' => $this->getReach()?$this->getReach()->toArray():null,
93
+            'reach' => $this->getReach() ? $this->getReach()->toArray() : null,
94 94
             'start_time' => $this->getStartTime()
95 95
         );
96 96
         
@@ -101,7 +101,7 @@  discard block
 block discarded – undo
101 101
         // Remove options with empty values
102 102
         $cleanedOptions = array();
103 103
         foreach ($options as $name=>$value) {
104
-            if ($value!==null)
104
+            if ($value !== null)
105 105
                 $cleanedOptions[$name] = $value;
106 106
         }
107 107
         
Please login to merge, or discard this patch.