@@ -132,14 +132,14 @@ discard block |
||
132 | 132 | * @param string $value The user to retrieve, or null for the default |
133 | 133 | * user. |
134 | 134 | */ |
135 | - public function setUser($value) |
|
136 | - { |
|
137 | - if ($value !== null) { |
|
138 | - $this->_user = $value; |
|
139 | - } else { |
|
140 | - $this->_user = Zend_Gdata_Photos::DEFAULT_USER; |
|
141 | - } |
|
142 | - } |
|
135 | + public function setUser($value) |
|
136 | + { |
|
137 | + if ($value !== null) { |
|
138 | + $this->_user = $value; |
|
139 | + } else { |
|
140 | + $this->_user = Zend_Gdata_Photos::DEFAULT_USER; |
|
141 | + } |
|
142 | + } |
|
143 | 143 | |
144 | 144 | /** |
145 | 145 | * Get the user which is to be returned. |
@@ -162,14 +162,14 @@ discard block |
||
162 | 162 | * @param string $value The visibility to filter by, or null to use the |
163 | 163 | * default value. |
164 | 164 | */ |
165 | - public function setAccess($value) |
|
166 | - { |
|
167 | - if ($value !== null) { |
|
168 | - $this->_params['access'] = $value; |
|
169 | - } else { |
|
170 | - unset($this->_params['access']); |
|
171 | - } |
|
172 | - } |
|
165 | + public function setAccess($value) |
|
166 | + { |
|
167 | + if ($value !== null) { |
|
168 | + $this->_params['access'] = $value; |
|
169 | + } else { |
|
170 | + unset($this->_params['access']); |
|
171 | + } |
|
172 | + } |
|
173 | 173 | |
174 | 174 | /** |
175 | 175 | * Get the visibility filter for entries returned. |
@@ -194,14 +194,14 @@ discard block |
||
194 | 194 | * @param string $value The tag to filter by, or null if no |
195 | 195 | * filter is to be applied. |
196 | 196 | */ |
197 | - public function setTag($value) |
|
198 | - { |
|
199 | - if ($value !== null) { |
|
200 | - $this->_params['tag'] = $value; |
|
201 | - } else { |
|
202 | - unset($this->_params['tag']); |
|
203 | - } |
|
204 | - } |
|
197 | + public function setTag($value) |
|
198 | + { |
|
199 | + if ($value !== null) { |
|
200 | + $this->_params['tag'] = $value; |
|
201 | + } else { |
|
202 | + unset($this->_params['tag']); |
|
203 | + } |
|
204 | + } |
|
205 | 205 | |
206 | 206 | /** |
207 | 207 | * Get the tag filter for entries returned. |
@@ -226,14 +226,14 @@ discard block |
||
226 | 226 | * @param string $value The kind to filter by, or null if no |
227 | 227 | * filter is to be applied. |
228 | 228 | */ |
229 | - public function setKind($value) |
|
230 | - { |
|
231 | - if ($value !== null) { |
|
232 | - $this->_params['kind'] = $value; |
|
233 | - } else { |
|
234 | - unset($this->_params['kind']); |
|
235 | - } |
|
236 | - } |
|
229 | + public function setKind($value) |
|
230 | + { |
|
231 | + if ($value !== null) { |
|
232 | + $this->_params['kind'] = $value; |
|
233 | + } else { |
|
234 | + unset($this->_params['kind']); |
|
235 | + } |
|
236 | + } |
|
237 | 237 | |
238 | 238 | /** |
239 | 239 | * Get the kind of entries to be returned. |
@@ -258,14 +258,14 @@ discard block |
||
258 | 258 | * @param string $value The image size to filter by, or null if no |
259 | 259 | * filter is to be applied. |
260 | 260 | */ |
261 | - public function setImgMax($value) |
|
262 | - { |
|
263 | - if ($value !== null) { |
|
264 | - $this->_params['imgmax'] = $value; |
|
265 | - } else { |
|
266 | - unset($this->_params['imgmax']); |
|
267 | - } |
|
268 | - } |
|
261 | + public function setImgMax($value) |
|
262 | + { |
|
263 | + if ($value !== null) { |
|
264 | + $this->_params['imgmax'] = $value; |
|
265 | + } else { |
|
266 | + unset($this->_params['imgmax']); |
|
267 | + } |
|
268 | + } |
|
269 | 269 | |
270 | 270 | /** |
271 | 271 | * Get the maximum image size filter for entries returned. |
@@ -290,14 +290,14 @@ discard block |
||
290 | 290 | * @param string $value The thumbnail size to filter by, or null if no |
291 | 291 | * filter is to be applied. |
292 | 292 | */ |
293 | - public function setThumbsize($value) |
|
294 | - { |
|
295 | - if ($value !== null) { |
|
296 | - $this->_params['thumbsize'] = $value; |
|
297 | - } else { |
|
298 | - unset($this->_params['thumbsize']); |
|
299 | - } |
|
300 | - } |
|
293 | + public function setThumbsize($value) |
|
294 | + { |
|
295 | + if ($value !== null) { |
|
296 | + $this->_params['thumbsize'] = $value; |
|
297 | + } else { |
|
298 | + unset($this->_params['thumbsize']); |
|
299 | + } |
|
300 | + } |
|
301 | 301 | |
302 | 302 | /** |
303 | 303 | * Get the thumbnail size filter for entries returned. |
@@ -60,7 +60,7 @@ discard block |
||
60 | 60 | $body = '') |
61 | 61 | { |
62 | 62 | // Make sure we're properly connected |
63 | - if (! $this->socket) { |
|
63 | + if (!$this->socket) { |
|
64 | 64 | require_once 'Zend/Http/Client/Adapter/Exception.php'; |
65 | 65 | throw new Zend_Http_Client_Adapter_Exception( |
66 | 66 | 'Trying to write but we are not connected'); |
@@ -88,7 +88,7 @@ discard block |
||
88 | 88 | |
89 | 89 | // Send the headers over |
90 | 90 | $request .= "\r\n"; |
91 | - if (! @fwrite($this->socket, $request)) { |
|
91 | + if (!@fwrite($this->socket, $request)) { |
|
92 | 92 | require_once 'Zend/Http/Client/Adapter/Exception.php'; |
93 | 93 | throw new Zend_Http_Client_Adapter_Exception( |
94 | 94 | 'Error writing request to server'); |
@@ -98,7 +98,7 @@ discard block |
||
98 | 98 | //read from $body, write to socket |
99 | 99 | $chunk = $body->read(self::CHUNK_SIZE); |
100 | 100 | while ($chunk !== FALSE) { |
101 | - if (! @fwrite($this->socket, $chunk)) { |
|
101 | + if (!@fwrite($this->socket, $chunk)) { |
|
102 | 102 | require_once 'Zend/Http/Client/Adapter/Exception.php'; |
103 | 103 | throw new Zend_Http_Client_Adapter_Exception( |
104 | 104 | 'Error writing request to server'); |
@@ -79,10 +79,14 @@ |
||
79 | 79 | |
80 | 80 | // Build request headers |
81 | 81 | $path = $uri->getPath(); |
82 | - if ($uri->getQuery()) $path .= '?' . $uri->getQuery(); |
|
82 | + if ($uri->getQuery()) { |
|
83 | + $path .= '?' . $uri->getQuery(); |
|
84 | + } |
|
83 | 85 | $request = "{$method} {$path} HTTP/{$http_ver}\r\n"; |
84 | 86 | foreach ($headers as $k => $v) { |
85 | - if (is_string($k)) $v = ucfirst($k) . ": $v"; |
|
87 | + if (is_string($k)) { |
|
88 | + $v = ucfirst($k) . ": $v"; |
|
89 | + } |
|
86 | 90 | $request .= "$v\r\n"; |
87 | 91 | } |
88 | 92 |
@@ -76,7 +76,7 @@ |
||
76 | 76 | */ |
77 | 77 | protected function takeChildFromDOM($child) |
78 | 78 | { |
79 | - $this->_value = $child->nodeValue; |
|
79 | + $this->_value = $child->nodeValue; |
|
80 | 80 | } |
81 | 81 | |
82 | 82 | /** |
@@ -78,7 +78,7 @@ |
||
78 | 78 | protected function takeChildFromDOM($child) |
79 | 79 | { |
80 | 80 | $absoluteNodeName = $child->namespaceURI . ':' . $child->localName; |
81 | - switch ($absoluteNodeName){ |
|
81 | + switch ($absoluteNodeName) { |
|
82 | 82 | case $this->lookupNamespace('analytics') . ':' . 'property'; |
83 | 83 | $property = new Zend_Gdata_Analytics_Extension_Property(); |
84 | 84 | $property->transferFromDOM($child); |
@@ -48,12 +48,12 @@ discard block |
||
48 | 48 | const DIMENSION_COUNTRY = 'ga:country'; |
49 | 49 | const DIMENSION_DATE = 'ga:date'; |
50 | 50 | const DIMENSION_DAY = 'ga:day'; |
51 | - const DIMENSION_DAYS_SINCE_LAST_VISIT= 'ga:daysSinceLastVisit'; |
|
51 | + const DIMENSION_DAYS_SINCE_LAST_VISIT = 'ga:daysSinceLastVisit'; |
|
52 | 52 | const DIMENSION_FLASH_VERSION = 'ga:flashVersion'; |
53 | 53 | const DIMENSION_HOSTNAME = 'ga:hostname'; |
54 | 54 | const DIMENSION_HOUR = 'ga:hour'; |
55 | - const DIMENSION_JAVA_ENABLED= 'ga:javaEnabled'; |
|
56 | - const DIMENSION_LANGUAGE= 'ga:language'; |
|
55 | + const DIMENSION_JAVA_ENABLED = 'ga:javaEnabled'; |
|
56 | + const DIMENSION_LANGUAGE = 'ga:language'; |
|
57 | 57 | const DIMENSION_LATITUDE = 'ga:latitude'; |
58 | 58 | const DIMENSION_LONGITUDE = 'ga:longitude'; |
59 | 59 | const DIMENSION_MONTH = 'ga:month'; |
@@ -63,7 +63,7 @@ discard block |
||
63 | 63 | const DIMENSION_OPERATING_SYSTEM_VERSION = 'ga:operatingSystemVersion'; |
64 | 64 | const DIMENSION_PAGE_DEPTH = 'ga:pageDepth'; |
65 | 65 | const DIMENSION_REGION = 'ga:region'; |
66 | - const DIMENSION_SCREEN_COLORS= 'ga:screenColors'; |
|
66 | + const DIMENSION_SCREEN_COLORS = 'ga:screenColors'; |
|
67 | 67 | const DIMENSION_SCREEN_RESOLUTION = 'ga:screenResolution'; |
68 | 68 | const DIMENSION_SUB_CONTINENT = 'ga:subContinent'; |
69 | 69 | const DIMENSION_USER_DEFINED_VALUE = 'ga:userDefinedValue'; |
@@ -110,7 +110,7 @@ discard block |
||
110 | 110 | |
111 | 111 | // D6. Navigation |
112 | 112 | const DIMENSION_NEXT_PAGE_PATH = 'ga:nextPagePath'; |
113 | - const DIMENSION_PREV_PAGE_PATH= 'ga:previousPagePath'; |
|
113 | + const DIMENSION_PREV_PAGE_PATH = 'ga:previousPagePath'; |
|
114 | 114 | |
115 | 115 | // D7. Events |
116 | 116 | const DIMENSION_EVENT_CATEGORY = 'ga:eventCategory'; |
@@ -190,9 +190,9 @@ discard block |
||
190 | 190 | const GREATER_EQUAL = ">="; |
191 | 191 | const LESS_EQUAL = "<="; |
192 | 192 | const CONTAINS = "=@"; |
193 | - const CONTAINS_NOT ="!@"; |
|
194 | - const REGULAR ="=~"; |
|
195 | - const REGULAR_NOT ="!~"; |
|
193 | + const CONTAINS_NOT = "!@"; |
|
194 | + const REGULAR = "=~"; |
|
195 | + const REGULAR_NOT = "!~"; |
|
196 | 196 | |
197 | 197 | /** |
198 | 198 | * @var string |
@@ -331,10 +331,10 @@ discard block |
||
331 | 331 | * @param boolean[optional] $descending |
332 | 332 | * @return Zend_Gdata_Analytics_DataQuery |
333 | 333 | */ |
334 | - public function addSort($sort, $descending=false) |
|
334 | + public function addSort($sort, $descending = false) |
|
335 | 335 | { |
336 | 336 | // add to sort storage |
337 | - $this->_sort[] = ($descending?'-':'').$sort; |
|
337 | + $this->_sort[] = ($descending ? '-' : '') . $sort; |
|
338 | 338 | return $this; |
339 | 339 | } |
340 | 340 | |
@@ -379,7 +379,7 @@ discard block |
||
379 | 379 | |
380 | 380 | // profile id (ga:tableId) |
381 | 381 | if ($this->getProfileId() != null) { |
382 | - $this->setParam('ids', 'ga:'.ltrim($this->getProfileId(), "ga:")); |
|
382 | + $this->setParam('ids', 'ga:' . ltrim($this->getProfileId(), "ga:")); |
|
383 | 383 | } |
384 | 384 | |
385 | 385 | // sorting |
@@ -390,10 +390,10 @@ discard block |
||
390 | 390 | // filtering |
391 | 391 | $filters = ""; |
392 | 392 | foreach ($this->_filters as $filter) { |
393 | - $filters.=($filter[1]===true?';':',').$filter[0]; |
|
393 | + $filters .= ($filter[1] === true ? ';' : ',') . $filter[0]; |
|
394 | 394 | } |
395 | 395 | |
396 | - if ($filters!="") { |
|
396 | + if ($filters != "") { |
|
397 | 397 | $this->setParam('filters', ltrim($filters, ",;")); |
398 | 398 | } |
399 | 399 |
@@ -64,15 +64,15 @@ discard block |
||
64 | 64 | { |
65 | 65 | |
66 | 66 | /** Default major protocol version. |
67 | - * |
|
68 | - * @see _majorProtocolVersion |
|
69 | - */ |
|
67 | + * |
|
68 | + * @see _majorProtocolVersion |
|
69 | + */ |
|
70 | 70 | const DEFAULT_MAJOR_PROTOCOL_VERSION = 1; |
71 | 71 | |
72 | 72 | /** Default minor protocol version. |
73 | - * |
|
74 | - * @see _minorProtocolVersion |
|
75 | - */ |
|
73 | + * |
|
74 | + * @see _minorProtocolVersion |
|
75 | + */ |
|
76 | 76 | const DEFAULT_MINOR_PROTOCOL_VERSION = null; |
77 | 77 | |
78 | 78 | /** |
@@ -135,32 +135,32 @@ discard block |
||
135 | 135 | protected static $_maxRedirects = 5; |
136 | 136 | |
137 | 137 | /** |
138 | - * Indicates the major protocol version that should be used. |
|
139 | - * At present, recognized values are either 1 or 2. However, any integer |
|
140 | - * value >= 1 is considered valid. |
|
141 | - * |
|
142 | - * Under most circumtances, this will be automatically set by |
|
143 | - * Zend_Gdata_App subclasses. |
|
144 | - * |
|
145 | - * @see setMajorProtocolVersion() |
|
146 | - * @see getMajorProtocolVersion() |
|
147 | - */ |
|
138 | + * Indicates the major protocol version that should be used. |
|
139 | + * At present, recognized values are either 1 or 2. However, any integer |
|
140 | + * value >= 1 is considered valid. |
|
141 | + * |
|
142 | + * Under most circumtances, this will be automatically set by |
|
143 | + * Zend_Gdata_App subclasses. |
|
144 | + * |
|
145 | + * @see setMajorProtocolVersion() |
|
146 | + * @see getMajorProtocolVersion() |
|
147 | + */ |
|
148 | 148 | protected $_majorProtocolVersion; |
149 | 149 | |
150 | 150 | /** |
151 | - * Indicates the minor protocol version that should be used. Can be set |
|
152 | - * to either an integer >= 0, or NULL if no minor version should be sent |
|
153 | - * to the server. |
|
154 | - * |
|
155 | - * At present, this field is not used by any Google services, but may be |
|
156 | - * used in the future. |
|
157 | - * |
|
158 | - * Under most circumtances, this will be automatically set by |
|
159 | - * Zend_Gdata_App subclasses. |
|
160 | - * |
|
161 | - * @see setMinorProtocolVersion() |
|
162 | - * @see getMinorProtocolVersion() |
|
163 | - */ |
|
151 | + * Indicates the minor protocol version that should be used. Can be set |
|
152 | + * to either an integer >= 0, or NULL if no minor version should be sent |
|
153 | + * to the server. |
|
154 | + * |
|
155 | + * At present, this field is not used by any Google services, but may be |
|
156 | + * used in the future. |
|
157 | + * |
|
158 | + * Under most circumtances, this will be automatically set by |
|
159 | + * Zend_Gdata_App subclasses. |
|
160 | + * |
|
161 | + * @see setMinorProtocolVersion() |
|
162 | + * @see getMinorProtocolVersion() |
|
163 | + */ |
|
164 | 164 | protected $_minorProtocolVersion; |
165 | 165 | |
166 | 166 | /** |
@@ -489,10 +489,10 @@ discard block |
||
489 | 489 | * 'method', 'url', 'data', 'headers', 'contentType' |
490 | 490 | */ |
491 | 491 | public function prepareRequest($method, |
492 | - $url = null, |
|
493 | - $headers = array(), |
|
494 | - $data = null, |
|
495 | - $contentTypeOverride = null) |
|
492 | + $url = null, |
|
493 | + $headers = array(), |
|
494 | + $data = null, |
|
495 | + $contentTypeOverride = null) |
|
496 | 496 | { |
497 | 497 | // As a convenience, if $headers is null, we'll convert it back to |
498 | 498 | // an empty array. |
@@ -825,15 +825,15 @@ discard block |
||
825 | 825 | |
826 | 826 | |
827 | 827 | if (!class_exists($className, false)) { |
828 | - require_once 'Zend/Loader.php'; |
|
829 | - @Zend_Loader::loadClass($className); |
|
828 | + require_once 'Zend/Loader.php'; |
|
829 | + @Zend_Loader::loadClass($className); |
|
830 | 830 | } |
831 | 831 | |
832 | 832 | // Load the feed as an XML DOMDocument object |
833 | 833 | @ini_set('track_errors', 1); |
834 | 834 | $doc = new DOMDocument(); |
835 | 835 | //$doc = @Zend_Xml_Security::scan($string, $doc); |
836 | - $doc->loadXML($string); |
|
836 | + $doc->loadXML($string); |
|
837 | 837 | @ini_restore('track_errors'); |
838 | 838 | |
839 | 839 | |
@@ -965,11 +965,11 @@ discard block |
||
965 | 965 | 'DELETE', null, $headers, $data); |
966 | 966 | } |
967 | 967 | return $this->performHttpRequest($requestData['method'], |
968 | - $requestData['url'], |
|
969 | - $requestData['headers'], |
|
970 | - '', |
|
971 | - $requestData['contentType'], |
|
972 | - $remainingRedirects); |
|
968 | + $requestData['url'], |
|
969 | + $requestData['headers'], |
|
970 | + '', |
|
971 | + $requestData['contentType'], |
|
972 | + $remainingRedirects); |
|
973 | 973 | } |
974 | 974 | |
975 | 975 | /** |
@@ -988,8 +988,8 @@ discard block |
||
988 | 988 | $extraHeaders = array()) |
989 | 989 | { |
990 | 990 | if (!class_exists($className, false)) { |
991 | - require_once 'Zend/Loader.php'; |
|
992 | - @Zend_Loader::loadClass($className); |
|
991 | + require_once 'Zend/Loader.php'; |
|
992 | + @Zend_Loader::loadClass($className); |
|
993 | 993 | } |
994 | 994 | |
995 | 995 | $response = $this->post($data, $uri, null, null, $extraHeaders); |
@@ -1029,8 +1029,8 @@ discard block |
||
1029 | 1029 | } |
1030 | 1030 | |
1031 | 1031 | if (!class_exists($className, false)) { |
1032 | - require_once 'Zend/Loader.php'; |
|
1033 | - @Zend_Loader::loadClass($className); |
|
1032 | + require_once 'Zend/Loader.php'; |
|
1033 | + @Zend_Loader::loadClass($className); |
|
1034 | 1034 | } |
1035 | 1035 | |
1036 | 1036 | $response = $this->put($data, $uri, null, null, $extraHeaders); |
@@ -1064,21 +1064,21 @@ discard block |
||
1064 | 1064 | $class = $matches[1]; |
1065 | 1065 | $foundClassName = null; |
1066 | 1066 | foreach ($this->_registeredPackages as $name) { |
1067 | - try { |
|
1068 | - // Autoloading disabled on next line for compatibility |
|
1069 | - // with magic factories. See ZF-6660. |
|
1070 | - if (!class_exists($name . '_' . $class, false)) { |
|
1067 | + try { |
|
1068 | + // Autoloading disabled on next line for compatibility |
|
1069 | + // with magic factories. See ZF-6660. |
|
1070 | + if (!class_exists($name . '_' . $class, false)) { |
|
1071 | 1071 | require_once 'Zend/Loader.php'; |
1072 | 1072 | @Zend_Loader::loadClass($name . '_' . $class); |
1073 | - } |
|
1074 | - $foundClassName = $name . '_' . $class; |
|
1075 | - break; |
|
1076 | - } catch (Zend_Exception $e) { |
|
1077 | - // package wasn't here- continue searching |
|
1078 | - } catch (ErrorException $e) { |
|
1079 | - // package wasn't here- continue searching |
|
1080 | - // @see ZF-7013 and ZF-11959 |
|
1081 | - } |
|
1073 | + } |
|
1074 | + $foundClassName = $name . '_' . $class; |
|
1075 | + break; |
|
1076 | + } catch (Zend_Exception $e) { |
|
1077 | + // package wasn't here- continue searching |
|
1078 | + } catch (ErrorException $e) { |
|
1079 | + // package wasn't here- continue searching |
|
1080 | + // @see ZF-7013 and ZF-11959 |
|
1081 | + } |
|
1082 | 1082 | } |
1083 | 1083 | if ($foundClassName != null) { |
1084 | 1084 | $reflectionObj = new ReflectionClass($foundClassName); |
@@ -208,7 +208,7 @@ discard block |
||
208 | 208 | * by passing false to the |
209 | 209 | * useObjectMapping() function. |
210 | 210 | */ |
211 | - public function getFeed($uri, $className='Zend_Gdata_App_Feed') |
|
211 | + public function getFeed($uri, $className = 'Zend_Gdata_App_Feed') |
|
212 | 212 | { |
213 | 213 | return $this->importUrl($uri, $className, null); |
214 | 214 | } |
@@ -223,7 +223,7 @@ discard block |
||
223 | 223 | * by passing false to the |
224 | 224 | * useObjectMapping() function. |
225 | 225 | */ |
226 | - public function getEntry($uri, $className='Zend_Gdata_App_Entry') |
|
226 | + public function getEntry($uri, $className = 'Zend_Gdata_App_Entry') |
|
227 | 227 | { |
228 | 228 | return $this->importUrl($uri, $className, null); |
229 | 229 | } |
@@ -555,7 +555,7 @@ discard block |
||
555 | 555 | if ($method != 'DELETE' && ( |
556 | 556 | !array_key_exists('If-Match', $headers) && |
557 | 557 | !array_key_exists('If-None-Match', $headers) |
558 | - ) ) { |
|
558 | + )) { |
|
559 | 559 | $allowWeak = $method == 'GET'; |
560 | 560 | if ($ifMatchHeader = $this->generateIfMatchHeaderData( |
561 | 561 | $data, $allowWeak)) { |
@@ -610,7 +610,7 @@ discard block |
||
610 | 610 | $minor = $this->getMinorProtocolVersion(); |
611 | 611 | if ($major >= 2) { |
612 | 612 | $headers['GData-Version'] = $major + |
613 | - (($minor === null) ? '.' + $minor : ''); |
|
613 | + (($minor === null) ? '.' +$minor : ''); |
|
614 | 614 | } |
615 | 615 | |
616 | 616 | // check the overridden method |
@@ -734,7 +734,7 @@ discard block |
||
734 | 734 | * to false. |
735 | 735 | */ |
736 | 736 | public static function import($uri, $client = null, |
737 | - $className='Zend_Gdata_App_Feed', $useObjectMapping = true) |
|
737 | + $className = 'Zend_Gdata_App_Feed', $useObjectMapping = true) |
|
738 | 738 | { |
739 | 739 | $app = new Zend_Gdata_App($client); |
740 | 740 | $requestData = $app->prepareRequest('GET', $uri); |
@@ -765,7 +765,7 @@ discard block |
||
765 | 765 | * by passing false to the |
766 | 766 | * useObjectMapping() function. |
767 | 767 | */ |
768 | - public function importUrl($url, $className='Zend_Gdata_App_Feed', |
|
768 | + public function importUrl($url, $className = 'Zend_Gdata_App_Feed', |
|
769 | 769 | $extraHeaders = array()) |
770 | 770 | { |
771 | 771 | |
@@ -819,7 +819,7 @@ discard block |
||
819 | 819 | * @return Zend_Gdata_App_Feed |
820 | 820 | */ |
821 | 821 | public static function importString($string, |
822 | - $className='Zend_Gdata_App_Feed', $majorProtocolVersion = null, |
|
822 | + $className = 'Zend_Gdata_App_Feed', $majorProtocolVersion = null, |
|
823 | 823 | $minorProtocolVersion = null) |
824 | 824 | { |
825 | 825 | |
@@ -865,7 +865,7 @@ discard block |
||
865 | 865 | * @return Zend_Gdata_App_Feed |
866 | 866 | */ |
867 | 867 | public static function importFile($filename, |
868 | - $className='Zend_Gdata_App_Feed', $useIncludePath = false) |
|
868 | + $className = 'Zend_Gdata_App_Feed', $useIncludePath = false) |
|
869 | 869 | { |
870 | 870 | @ini_set('track_errors', 1); |
871 | 871 | $feed = @file_get_contents($filename, $useIncludePath); |
@@ -984,7 +984,7 @@ discard block |
||
984 | 984 | * @return Zend_Gdata_App_Entry The entry returned by the service after |
985 | 985 | * insertion. |
986 | 986 | */ |
987 | - public function insertEntry($data, $uri, $className='Zend_Gdata_App_Entry', |
|
987 | + public function insertEntry($data, $uri, $className = 'Zend_Gdata_App_Entry', |
|
988 | 988 | $extraHeaders = array()) |
989 | 989 | { |
990 | 990 | if (!class_exists($className, false)) { |
@@ -37,7 +37,7 @@ discard block |
||
37 | 37 | * |
38 | 38 | * This class should never be instantiated directly. Instead, instantiate a |
39 | 39 | * class which inherits from this class. |
40 | - * |
|
40 | + * |
|
41 | 41 | * @category Zend |
42 | 42 | * @package Zend_Gdata |
43 | 43 | * @subpackage Gapps |
@@ -105,19 +105,19 @@ discard block |
||
105 | 105 | * @param string $domain (optional) A fully-qualified domain to use |
106 | 106 | * instead of the default domain for this service instance. |
107 | 107 | */ |
108 | - public function getBaseUrl($domain = null) |
|
109 | - { |
|
110 | - if ($domain !== null) { |
|
111 | - return Zend_Gdata_Gapps::APPS_BASE_FEED_URI . '/' . $domain; |
|
112 | - } |
|
113 | - else if ($this->_domain !== null) { |
|
114 | - return Zend_Gdata_Gapps::APPS_BASE_FEED_URI . '/' . $this->_domain; |
|
115 | - } |
|
116 | - else { |
|
117 | - require_once 'Zend/Gdata/App/InvalidArgumentException.php'; |
|
118 | - throw new Zend_Gdata_App_InvalidArgumentException( |
|
119 | - 'Domain must be specified.'); |
|
120 | - } |
|
121 | - } |
|
108 | + public function getBaseUrl($domain = null) |
|
109 | + { |
|
110 | + if ($domain !== null) { |
|
111 | + return Zend_Gdata_Gapps::APPS_BASE_FEED_URI . '/' . $domain; |
|
112 | + } |
|
113 | + else if ($this->_domain !== null) { |
|
114 | + return Zend_Gdata_Gapps::APPS_BASE_FEED_URI . '/' . $this->_domain; |
|
115 | + } |
|
116 | + else { |
|
117 | + require_once 'Zend/Gdata/App/InvalidArgumentException.php'; |
|
118 | + throw new Zend_Gdata_App_InvalidArgumentException( |
|
119 | + 'Domain must be specified.'); |
|
120 | + } |
|
121 | + } |
|
122 | 122 | |
123 | 123 | } |
@@ -109,11 +109,9 @@ |
||
109 | 109 | { |
110 | 110 | if ($domain !== null) { |
111 | 111 | return Zend_Gdata_Gapps::APPS_BASE_FEED_URI . '/' . $domain; |
112 | - } |
|
113 | - else if ($this->_domain !== null) { |
|
112 | + } else if ($this->_domain !== null) { |
|
114 | 113 | return Zend_Gdata_Gapps::APPS_BASE_FEED_URI . '/' . $this->_domain; |
115 | - } |
|
116 | - else { |
|
114 | + } else { |
|
117 | 115 | require_once 'Zend/Gdata/App/InvalidArgumentException.php'; |
118 | 116 | throw new Zend_Gdata_App_InvalidArgumentException( |
119 | 117 | 'Domain must be specified.'); |
@@ -110,14 +110,14 @@ |
||
110 | 110 | protected function takeAttributeFromDOM($attribute) |
111 | 111 | { |
112 | 112 | switch ($attribute->localName) { |
113 | - case 'familyName': |
|
114 | - $this->_familyName = $attribute->nodeValue; |
|
115 | - break; |
|
116 | - case 'givenName': |
|
117 | - $this->_givenName = $attribute->nodeValue; |
|
118 | - break; |
|
119 | - default: |
|
120 | - parent::takeAttributeFromDOM($attribute); |
|
113 | + case 'familyName': |
|
114 | + $this->_familyName = $attribute->nodeValue; |
|
115 | + break; |
|
116 | + case 'givenName': |
|
117 | + $this->_givenName = $attribute->nodeValue; |
|
118 | + break; |
|
119 | + default: |
|
120 | + parent::takeAttributeFromDOM($attribute); |
|
121 | 121 | } |
122 | 122 | } |
123 | 123 |
@@ -174,6 +174,6 @@ |
||
174 | 174 | public function __toString() |
175 | 175 | { |
176 | 176 | return "Property Name: " . $this->getName() . |
177 | - "\nProperty Value: " . $this->getValue(); |
|
177 | + "\nProperty Value: " . $this->getValue(); |
|
178 | 178 | } |
179 | 179 | } |
@@ -65,14 +65,14 @@ |
||
65 | 65 | protected function takeAttributeFromDOM($attribute) |
66 | 66 | { |
67 | 67 | switch ($attribute->localName) { |
68 | - case 'name': |
|
69 | - $this->_name = $attribute->nodeValue; |
|
70 | - break; |
|
71 | - case 'value': |
|
72 | - $this->_value = $attribute->nodeValue; |
|
73 | - break; |
|
74 | - default: |
|
75 | - parent::takeAttributeFromDOM($attribute); |
|
68 | + case 'name': |
|
69 | + $this->_name = $attribute->nodeValue; |
|
70 | + break; |
|
71 | + case 'value': |
|
72 | + $this->_value = $attribute->nodeValue; |
|
73 | + break; |
|
74 | + default: |
|
75 | + parent::takeAttributeFromDOM($attribute); |
|
76 | 76 | } |
77 | 77 | } |
78 | 78 |