@@ -47,7 +47,7 @@ |
||
| 47 | 47 | public function __construct($id, $secret) |
| 48 | 48 | { |
| 49 | 49 | if (!is_string($id) |
| 50 | - // Keeping this for BC. Integers greater than PHP_INT_MAX will make is_int() return false |
|
| 50 | + // Keeping this for BC. Integers greater than PHP_INT_MAX will make is_int() return false |
|
| 51 | 51 | && !is_int($id)) { |
| 52 | 52 | throw new FacebookSDKException('The "app_id" must be formatted as a string since many app ID\'s are greater than PHP_INT_MAX on some systems.'); |
| 53 | 53 | } |
@@ -602,8 +602,8 @@ |
||
| 602 | 602 | } while (!$chunk->isLastChunk()); |
| 603 | 603 | |
| 604 | 604 | return [ |
| 605 | - 'video_id' => $chunk->getVideoId(), |
|
| 606 | - 'success' => $uploader->finish($endpoint, $chunk->getUploadSessionId(), $metadata), |
|
| 605 | + 'video_id' => $chunk->getVideoId(), |
|
| 606 | + 'success' => $uploader->finish($endpoint, $chunk->getUploadSessionId(), $metadata), |
|
| 607 | 607 | ]; |
| 608 | 608 | } |
| 609 | 609 | |
@@ -75,9 +75,4 @@ |
||
| 75 | 75 | var_dump($accessToken->getValue()); |
| 76 | 76 | } |
| 77 | 77 | |
| 78 | -$_SESSION['fb_access_token'] = (string)$accessToken; |
|
| 79 | - |
|
| 80 | -header('Location: member.php'); |
|
| 81 | -?> |
|
| 82 | -</body> |
|
| 83 | -</html> |
|
| 84 | 78 | \ No newline at end of file |
| 79 | +$_SESSION['fb_access_token'] = (string)$accessToken |
|
| 85 | 80 | \ No newline at end of file |
@@ -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(); |
@@ -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 | /** |
@@ -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. |
@@ -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 | } |
@@ -121,13 +121,13 @@ |
||
| 121 | 121 | } |
| 122 | 122 | |
| 123 | 123 | /** |
| 124 | - * Get the value of this element's token attribute. |
|
| 125 | - * |
|
| 126 | - * @return string The token's text value |
|
| 127 | - */ |
|
| 124 | + * Get the value of this element's token attribute. |
|
| 125 | + * |
|
| 126 | + * @return string The token's text value |
|
| 127 | + */ |
|
| 128 | 128 | public function getTokenValue() |
| 129 | 129 | { |
| 130 | - return $this->getToken()->getText(); |
|
| 130 | + return $this->getToken()->getText(); |
|
| 131 | 131 | } |
| 132 | 132 | |
| 133 | 133 | } |
@@ -121,13 +121,13 @@ |
||
| 121 | 121 | } |
| 122 | 122 | |
| 123 | 123 | /** |
| 124 | - * Get the value of this element's state attribute. |
|
| 125 | - * |
|
| 126 | - * @return string The state's text value |
|
| 127 | - */ |
|
| 124 | + * Get the value of this element's state attribute. |
|
| 125 | + * |
|
| 126 | + * @return string The state's text value |
|
| 127 | + */ |
|
| 128 | 128 | public function getStateValue() |
| 129 | 129 | { |
| 130 | - return $this->getState()->getText(); |
|
| 130 | + return $this->getState()->getText(); |
|
| 131 | 131 | } |
| 132 | 132 | |
| 133 | 133 | } |