@@ -142,7 +142,7 @@ |
||
142 | 142 | |
143 | 143 | $schemeHandler = new $className($scheme, $schemeSpecific); |
144 | 144 | |
145 | - if (! $schemeHandler instanceof Zend_Uri) { |
|
145 | + if (!$schemeHandler instanceof Zend_Uri) { |
|
146 | 146 | require_once 'Zend/Uri/Exception.php'; |
147 | 147 | throw new Zend_Uri_Exception("\"$className\" is not an instance of Zend_Uri"); |
148 | 148 | } |
@@ -260,7 +260,7 @@ discard block |
||
260 | 260 | if ('Zend_Loader' != $class) { |
261 | 261 | self::loadClass($class); |
262 | 262 | $methods = get_class_methods($class); |
263 | - if (!in_array('autoload', (array) $methods)) { |
|
263 | + if (!in_array('autoload', (array)$methods)) { |
|
264 | 264 | require_once 'Zend/Exception.php'; |
265 | 265 | throw new Zend_Exception("The class \"$class\" does not have an autoload() method"); |
266 | 266 | } |
@@ -312,7 +312,7 @@ discard block |
||
312 | 312 | if ($once) { |
313 | 313 | return include_once $filespec; |
314 | 314 | } else { |
315 | - return include $filespec ; |
|
315 | + return include $filespec; |
|
316 | 316 | } |
317 | 317 | } |
318 | 318 |
@@ -77,8 +77,8 @@ |
||
77 | 77 | if (version_compare(PHP_VERSION, '5.3.0', '<')) { |
78 | 78 | if (null !== ($e = $this->getPrevious())) { |
79 | 79 | return $e->__toString() |
80 | - . "\n\nNext " |
|
81 | - . parent::__toString(); |
|
80 | + . "\n\nNext " |
|
81 | + . parent::__toString(); |
|
82 | 82 | } |
83 | 83 | } |
84 | 84 | return parent::__toString(); |
@@ -43,10 +43,10 @@ |
||
43 | 43 | public function __construct($msg = '', $code = 0, Exception $previous = null) |
44 | 44 | { |
45 | 45 | if (version_compare(PHP_VERSION, '5.3.0', '<')) { |
46 | - parent::__construct($msg, (int) $code); |
|
46 | + parent::__construct($msg, (int)$code); |
|
47 | 47 | $this->_previous = $previous; |
48 | 48 | } else { |
49 | - parent::__construct($msg, (int) $code, $previous); |
|
49 | + parent::__construct($msg, (int)$code, $previous); |
|
50 | 50 | } |
51 | 51 | } |
52 | 52 |
@@ -254,13 +254,13 @@ |
||
254 | 254 | $fragment = strlen($this->_fragment) > 0 ? "#$this->_fragment" : ''; |
255 | 255 | |
256 | 256 | return $this->_scheme |
257 | - . '://' |
|
258 | - . $auth |
|
259 | - . $this->_host |
|
260 | - . $port |
|
261 | - . $this->_path |
|
262 | - . $query |
|
263 | - . $fragment; |
|
257 | + . '://' |
|
258 | + . $auth |
|
259 | + . $this->_host |
|
260 | + . $port |
|
261 | + . $this->_path |
|
262 | + . $query |
|
263 | + . $fragment; |
|
264 | 264 | } |
265 | 265 | |
266 | 266 | /** |
@@ -494,7 +494,7 @@ discard block |
||
494 | 494 | } |
495 | 495 | |
496 | 496 | // Check the port against the allowed values |
497 | - return ctype_digit((string) $port) and 1 <= $port and $port <= 65535; |
|
497 | + return ctype_digit((string)$port) and 1 <= $port and $port <= 65535; |
|
498 | 498 | } |
499 | 499 | |
500 | 500 | /** |
@@ -554,7 +554,7 @@ discard block |
||
554 | 554 | throw new Zend_Uri_Exception('Internal error: path validation failed'); |
555 | 555 | } |
556 | 556 | |
557 | - return (boolean) $status; |
|
557 | + return (boolean)$status; |
|
558 | 558 | } |
559 | 559 | |
560 | 560 | /** |
@@ -684,7 +684,7 @@ discard block |
||
684 | 684 | $query = http_build_query($query, '', '&'); |
685 | 685 | } else { |
686 | 686 | // If it is a string, make sure it is valid. If not parse and encode it |
687 | - $query = (string) $query; |
|
687 | + $query = (string)$query; |
|
688 | 688 | if ($this->validateQuery($query) === false) { |
689 | 689 | parse_str($query, $queryArray); |
690 | 690 | $query = http_build_query($queryArray, '', '&'); |
@@ -740,7 +740,7 @@ discard block |
||
740 | 740 | throw new Zend_Uri_Exception('Internal error: fragment validation failed'); |
741 | 741 | } |
742 | 742 | |
743 | - return (boolean) $status; |
|
743 | + return (boolean)$status; |
|
744 | 744 | } |
745 | 745 | |
746 | 746 | /** |
@@ -90,7 +90,7 @@ |
||
90 | 90 | $this->registerPackage('Zend_Gdata_Books_Extension'); |
91 | 91 | parent::__construct($client, $applicationId); |
92 | 92 | $this->_httpClient->setParameterPost('service', self::AUTH_SERVICE_NAME); |
93 | - } |
|
93 | + } |
|
94 | 94 | |
95 | 95 | /** |
96 | 96 | * Retrieves a feed of volumes. |
@@ -395,7 +395,7 @@ discard block |
||
395 | 395 | |
396 | 396 | public function __get($name) |
397 | 397 | { |
398 | - $method = 'get'.ucfirst($name); |
|
398 | + $method = 'get' . ucfirst($name); |
|
399 | 399 | if (method_exists($this, $method)) { |
400 | 400 | return call_user_func(array(&$this, $method)); |
401 | 401 | } else { |
@@ -406,7 +406,7 @@ discard block |
||
406 | 406 | |
407 | 407 | public function __set($name, $val) |
408 | 408 | { |
409 | - $method = 'set'.ucfirst($name); |
|
409 | + $method = 'set' . ucfirst($name); |
|
410 | 410 | if (method_exists($this, $method)) { |
411 | 411 | return call_user_func(array(&$this, $method), $val); |
412 | 412 | } else { |
@@ -102,14 +102,14 @@ |
||
102 | 102 | { |
103 | 103 | $absoluteNodeName = $child->namespaceURI . ':' . $child->localName; |
104 | 104 | switch ($absoluteNodeName) { |
105 | - case $this->lookupNamespace('exif') . ':' . 'tags': |
|
106 | - $tags = new Zend_Gdata_Exif_Extension_Tags(); |
|
107 | - $tags->transferFromDOM($child); |
|
108 | - $this->_tags = $tags; |
|
109 | - break; |
|
110 | - default: |
|
111 | - parent::takeChildFromDOM($child); |
|
112 | - break; |
|
105 | + case $this->lookupNamespace('exif') . ':' . 'tags': |
|
106 | + $tags = new Zend_Gdata_Exif_Extension_Tags(); |
|
107 | + $tags->transferFromDOM($child); |
|
108 | + $this->_tags = $tags; |
|
109 | + break; |
|
110 | + default: |
|
111 | + parent::takeChildFromDOM($child); |
|
112 | + break; |
|
113 | 113 | } |
114 | 114 | } |
115 | 115 |
@@ -109,16 +109,16 @@ |
||
109 | 109 | { |
110 | 110 | $element = parent::getDOM($doc, $majorVersion, $minorVersion); |
111 | 111 | if ($this->_videoId !== null) { |
112 | - $element->appendChild($this->_videoId->getDOM( |
|
113 | - $element->ownerDocument)); |
|
112 | + $element->appendChild($this->_videoId->getDOM( |
|
113 | + $element->ownerDocument)); |
|
114 | 114 | } |
115 | 115 | if ($this->_username !== null) { |
116 | - $element->appendChild($this->_username->getDOM( |
|
117 | - $element->ownerDocument)); |
|
116 | + $element->appendChild($this->_username->getDOM( |
|
117 | + $element->ownerDocument)); |
|
118 | 118 | } |
119 | 119 | if ($this->_rating !== null) { |
120 | - $element->appendChild($this->_rating->getDOM( |
|
121 | - $element->ownerDocument)); |
|
120 | + $element->appendChild($this->_rating->getDOM( |
|
121 | + $element->ownerDocument)); |
|
122 | 122 | } |
123 | 123 | return $element; |
124 | 124 | } |
@@ -211,7 +211,7 @@ |
||
211 | 211 | public function getActivityType() |
212 | 212 | { |
213 | 213 | $categories = $this->getCategory(); |
214 | - foreach($categories as $category) { |
|
214 | + foreach ($categories as $category) { |
|
215 | 215 | if ($category->getScheme() == self::ACTIVITY_CATEGORY_SCHEME) { |
216 | 216 | return $category->getTerm(); |
217 | 217 | } |
@@ -147,29 +147,29 @@ |
||
147 | 147 | { |
148 | 148 | $absoluteNodeName = $child->namespaceURI . ':' . $child->localName; |
149 | 149 | switch ($absoluteNodeName) { |
150 | - case $this->lookupNamespace('yt') . ':' . 'description': |
|
151 | - $description = new Zend_Gdata_YouTube_Extension_Description(); |
|
152 | - $description->transferFromDOM($child); |
|
153 | - $this->_description = $description; |
|
154 | - break; |
|
155 | - case $this->lookupNamespace('yt') . ':' . 'countHint': |
|
156 | - $countHint = new Zend_Gdata_YouTube_Extension_CountHint(); |
|
157 | - $countHint->transferFromDOM($child); |
|
158 | - $this->_countHint = $countHint; |
|
159 | - break; |
|
160 | - case $this->lookupNamespace('yt') . ':' . 'playlistId': |
|
161 | - $playlistId = new Zend_Gdata_YouTube_Extension_PlaylistId(); |
|
162 | - $playlistId->transferFromDOM($child); |
|
163 | - $this->_playlistId = $playlistId; |
|
164 | - break; |
|
165 | - case $this->lookupNamespace('gd') . ':' . 'feedLink': |
|
166 | - $feedLink = new Zend_Gdata_Extension_FeedLink(); |
|
167 | - $feedLink->transferFromDOM($child); |
|
168 | - $this->_feedLink[] = $feedLink; |
|
169 | - break; |
|
170 | - default: |
|
171 | - parent::takeChildFromDOM($child); |
|
172 | - break; |
|
150 | + case $this->lookupNamespace('yt') . ':' . 'description': |
|
151 | + $description = new Zend_Gdata_YouTube_Extension_Description(); |
|
152 | + $description->transferFromDOM($child); |
|
153 | + $this->_description = $description; |
|
154 | + break; |
|
155 | + case $this->lookupNamespace('yt') . ':' . 'countHint': |
|
156 | + $countHint = new Zend_Gdata_YouTube_Extension_CountHint(); |
|
157 | + $countHint->transferFromDOM($child); |
|
158 | + $this->_countHint = $countHint; |
|
159 | + break; |
|
160 | + case $this->lookupNamespace('yt') . ':' . 'playlistId': |
|
161 | + $playlistId = new Zend_Gdata_YouTube_Extension_PlaylistId(); |
|
162 | + $playlistId->transferFromDOM($child); |
|
163 | + $this->_playlistId = $playlistId; |
|
164 | + break; |
|
165 | + case $this->lookupNamespace('gd') . ':' . 'feedLink': |
|
166 | + $feedLink = new Zend_Gdata_Extension_FeedLink(); |
|
167 | + $feedLink->transferFromDOM($child); |
|
168 | + $this->_feedLink[] = $feedLink; |
|
169 | + break; |
|
170 | + default: |
|
171 | + parent::takeChildFromDOM($child); |
|
172 | + break; |
|
173 | 173 | } |
174 | 174 | } |
175 | 175 |