@@ -80,10 +80,10 @@ |
||
80 | 80 | * @param string $value The nickname to filter search results by, or null |
81 | 81 | * to disable. |
82 | 82 | */ |
83 | - public function setNickname($value) |
|
84 | - { |
|
85 | - $this->_nickname = $value; |
|
86 | - } |
|
83 | + public function setNickname($value) |
|
84 | + { |
|
85 | + $this->_nickname = $value; |
|
86 | + } |
|
87 | 87 | |
88 | 88 | /** |
89 | 89 | * Get the nickname to query for. If no nickname is set, null will be |
@@ -77,10 +77,10 @@ |
||
77 | 77 | * @param string $value The email list name to filter search results by, |
78 | 78 | * or null to disable. |
79 | 79 | */ |
80 | - public function setEmailListName($value) |
|
81 | - { |
|
82 | - $this->_emailListName = $value; |
|
83 | - } |
|
80 | + public function setEmailListName($value) |
|
81 | + { |
|
82 | + $this->_emailListName = $value; |
|
83 | + } |
|
84 | 84 | |
85 | 85 | /** |
86 | 86 | * Get the email list name to query for. If no name is set, null will be |
@@ -59,8 +59,8 @@ |
||
59 | 59 | if ($majorVersion >= 2) { |
60 | 60 | if ($this->_etag != null) { |
61 | 61 | $element->setAttributeNS($this->lookupNamespace('gd'), |
62 | - 'gd:etag', |
|
63 | - $this->_etag); |
|
62 | + 'gd:etag', |
|
63 | + $this->_etag); |
|
64 | 64 | } |
65 | 65 | } |
66 | 66 | return $element; |
@@ -89,8 +89,8 @@ |
||
89 | 89 | if (! ($email && $password)) { |
90 | 90 | require_once 'Zend/Gdata/App/AuthException.php'; |
91 | 91 | throw new Zend_Gdata_App_AuthException( |
92 | - 'Please set your Google credentials before trying to ' . |
|
93 | - 'authenticate'); |
|
92 | + 'Please set your Google credentials before trying to ' . |
|
93 | + 'authenticate'); |
|
94 | 94 | } |
95 | 95 | |
96 | 96 | if ($client == null) { |
@@ -43,7 +43,7 @@ discard block |
||
43 | 43 | public static function formatTimestamp($timestamp) |
44 | 44 | { |
45 | 45 | $rfc3339 = '/^(\d{4})\-?(\d{2})\-?(\d{2})((T|t)(\d{2})\:?(\d{2})' . |
46 | - '\:?(\d{2})(\.\d{1,})?((Z|z)|([\+\-])(\d{2})\:?(\d{2})))?$/'; |
|
46 | + '\:?(\d{2})(\.\d{1,})?((Z|z)|([\+\-])(\d{2})\:?(\d{2})))?$/'; |
|
47 | 47 | |
48 | 48 | if (ctype_digit((string)$timestamp)) { |
49 | 49 | return gmdate('Y-m-d\TH:i:sP', $timestamp); |
@@ -61,15 +61,15 @@ discard block |
||
61 | 61 | } |
62 | 62 | |
63 | 63 | /** Find the greatest key that is less than or equal to a given upper |
64 | - * bound, and return the value associated with that key. |
|
65 | - * |
|
66 | - * @param integer|null $maximumKey The upper bound for keys. If null, the |
|
67 | - * maxiumum valued key will be found. |
|
68 | - * @param array $collection An two-dimensional array of key/value pairs |
|
69 | - * to search through. |
|
70 | - * @returns mixed The value corresponding to the located key. |
|
71 | - * @throws Zend_Gdata_App_Exception Thrown if $collection is empty. |
|
72 | - */ |
|
64 | + * bound, and return the value associated with that key. |
|
65 | + * |
|
66 | + * @param integer|null $maximumKey The upper bound for keys. If null, the |
|
67 | + * maxiumum valued key will be found. |
|
68 | + * @param array $collection An two-dimensional array of key/value pairs |
|
69 | + * to search through. |
|
70 | + * @returns mixed The value corresponding to the located key. |
|
71 | + * @throws Zend_Gdata_App_Exception Thrown if $collection is empty. |
|
72 | + */ |
|
73 | 73 | public static function findGreatestBoundedValue($maximumKey, $collection) |
74 | 74 | { |
75 | 75 | $found = false; |
@@ -95,7 +95,7 @@ discard block |
||
95 | 95 | * @see registerAllNamespaces() |
96 | 96 | * @var array |
97 | 97 | */ |
98 | - protected $_namespaces = array( |
|
98 | + protected $_namespaces = array( |
|
99 | 99 | 'atom' => array( |
100 | 100 | 1 => array( |
101 | 101 | 0 => 'http://www.w3.org/2005/Atom' |
@@ -268,8 +268,8 @@ discard block |
||
268 | 268 | $attribute->name; |
269 | 269 | $this->_extensionAttributes[$arrayIndex] = |
270 | 270 | array('namespaceUri' => $attribute->namespaceURI, |
271 | - 'name' => $attribute->localName, |
|
272 | - 'value' => $attribute->nodeValue); |
|
271 | + 'name' => $attribute->localName, |
|
272 | + 'value' => $attribute->nodeValue); |
|
273 | 273 | } |
274 | 274 | |
275 | 275 | /** |
@@ -307,7 +307,7 @@ discard block |
||
307 | 307 | @ini_set('track_errors', 1); |
308 | 308 | $doc = new DOMDocument(); |
309 | 309 | //$doc = @Zend_Xml_Security::scan($xml, $doc); |
310 | - $doc->loadXML($xml); |
|
310 | + $doc->loadXML($xml); |
|
311 | 311 | @ini_restore('track_errors'); |
312 | 312 | if (!$doc) { |
313 | 313 | require_once 'Zend/Gdata/App/Exception.php'; |
@@ -382,10 +382,10 @@ discard block |
||
382 | 382 | { |
383 | 383 | // Check for a memoized result |
384 | 384 | $key = $prefix . ' ' . |
385 | - ($majorVersion === null ? 'NULL' : $majorVersion) . |
|
386 | - ' '. ($minorVersion === null ? 'NULL' : $minorVersion); |
|
385 | + ($majorVersion === null ? 'NULL' : $majorVersion) . |
|
386 | + ' '. ($minorVersion === null ? 'NULL' : $minorVersion); |
|
387 | 387 | if (array_key_exists($key, self::$_namespaceLookupCache)) |
388 | - return self::$_namespaceLookupCache[$key]; |
|
388 | + return self::$_namespaceLookupCache[$key]; |
|
389 | 389 | // If no match, return the prefix by default |
390 | 390 | $result = $prefix; |
391 | 391 | |
@@ -431,9 +431,9 @@ discard block |
||
431 | 431 | * @return void |
432 | 432 | */ |
433 | 433 | public function registerNamespace($prefix, |
434 | - $namespaceUri, |
|
435 | - $majorVersion = 1, |
|
436 | - $minorVersion = 0) |
|
434 | + $namespaceUri, |
|
435 | + $majorVersion = 1, |
|
436 | + $minorVersion = 0) |
|
437 | 437 | { |
438 | 438 | $this->_namespaces[$prefix][$majorVersion][$minorVersion] = |
439 | 439 | $namespaceUri; |
@@ -107,23 +107,23 @@ |
||
107 | 107 | protected $_updated = null; |
108 | 108 | |
109 | 109 | /** |
110 | - * Indicates the major protocol version that should be used. |
|
111 | - * At present, recognized values are either 1 or 2. However, any integer |
|
112 | - * value >= 1 is considered valid. |
|
113 | - * |
|
114 | - * @see setMajorProtocolVersion() |
|
115 | - * @see getMajorProtocolVersion() |
|
116 | - */ |
|
110 | + * Indicates the major protocol version that should be used. |
|
111 | + * At present, recognized values are either 1 or 2. However, any integer |
|
112 | + * value >= 1 is considered valid. |
|
113 | + * |
|
114 | + * @see setMajorProtocolVersion() |
|
115 | + * @see getMajorProtocolVersion() |
|
116 | + */ |
|
117 | 117 | protected $_majorProtocolVersion = 1; |
118 | 118 | |
119 | 119 | /** |
120 | - * Indicates the minor protocol version that should be used. Can be set |
|
121 | - * to either an integer >= 0, or NULL if no minor version should be sent |
|
122 | - * to the server. |
|
123 | - * |
|
124 | - * @see setMinorProtocolVersion() |
|
125 | - * @see getMinorProtocolVersion() |
|
126 | - */ |
|
120 | + * Indicates the minor protocol version that should be used. Can be set |
|
121 | + * to either an integer >= 0, or NULL if no minor version should be sent |
|
122 | + * to the server. |
|
123 | + * |
|
124 | + * @see setMinorProtocolVersion() |
|
125 | + * @see getMinorProtocolVersion() |
|
126 | + */ |
|
127 | 127 | protected $_minorProtocolVersion = null; |
128 | 128 | |
129 | 129 | /** |
@@ -270,7 +270,7 @@ discard block |
||
270 | 270 | return (array_key_exists($key, $this->_entry)); |
271 | 271 | } |
272 | 272 | |
273 | - /** |
|
273 | + /** |
|
274 | 274 | * Retrieve the next set of results from this feed. |
275 | 275 | * |
276 | 276 | * @throws Zend_Gdata_App_Exception |
@@ -291,7 +291,7 @@ discard block |
||
291 | 291 | return $service->getFeed($nextLinkHref, get_class($this)); |
292 | 292 | } |
293 | 293 | |
294 | - /** |
|
294 | + /** |
|
295 | 295 | * Retrieve the previous set of results from this feed. |
296 | 296 | * |
297 | 297 | * @throws Zend_Gdata_App_Exception |
@@ -125,8 +125,8 @@ discard block |
||
125 | 125 | * |
126 | 126 | * @var string |
127 | 127 | */ |
128 | - const IN_REPLY_TO_SCHEME = |
|
129 | - 'http://gdata.youtube.com/schemas/2007#in-reply-to'; |
|
128 | + const IN_REPLY_TO_SCHEME = |
|
129 | + 'http://gdata.youtube.com/schemas/2007#in-reply-to'; |
|
130 | 130 | |
131 | 131 | /** |
132 | 132 | * The URI of the inbox feed for the currently authenticated user. |
@@ -592,7 +592,7 @@ discard block |
||
592 | 592 | { |
593 | 593 | if ($user !== null) { |
594 | 594 | $uri = self::USER_URI . '/' . $user . '/' . |
595 | - self::UPLOADS_URI_SUFFIX; |
|
595 | + self::UPLOADS_URI_SUFFIX; |
|
596 | 596 | } else if ($location instanceof Zend_Gdata_Query) { |
597 | 597 | $uri = $location->getQueryUrl($this->getMajorProtocolVersion()); |
598 | 598 | } else { |
@@ -613,7 +613,7 @@ discard block |
||
613 | 613 | { |
614 | 614 | if ($user !== null) { |
615 | 615 | $uri = self::USER_URI . '/' . $user . '/' . |
616 | - self::FAVORITES_URI_SUFFIX; |
|
616 | + self::FAVORITES_URI_SUFFIX; |
|
617 | 617 | } else if ($location instanceof Zend_Gdata_Query) { |
618 | 618 | $uri = $location->getQueryUrl($this->getMajorProtocolVersion()); |
619 | 619 | } else { |
@@ -849,7 +849,7 @@ discard block |
||
849 | 849 | * @param Zend_Gdata_YouTube_CommentEntry $commentEntry The comment entry |
850 | 850 | * to reply to |
851 | 851 | * @param string $commentText The text of the |
852 | - * comment to post |
|
852 | + * comment to post |
|
853 | 853 | * @return Zend_Gdata_YouTube_CommentEntry the posted comment |
854 | 854 | */ |
855 | 855 | public function replyToCommentEntry($commentEntry, $commentText) |