@@ -222,14 +222,14 @@ discard block |
||
222 | 222 | $uri = ''; |
223 | 223 | |
224 | 224 | if ($this->_visibility != null) { |
225 | - $uri .= '/'.$this->_visibility; |
|
225 | + $uri .= '/' . $this->_visibility; |
|
226 | 226 | } else { |
227 | 227 | require_once 'Zend/Gdata/App/Exception.php'; |
228 | 228 | throw new Zend_Gdata_App_Exception('A visibility must be provided for document queries.'); |
229 | 229 | } |
230 | 230 | |
231 | 231 | if ($this->_projection != null) { |
232 | - $uri .= '/'.$this->_projection; |
|
232 | + $uri .= '/' . $this->_projection; |
|
233 | 233 | } else { |
234 | 234 | require_once 'Zend/Gdata/App/Exception.php'; |
235 | 235 | throw new Zend_Gdata_App_Exception('A projection must be provided for document queries.'); |
@@ -248,7 +248,7 @@ discard block |
||
248 | 248 | $uri = $this->_defaultFeedUri; |
249 | 249 | |
250 | 250 | if ($this->_documentType != null) { |
251 | - $uri .= '/'.$this->_documentType; |
|
251 | + $uri .= '/' . $this->_documentType; |
|
252 | 252 | } else { |
253 | 253 | require_once 'Zend/Gdata/App/Exception.php'; |
254 | 254 | throw new Zend_Gdata_App_Exception('A document type must be provided for document queries.'); |
@@ -257,18 +257,18 @@ discard block |
||
257 | 257 | if ($this->_documentType == 'spreadsheets') { |
258 | 258 | $uri .= $this->appendVisibilityProjection(); |
259 | 259 | if ($this->_spreadsheetKey != null) { |
260 | - $uri .= '/'.$this->_spreadsheetKey; |
|
260 | + $uri .= '/' . $this->_spreadsheetKey; |
|
261 | 261 | } |
262 | 262 | } else if ($this->_documentType == 'worksheets') { |
263 | 263 | if ($this->_spreadsheetKey != null) { |
264 | - $uri .= '/'.$this->_spreadsheetKey; |
|
264 | + $uri .= '/' . $this->_spreadsheetKey; |
|
265 | 265 | } else { |
266 | 266 | require_once 'Zend/Gdata/App/Exception.php'; |
267 | 267 | throw new Zend_Gdata_App_Exception('A spreadsheet key must be provided for worksheet document queries.'); |
268 | 268 | } |
269 | 269 | $uri .= $this->appendVisibilityProjection(); |
270 | 270 | if ($this->_worksheetId != null) { |
271 | - $uri .= '/'.$this->_worksheetId; |
|
271 | + $uri .= '/' . $this->_worksheetId; |
|
272 | 272 | } |
273 | 273 | } |
274 | 274 |
@@ -258,35 +258,35 @@ |
||
258 | 258 | $uri = $this->_defaultFeedUri; |
259 | 259 | |
260 | 260 | if ($this->_spreadsheetKey != null) { |
261 | - $uri .= '/'.$this->_spreadsheetKey; |
|
261 | + $uri .= '/' . $this->_spreadsheetKey; |
|
262 | 262 | } else { |
263 | 263 | require_once 'Zend/Gdata/App/Exception.php'; |
264 | 264 | throw new Zend_Gdata_App_Exception('A spreadsheet key must be provided for list queries.'); |
265 | 265 | } |
266 | 266 | |
267 | 267 | if ($this->_worksheetId != null) { |
268 | - $uri .= '/'.$this->_worksheetId; |
|
268 | + $uri .= '/' . $this->_worksheetId; |
|
269 | 269 | } else { |
270 | 270 | require_once 'Zend/Gdata/App/Exception.php'; |
271 | 271 | throw new Zend_Gdata_App_Exception('A worksheet id must be provided for list queries.'); |
272 | 272 | } |
273 | 273 | |
274 | 274 | if ($this->_visibility != null) { |
275 | - $uri .= '/'.$this->_visibility; |
|
275 | + $uri .= '/' . $this->_visibility; |
|
276 | 276 | } else { |
277 | 277 | require_once 'Zend/Gdata/App/Exception.php'; |
278 | 278 | throw new Zend_Gdata_App_Exception('A visibility must be provided for list queries.'); |
279 | 279 | } |
280 | 280 | |
281 | 281 | if ($this->_projection != null) { |
282 | - $uri .= '/'.$this->_projection; |
|
282 | + $uri .= '/' . $this->_projection; |
|
283 | 283 | } else { |
284 | 284 | require_once 'Zend/Gdata/App/Exception.php'; |
285 | 285 | throw new Zend_Gdata_App_Exception('A projection must be provided for list queries.'); |
286 | 286 | } |
287 | 287 | |
288 | 288 | if ($this->_rowId != null) { |
289 | - $uri .= '/'.$this->_rowId; |
|
289 | + $uri .= '/' . $this->_rowId; |
|
290 | 290 | } |
291 | 291 | |
292 | 292 | $uri .= $this->getQueryString(); |
@@ -48,31 +48,31 @@ |
||
48 | 48 | { |
49 | 49 | |
50 | 50 | /** |
51 | - * The classname for individual feed elements. |
|
52 | - * |
|
53 | - * @var string |
|
54 | - */ |
|
51 | + * The classname for individual feed elements. |
|
52 | + * |
|
53 | + * @var string |
|
54 | + */ |
|
55 | 55 | protected $_entryClassName = 'Zend_Gdata_Spreadsheets_CellEntry'; |
56 | 56 | |
57 | 57 | /** |
58 | - * The classname for the feed. |
|
59 | - * |
|
60 | - * @var string |
|
61 | - */ |
|
58 | + * The classname for the feed. |
|
59 | + * |
|
60 | + * @var string |
|
61 | + */ |
|
62 | 62 | protected $_feedClassName = 'Zend_Gdata_Spreadsheets_CellFeed'; |
63 | 63 | |
64 | 64 | /** |
65 | - * The row count for the feed. |
|
66 | - * |
|
67 | - * @var Zend_Gdata_Spreadsheets_Extension_RowCount |
|
68 | - */ |
|
65 | + * The row count for the feed. |
|
66 | + * |
|
67 | + * @var Zend_Gdata_Spreadsheets_Extension_RowCount |
|
68 | + */ |
|
69 | 69 | protected $_rowCount = null; |
70 | 70 | |
71 | 71 | /** |
72 | - * The column count for the feed. |
|
73 | - * |
|
74 | - * @var Zend_Gdata_Spreadsheets_Extension_ColCount |
|
75 | - */ |
|
72 | + * The column count for the feed. |
|
73 | + * |
|
74 | + * @var Zend_Gdata_Spreadsheets_Extension_ColCount |
|
75 | + */ |
|
76 | 76 | protected $_colCount = null; |
77 | 77 | |
78 | 78 | /** |
@@ -83,11 +83,11 @@ |
||
83 | 83 | protected function takeAttributeFromDOM($attribute) |
84 | 84 | { |
85 | 85 | switch ($attribute->localName) { |
86 | - case 'value': |
|
87 | - $this->_value = $attribute->nodeValue; |
|
88 | - break; |
|
89 | - default: |
|
90 | - parent::takeAttributeFromDOM($attribute); |
|
86 | + case 'value': |
|
87 | + $this->_value = $attribute->nodeValue; |
|
88 | + break; |
|
89 | + default: |
|
90 | + parent::takeAttributeFromDOM($attribute); |
|
91 | 91 | } |
92 | 92 | } |
93 | 93 |
@@ -82,20 +82,20 @@ |
||
82 | 82 | protected function takeAttributeFromDOM($attribute) |
83 | 83 | { |
84 | 84 | switch ($attribute->localName) { |
85 | - case 'value': |
|
86 | - if ($attribute->nodeValue == "true") { |
|
87 | - $this->_value = true; |
|
88 | - } |
|
89 | - else if ($attribute->nodeValue == "false") { |
|
90 | - $this->_value = false; |
|
91 | - } |
|
92 | - else { |
|
93 | - require_once 'Zend/Gdata/App/InvalidArgumentException.php'; |
|
94 | - throw new Zend_Gdata_App_InvalidArgumentException("Expected 'true' or 'false' for gCal:selected#value."); |
|
95 | - } |
|
96 | - break; |
|
97 | - default: |
|
98 | - parent::takeAttributeFromDOM($attribute); |
|
85 | + case 'value': |
|
86 | + if ($attribute->nodeValue == "true") { |
|
87 | + $this->_value = true; |
|
88 | + } |
|
89 | + else if ($attribute->nodeValue == "false") { |
|
90 | + $this->_value = false; |
|
91 | + } |
|
92 | + else { |
|
93 | + require_once 'Zend/Gdata/App/InvalidArgumentException.php'; |
|
94 | + throw new Zend_Gdata_App_InvalidArgumentException("Expected 'true' or 'false' for gCal:selected#value."); |
|
95 | + } |
|
96 | + break; |
|
97 | + default: |
|
98 | + parent::takeAttributeFromDOM($attribute); |
|
99 | 99 | } |
100 | 100 | } |
101 | 101 |
@@ -85,11 +85,9 @@ |
||
85 | 85 | case 'value': |
86 | 86 | if ($attribute->nodeValue == "true") { |
87 | 87 | $this->_value = true; |
88 | - } |
|
89 | - else if ($attribute->nodeValue == "false") { |
|
88 | + } else if ($attribute->nodeValue == "false") { |
|
90 | 89 | $this->_value = false; |
91 | - } |
|
92 | - else { |
|
90 | + } else { |
|
93 | 91 | require_once 'Zend/Gdata/App/InvalidArgumentException.php'; |
94 | 92 | throw new Zend_Gdata_App_InvalidArgumentException("Expected 'true' or 'false' for gCal:selected#value."); |
95 | 93 | } |
@@ -82,19 +82,19 @@ |
||
82 | 82 | protected function takeAttributeFromDOM($attribute) |
83 | 83 | { |
84 | 84 | switch ($attribute->localName) { |
85 | - case 'value': |
|
86 | - if ($attribute->nodeValue == "true") { |
|
87 | - $this->_value = true; |
|
88 | - } |
|
89 | - else if ($attribute->nodeValue == "false") { |
|
90 | - $this->_value = false; |
|
91 | - } |
|
92 | - else { |
|
93 | - throw new Zend_Gdata_App_InvalidArgumentException("Expected 'true' or 'false' for gCal:selected#value."); |
|
94 | - } |
|
95 | - break; |
|
96 | - default: |
|
97 | - parent::takeAttributeFromDOM($attribute); |
|
85 | + case 'value': |
|
86 | + if ($attribute->nodeValue == "true") { |
|
87 | + $this->_value = true; |
|
88 | + } |
|
89 | + else if ($attribute->nodeValue == "false") { |
|
90 | + $this->_value = false; |
|
91 | + } |
|
92 | + else { |
|
93 | + throw new Zend_Gdata_App_InvalidArgumentException("Expected 'true' or 'false' for gCal:selected#value."); |
|
94 | + } |
|
95 | + break; |
|
96 | + default: |
|
97 | + parent::takeAttributeFromDOM($attribute); |
|
98 | 98 | } |
99 | 99 | } |
100 | 100 |
@@ -85,11 +85,9 @@ |
||
85 | 85 | case 'value': |
86 | 86 | if ($attribute->nodeValue == "true") { |
87 | 87 | $this->_value = true; |
88 | - } |
|
89 | - else if ($attribute->nodeValue == "false") { |
|
88 | + } else if ($attribute->nodeValue == "false") { |
|
90 | 89 | $this->_value = false; |
91 | - } |
|
92 | - else { |
|
90 | + } else { |
|
93 | 91 | throw new Zend_Gdata_App_InvalidArgumentException("Expected 'true' or 'false' for gCal:selected#value."); |
94 | 92 | } |
95 | 93 | break; |
@@ -87,14 +87,14 @@ |
||
87 | 87 | { |
88 | 88 | $absoluteNodeName = $child->namespaceURI . ':' . $child->localName; |
89 | 89 | switch ($absoluteNodeName) { |
90 | - case $this->lookupNamespace('gCal') . ':' . 'webContent': |
|
91 | - $webContent = new Zend_Gdata_Calendar_Extension_WebContent(); |
|
92 | - $webContent->transferFromDOM($child); |
|
93 | - $this->_webContent = $webContent; |
|
94 | - break; |
|
95 | - default: |
|
96 | - parent::takeChildFromDOM($child); |
|
97 | - break; |
|
90 | + case $this->lookupNamespace('gCal') . ':' . 'webContent': |
|
91 | + $webContent = new Zend_Gdata_Calendar_Extension_WebContent(); |
|
92 | + $webContent->transferFromDOM($child); |
|
93 | + $this->_webContent = $webContent; |
|
94 | + break; |
|
95 | + default: |
|
96 | + parent::takeChildFromDOM($child); |
|
97 | + break; |
|
98 | 98 | } |
99 | 99 | } |
100 | 100 |
@@ -103,8 +103,8 @@ |
||
103 | 103 | case 'width': |
104 | 104 | $this->_width = $attribute->nodeValue; |
105 | 105 | break; |
106 | - default: |
|
107 | - parent::takeAttributeFromDOM($attribute); |
|
106 | + default: |
|
107 | + parent::takeAttributeFromDOM($attribute); |
|
108 | 108 | } |
109 | 109 | } |
110 | 110 |
@@ -118,39 +118,39 @@ |
||
118 | 118 | { |
119 | 119 | $absoluteNodeName = $child->namespaceURI . ':' . $child->localName; |
120 | 120 | switch ($absoluteNodeName) { |
121 | - case $this->lookupNamespace('gCal') . ':' . 'accesslevel'; |
|
122 | - $accessLevel = new Zend_Gdata_Calendar_Extension_AccessLevel(); |
|
123 | - $accessLevel->transferFromDOM($child); |
|
124 | - $this->_accessLevel = $accessLevel; |
|
125 | - break; |
|
126 | - case $this->lookupNamespace('gCal') . ':' . 'color'; |
|
127 | - $color = new Zend_Gdata_Calendar_Extension_Color(); |
|
128 | - $color->transferFromDOM($child); |
|
129 | - $this->_color = $color; |
|
130 | - break; |
|
131 | - case $this->lookupNamespace('gCal') . ':' . 'hidden'; |
|
132 | - $hidden = new Zend_Gdata_Calendar_Extension_Hidden(); |
|
133 | - $hidden->transferFromDOM($child); |
|
134 | - $this->_hidden = $hidden; |
|
135 | - break; |
|
136 | - case $this->lookupNamespace('gCal') . ':' . 'selected'; |
|
137 | - $selected = new Zend_Gdata_Calendar_Extension_Selected(); |
|
138 | - $selected->transferFromDOM($child); |
|
139 | - $this->_selected = $selected; |
|
140 | - break; |
|
141 | - case $this->lookupNamespace('gCal') . ':' . 'timezone'; |
|
142 | - $timezone = new Zend_Gdata_Calendar_Extension_Timezone(); |
|
143 | - $timezone->transferFromDOM($child); |
|
144 | - $this->_timezone = $timezone; |
|
145 | - break; |
|
146 | - case $this->lookupNamespace('gd') . ':' . 'where'; |
|
147 | - $where = new Zend_Gdata_Extension_Where(); |
|
148 | - $where->transferFromDOM($child); |
|
149 | - $this->_where[] = $where; |
|
150 | - break; |
|
151 | - default: |
|
152 | - parent::takeChildFromDOM($child); |
|
153 | - break; |
|
121 | + case $this->lookupNamespace('gCal') . ':' . 'accesslevel'; |
|
122 | + $accessLevel = new Zend_Gdata_Calendar_Extension_AccessLevel(); |
|
123 | + $accessLevel->transferFromDOM($child); |
|
124 | + $this->_accessLevel = $accessLevel; |
|
125 | + break; |
|
126 | + case $this->lookupNamespace('gCal') . ':' . 'color'; |
|
127 | + $color = new Zend_Gdata_Calendar_Extension_Color(); |
|
128 | + $color->transferFromDOM($child); |
|
129 | + $this->_color = $color; |
|
130 | + break; |
|
131 | + case $this->lookupNamespace('gCal') . ':' . 'hidden'; |
|
132 | + $hidden = new Zend_Gdata_Calendar_Extension_Hidden(); |
|
133 | + $hidden->transferFromDOM($child); |
|
134 | + $this->_hidden = $hidden; |
|
135 | + break; |
|
136 | + case $this->lookupNamespace('gCal') . ':' . 'selected'; |
|
137 | + $selected = new Zend_Gdata_Calendar_Extension_Selected(); |
|
138 | + $selected->transferFromDOM($child); |
|
139 | + $this->_selected = $selected; |
|
140 | + break; |
|
141 | + case $this->lookupNamespace('gCal') . ':' . 'timezone'; |
|
142 | + $timezone = new Zend_Gdata_Calendar_Extension_Timezone(); |
|
143 | + $timezone->transferFromDOM($child); |
|
144 | + $this->_timezone = $timezone; |
|
145 | + break; |
|
146 | + case $this->lookupNamespace('gd') . ':' . 'where'; |
|
147 | + $where = new Zend_Gdata_Extension_Where(); |
|
148 | + $where->transferFromDOM($child); |
|
149 | + $this->_where[] = $where; |
|
150 | + break; |
|
151 | + default: |
|
152 | + parent::takeChildFromDOM($child); |
|
153 | + break; |
|
154 | 154 | } |
155 | 155 | } |
156 | 156 |