@@ -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 | |
@@ -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 | |
@@ -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 | /** |
@@ -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 { |
@@ -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 | } |
@@ -70,7 +70,7 @@ |
||
| 70 | 70 | public function getDOM($doc = null, $majorVersion = 1, $minorVersion = null) |
| 71 | 71 | { |
| 72 | 72 | $element = parent::getDOM($doc, $majorVersion, $minorVersion); |
| 73 | - if ($this->_format!= null) { |
|
| 73 | + if ($this->_format != null) { |
|
| 74 | 74 | $element->setAttributeNS($this->lookupNamespace('yt'), 'yt:format', $this->_format); |
| 75 | 75 | } |
| 76 | 76 | return $element; |
@@ -68,7 +68,7 @@ |
||
| 68 | 68 | * @param string $role |
| 69 | 69 | * @param string $scheme |
| 70 | 70 | */ |
| 71 | - public function __construct($text = null, $role = null, $scheme = null, |
|
| 71 | + public function __construct($text = null, $role = null, $scheme = null, |
|
| 72 | 72 | $yttype = null) |
| 73 | 73 | { |
| 74 | 74 | $this->registerAllNamespaces(Zend_Gdata_Media::$namespaces); |
@@ -124,7 +124,7 @@ discard block |
||
| 124 | 124 | */ |
| 125 | 125 | public function setLocation($value) |
| 126 | 126 | { |
| 127 | - switch($value) { |
|
| 127 | + switch ($value) { |
|
| 128 | 128 | case null: |
| 129 | 129 | unset($this->_params['location']); |
| 130 | 130 | default: |
@@ -136,7 +136,7 @@ discard block |
||
| 136 | 136 | 'URL parameter'); |
| 137 | 137 | } |
| 138 | 138 | |
| 139 | - foreach($parameters as $param) { |
|
| 139 | + foreach ($parameters as $param) { |
|
| 140 | 140 | $temp = trim($param); |
| 141 | 141 | // strip off the optional exclamation mark for numeric check |
| 142 | 142 | if (substr($temp, -1) == '!') { |
@@ -176,7 +176,7 @@ discard block |
||
| 176 | 176 | */ |
| 177 | 177 | public function setLocationRadius($value) |
| 178 | 178 | { |
| 179 | - switch($value) { |
|
| 179 | + switch ($value) { |
|
| 180 | 180 | case null: |
| 181 | 181 | unset($this->_params['location-radius']); |
| 182 | 182 | default: |
@@ -350,7 +350,7 @@ discard block |
||
| 350 | 350 | default: |
| 351 | 351 | require_once 'Zend/Gdata/App/InvalidArgumentException.php'; |
| 352 | 352 | throw new Zend_Gdata_App_InvalidArgumentException( |
| 353 | - 'The safeSearch parameter only supports the values '. |
|
| 353 | + 'The safeSearch parameter only supports the values ' . |
|
| 354 | 354 | '\'none\', \'moderate\' or \'strict\'.'); |
| 355 | 355 | } |
| 356 | 356 | } |
@@ -461,7 +461,7 @@ discard block |
||
| 461 | 461 | continue; |
| 462 | 462 | } |
| 463 | 463 | |
| 464 | - switch($name) { |
|
| 464 | + switch ($name) { |
|
| 465 | 465 | case 'location-radius': |
| 466 | 466 | if ($majorProtocolVersion == 1) { |
| 467 | 467 | require_once 'Zend/Gdata/App/VersionException.php'; |