Completed
Push — master ( 96059f...fe2237 )
by Oleg
06:07
created
lib/WebMarketingROI/OptimizelyPHP/Service/v2/Campaigns.php 1 patch
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -37,17 +37,17 @@  discard block
 block discarded – undo
37 37
      * @return Result
38 38
      * @throws Exception
39 39
      */
40
-    public function listAll($projectId, $page=1, $perPage=25)
40
+    public function listAll($projectId, $page = 1, $perPage = 25)
41 41
     {
42
-        if ($projectId<0) {
42
+        if ($projectId < 0) {
43 43
             throw new Exception("Expected positive integer project ID");
44 44
         }
45 45
         
46
-        if ($page<0) {
46
+        if ($page < 0) {
47 47
             throw new Exception('Invalid page number passed');
48 48
         }
49 49
         
50
-        if ($perPage<0 || $perPage>100) {
50
+        if ($perPage < 0 || $perPage > 100) {
51 51
             throw new Exception('Invalid page size passed');
52 52
         }
53 53
         
@@ -103,7 +103,7 @@  discard block
 block discarded – undo
103 103
                     Exception::CODE_INVALID_ARG);
104 104
         }
105 105
         
106
-        if ($campaignId<0) {
106
+        if ($campaignId < 0) {
107 107
             throw new Exception("Expected positive integer campaign ID",
108 108
                     Exception::CODE_INVALID_ARG);
109 109
         }
Please login to merge, or discard this patch.