@@ -91,8 +91,9 @@ |
||
91 | 91 | // Remove options with empty values |
92 | 92 | $cleanedOptions = array(); |
93 | 93 | foreach ($options as $name=>$value) { |
94 | - if ($value!==null) |
|
95 | - $cleanedOptions[$name] = $value; |
|
94 | + if ($value!==null) { |
|
95 | + $cleanedOptions[$name] = $value; |
|
96 | + } |
|
96 | 97 | } |
97 | 98 | |
98 | 99 | return $cleanedOptions; |
@@ -67,7 +67,7 @@ discard block |
||
67 | 67 | } |
68 | 68 | case 'start_time': $this->setStartTime($value); break; |
69 | 69 | default: |
70 | - throw new Exception('Unknown option: ' . $name); |
|
70 | + throw new Exception('Unknown option: '.$name); |
|
71 | 71 | } |
72 | 72 | } |
73 | 73 | } |
@@ -92,7 +92,7 @@ discard block |
||
92 | 92 | // Remove options with empty values |
93 | 93 | $cleanedOptions = array(); |
94 | 94 | foreach ($options as $name=>$value) { |
95 | - if ($value!==null) |
|
95 | + if ($value !== null) |
|
96 | 96 | $cleanedOptions[$name] = $value; |
97 | 97 | } |
98 | 98 |
@@ -55,8 +55,9 @@ |
||
55 | 55 | } |
56 | 56 | |
57 | 57 | // Determine if there are more projects. |
58 | - if ($result->getNextPage()==null) |
|
59 | - break; |
|
58 | + if ($result->getNextPage()==null) { |
|
59 | + break; |
|
60 | + } |
|
60 | 61 | |
61 | 62 | // Increment page counter. |
62 | 63 | $page ++; |
@@ -103,7 +103,7 @@ discard block |
||
103 | 103 | case 'value': $this->setValue($value); break; |
104 | 104 | case 'id': $this->setId($value); break; |
105 | 105 | default: |
106 | - throw new Exception('Unknown option: ' . $name); |
|
106 | + throw new Exception('Unknown option: '.$name); |
|
107 | 107 | } |
108 | 108 | } |
109 | 109 | } |
@@ -130,7 +130,7 @@ discard block |
||
130 | 130 | // Remove options with empty values |
131 | 131 | $cleanedOptions = array(); |
132 | 132 | foreach ($options as $name=>$value) { |
133 | - if ($value!==null) |
|
133 | + if ($value !== null) |
|
134 | 134 | $cleanedOptions[$name] = $value; |
135 | 135 | } |
136 | 136 |
@@ -91,8 +91,9 @@ |
||
91 | 91 | // Remove options with empty values |
92 | 92 | $cleanedOptions = array(); |
93 | 93 | foreach ($options as $name=>$value) { |
94 | - if ($value!==null) |
|
95 | - $cleanedOptions[$name] = $value; |
|
94 | + if ($value!==null) { |
|
95 | + $cleanedOptions[$name] = $value; |
|
96 | + } |
|
96 | 97 | } |
97 | 98 | |
98 | 99 | return $cleanedOptions; |
@@ -35,7 +35,7 @@ discard block |
||
35 | 35 | case 'kind': $this->setKind($value); break; |
36 | 36 | case 'id': $this->setId($value); break; |
37 | 37 | default: |
38 | - throw new Exception('Unknown option: ' . $name); |
|
38 | + throw new Exception('Unknown option: '.$name); |
|
39 | 39 | } |
40 | 40 | } |
41 | 41 | } |
@@ -53,7 +53,7 @@ discard block |
||
53 | 53 | // Remove options with empty values |
54 | 54 | $cleanedOptions = array(); |
55 | 55 | foreach ($options as $name=>$value) { |
56 | - if ($value!==null) |
|
56 | + if ($value !== null) |
|
57 | 57 | $cleanedOptions[$name] = $value; |
58 | 58 | } |
59 | 59 |
@@ -91,8 +91,9 @@ |
||
91 | 91 | // Remove options with empty values |
92 | 92 | $cleanedOptions = array(); |
93 | 93 | foreach ($options as $name=>$value) { |
94 | - if ($value!==null) |
|
95 | - $cleanedOptions[$name] = $value; |
|
94 | + if ($value!==null) { |
|
95 | + $cleanedOptions[$name] = $value; |
|
96 | + } |
|
96 | 97 | } |
97 | 98 | |
98 | 99 | return $cleanedOptions; |
@@ -88,7 +88,7 @@ discard block |
||
88 | 88 | } |
89 | 89 | case 'unit': $this->setUnit($value); break; |
90 | 90 | default: |
91 | - throw new Exception('Unknown option: ' . $name); |
|
91 | + throw new Exception('Unknown option: '.$name); |
|
92 | 92 | } |
93 | 93 | } |
94 | 94 | } |
@@ -115,7 +115,7 @@ discard block |
||
115 | 115 | // Remove options with empty values |
116 | 116 | $cleanedOptions = array(); |
117 | 117 | foreach ($options as $name=>$value) { |
118 | - if ($value!==null) |
|
118 | + if ($value !== null) |
|
119 | 119 | $cleanedOptions[$name] = $value; |
120 | 120 | } |
121 | 121 |
@@ -91,8 +91,9 @@ |
||
91 | 91 | // Remove options with empty values |
92 | 92 | $cleanedOptions = array(); |
93 | 93 | foreach ($options as $name=>$value) { |
94 | - if ($value!==null) |
|
95 | - $cleanedOptions[$name] = $value; |
|
94 | + if ($value!==null) { |
|
95 | + $cleanedOptions[$name] = $value; |
|
96 | + } |
|
96 | 97 | } |
97 | 98 | |
98 | 99 | return $cleanedOptions; |
@@ -98,7 +98,7 @@ discard block |
||
98 | 98 | case 'code_revision': $this->setCodeRevision($value); break; |
99 | 99 | case 'js_file_size': $this->setJsFileSize($value); break; |
100 | 100 | default: |
101 | - throw new Exception('Unknown option: ' . $name); |
|
101 | + throw new Exception('Unknown option: '.$name); |
|
102 | 102 | } |
103 | 103 | } |
104 | 104 | } |
@@ -124,7 +124,7 @@ discard block |
||
124 | 124 | // Remove options with empty values |
125 | 125 | $cleanedOptions = array(); |
126 | 126 | foreach ($options as $name=>$value) { |
127 | - if ($value!==null) |
|
127 | + if ($value !== null) |
|
128 | 128 | $cleanedOptions[$name] = $value; |
129 | 129 | } |
130 | 130 |
@@ -91,8 +91,9 @@ |
||
91 | 91 | // Remove options with empty values |
92 | 92 | $cleanedOptions = array(); |
93 | 93 | foreach ($options as $name=>$value) { |
94 | - if ($value!==null) |
|
95 | - $cleanedOptions[$name] = $value; |
|
94 | + if ($value!==null) { |
|
95 | + $cleanedOptions[$name] = $value; |
|
96 | + } |
|
96 | 97 | } |
97 | 98 | |
98 | 99 | return $cleanedOptions; |
@@ -42,7 +42,7 @@ discard block |
||
42 | 42 | case 'stop_time': $this->setStopTime($value); break; |
43 | 43 | case 'time_zone': $this->setTimezone($value); break; |
44 | 44 | default: |
45 | - throw new Exception('Unknown option: ' . $name); |
|
45 | + throw new Exception('Unknown option: '.$name); |
|
46 | 46 | } |
47 | 47 | } |
48 | 48 | } |
@@ -61,7 +61,7 @@ discard block |
||
61 | 61 | // Remove options with empty values |
62 | 62 | $cleanedOptions = array(); |
63 | 63 | foreach ($options as $name=>$value) { |
64 | - if ($value!==null) |
|
64 | + if ($value !== null) |
|
65 | 65 | $cleanedOptions[$name] = $value; |
66 | 66 | } |
67 | 67 |
@@ -91,8 +91,9 @@ |
||
91 | 91 | // Remove options with empty values |
92 | 92 | $cleanedOptions = array(); |
93 | 93 | foreach ($options as $name=>$value) { |
94 | - if ($value!==null) |
|
95 | - $cleanedOptions[$name] = $value; |
|
94 | + if ($value!==null) { |
|
95 | + $cleanedOptions[$name] = $value; |
|
96 | + } |
|
96 | 97 | } |
97 | 98 | |
98 | 99 | return $cleanedOptions; |
@@ -68,7 +68,7 @@ discard block |
||
68 | 68 | case 'value': $this->setValue($value); break; |
69 | 69 | case 'visitors_remaining': $this->setVisitorsRemaining($value); break; |
70 | 70 | default: |
71 | - throw new Exception('Unknown option: ' . $name); |
|
71 | + throw new Exception('Unknown option: '.$name); |
|
72 | 72 | } |
73 | 73 | } |
74 | 74 | } |
@@ -90,7 +90,7 @@ discard block |
||
90 | 90 | // Remove options with empty values |
91 | 91 | $cleanedOptions = array(); |
92 | 92 | foreach ($options as $name=>$value) { |
93 | - if ($value!==null) |
|
93 | + if ($value !== null) |
|
94 | 94 | $cleanedOptions[$name] = $value; |
95 | 95 | } |
96 | 96 |
@@ -91,8 +91,9 @@ |
||
91 | 91 | // Remove options with empty values |
92 | 92 | $cleanedOptions = array(); |
93 | 93 | foreach ($options as $name=>$value) { |
94 | - if ($value!==null) |
|
95 | - $cleanedOptions[$name] = $value; |
|
94 | + if ($value!==null) { |
|
95 | + $cleanedOptions[$name] = $value; |
|
96 | + } |
|
96 | 97 | } |
97 | 98 | |
98 | 99 | return $cleanedOptions; |
@@ -42,7 +42,7 @@ discard block |
||
42 | 42 | } |
43 | 43 | case 'page_id': $this->setPageId($value); break; |
44 | 44 | default: |
45 | - throw new Exception('Unknown option: ' . $name); |
|
45 | + throw new Exception('Unknown option: '.$name); |
|
46 | 46 | } |
47 | 47 | } |
48 | 48 | } |
@@ -64,7 +64,7 @@ discard block |
||
64 | 64 | // Remove options with empty values |
65 | 65 | $cleanedOptions = array(); |
66 | 66 | foreach ($options as $name=>$value) { |
67 | - if ($value!==null) |
|
67 | + if ($value !== null) |
|
68 | 68 | $cleanedOptions[$name] = $value; |
69 | 69 | } |
70 | 70 |
@@ -91,8 +91,9 @@ |
||
91 | 91 | // Remove options with empty values |
92 | 92 | $cleanedOptions = array(); |
93 | 93 | foreach ($options as $name=>$value) { |
94 | - if ($value!==null) |
|
95 | - $cleanedOptions[$name] = $value; |
|
94 | + if ($value!==null) { |
|
95 | + $cleanedOptions[$name] = $value; |
|
96 | + } |
|
96 | 97 | } |
97 | 98 | |
98 | 99 | return $cleanedOptions; |