@@ -48,31 +48,31 @@ |
||
48 | 48 | { |
49 | 49 | |
50 | 50 | /** |
51 | - * The classname for individual feed elements. |
|
52 | - * |
|
53 | - * @var string |
|
54 | - */ |
|
51 | + * The classname for individual feed elements. |
|
52 | + * |
|
53 | + * @var string |
|
54 | + */ |
|
55 | 55 | protected $_entryClassName = 'Zend_Gdata_Spreadsheets_CellEntry'; |
56 | 56 | |
57 | 57 | /** |
58 | - * The classname for the feed. |
|
59 | - * |
|
60 | - * @var string |
|
61 | - */ |
|
58 | + * The classname for the feed. |
|
59 | + * |
|
60 | + * @var string |
|
61 | + */ |
|
62 | 62 | protected $_feedClassName = 'Zend_Gdata_Spreadsheets_CellFeed'; |
63 | 63 | |
64 | 64 | /** |
65 | - * The row count for the feed. |
|
66 | - * |
|
67 | - * @var Zend_Gdata_Spreadsheets_Extension_RowCount |
|
68 | - */ |
|
65 | + * The row count for the feed. |
|
66 | + * |
|
67 | + * @var Zend_Gdata_Spreadsheets_Extension_RowCount |
|
68 | + */ |
|
69 | 69 | protected $_rowCount = null; |
70 | 70 | |
71 | 71 | /** |
72 | - * The column count for the feed. |
|
73 | - * |
|
74 | - * @var Zend_Gdata_Spreadsheets_Extension_ColCount |
|
75 | - */ |
|
72 | + * The column count for the feed. |
|
73 | + * |
|
74 | + * @var Zend_Gdata_Spreadsheets_Extension_ColCount |
|
75 | + */ |
|
76 | 76 | protected $_colCount = null; |
77 | 77 | |
78 | 78 | /** |
@@ -258,9 +258,9 @@ |
||
258 | 258 | |
259 | 259 | // Set the mime type of the data. |
260 | 260 | if ($mimeType === null) { |
261 | - $filenameParts = explode('.', $fileLocation); |
|
262 | - $fileExtension = end($filenameParts); |
|
263 | - $mimeType = self::lookupMimeType($fileExtension); |
|
261 | + $filenameParts = explode('.', $fileLocation); |
|
262 | + $fileExtension = end($filenameParts); |
|
263 | + $mimeType = self::lookupMimeType($fileExtension); |
|
264 | 264 | } |
265 | 265 | |
266 | 266 | // Set the mime type for the upload request. |
@@ -118,7 +118,7 @@ |
||
118 | 118 | return $this->_valueString; |
119 | 119 | else { |
120 | 120 | return 'Starts: ' . $this->getStartTime() . ' ' . |
121 | - 'Ends: ' . $this->getEndTime(); |
|
121 | + 'Ends: ' . $this->getEndTime(); |
|
122 | 122 | } |
123 | 123 | } |
124 | 124 |
@@ -51,12 +51,12 @@ |
||
51 | 51 | parent::__construct($element); |
52 | 52 | } |
53 | 53 | |
54 | - /** |
|
55 | - * The classname for individual feed elements. |
|
56 | - * |
|
57 | - * @var string |
|
58 | - */ |
|
59 | - protected $_entryClassName = 'Zend_Gdata_Books_VolumeEntry'; |
|
54 | + /** |
|
55 | + * The classname for individual feed elements. |
|
56 | + * |
|
57 | + * @var string |
|
58 | + */ |
|
59 | + protected $_entryClassName = 'Zend_Gdata_Books_VolumeEntry'; |
|
60 | 60 | |
61 | 61 | } |
62 | 62 |
@@ -95,7 +95,7 @@ discard block |
||
95 | 95 | * @return void |
96 | 96 | */ |
97 | 97 | public function setAuthSubPrivateKeyFile($file, $passphrase = null, |
98 | - $useIncludePath = false) { |
|
98 | + $useIncludePath = false) { |
|
99 | 99 | $fp = @fopen($file, "r", $useIncludePath); |
100 | 100 | if (!$fp) { |
101 | 101 | require_once 'Zend/Gdata/App/InvalidArgumentException.php'; |
@@ -261,7 +261,7 @@ discard block |
||
261 | 261 | return $this->adapter; |
262 | 262 | } |
263 | 263 | |
264 | - /** |
|
264 | + /** |
|
265 | 265 | * Load the connection adapter |
266 | 266 | * |
267 | 267 | * @param Zend_Http_Client_Adapter_Interface $adapter |
@@ -272,7 +272,7 @@ discard block |
||
272 | 272 | if ($adapter == null) { |
273 | 273 | $this->adapter = $adapter; |
274 | 274 | } else { |
275 | - parent::setAdapter($adapter); |
|
275 | + parent::setAdapter($adapter); |
|
276 | 276 | } |
277 | 277 | } |
278 | 278 |
@@ -65,17 +65,17 @@ discard block |
||
65 | 65 | */ |
66 | 66 | public function read($bytesRequested) |
67 | 67 | { |
68 | - $len = strlen($this->_sourceString); |
|
69 | - if($this->_bytesRead == $len) { |
|
70 | - return FALSE; |
|
71 | - } else if($bytesRequested > $len - $this->_bytesRead) { |
|
72 | - $bytesRequested = $len - $this->_bytesRead; |
|
73 | - } |
|
68 | + $len = strlen($this->_sourceString); |
|
69 | + if($this->_bytesRead == $len) { |
|
70 | + return FALSE; |
|
71 | + } else if($bytesRequested > $len - $this->_bytesRead) { |
|
72 | + $bytesRequested = $len - $this->_bytesRead; |
|
73 | + } |
|
74 | 74 | |
75 | - $buffer = substr($this->_sourceString, $this->_bytesRead, $bytesRequested); |
|
76 | - $this->_bytesRead += $bytesRequested; |
|
75 | + $buffer = substr($this->_sourceString, $this->_bytesRead, $bytesRequested); |
|
76 | + $this->_bytesRead += $bytesRequested; |
|
77 | 77 | |
78 | - return $buffer; |
|
78 | + return $buffer; |
|
79 | 79 | } |
80 | 80 | |
81 | 81 | /** |
@@ -85,7 +85,7 @@ discard block |
||
85 | 85 | */ |
86 | 86 | public function getSize() |
87 | 87 | { |
88 | - return strlen($this->_sourceString); |
|
88 | + return strlen($this->_sourceString); |
|
89 | 89 | } |
90 | 90 | |
91 | 91 |
@@ -115,8 +115,8 @@ |
||
115 | 115 | if ($majorVersion >= 2) { |
116 | 116 | if ($this->_etag != null) { |
117 | 117 | $element->setAttributeNS($this->lookupNamespace('gd'), |
118 | - 'gd:etag', |
|
119 | - $this->_etag); |
|
118 | + 'gd:etag', |
|
119 | + $this->_etag); |
|
120 | 120 | } |
121 | 121 | } |
122 | 122 |
@@ -60,7 +60,7 @@ |
||
60 | 60 | */ |
61 | 61 | public function read($bytesRequested) |
62 | 62 | { |
63 | - return fread($this->_fileHandle, $bytesRequested); |
|
63 | + return fread($this->_fileHandle, $bytesRequested); |
|
64 | 64 | } |
65 | 65 | |
66 | 66 | } |
@@ -136,19 +136,19 @@ |
||
136 | 136 | public function read($bytesRequested) |
137 | 137 | { |
138 | 138 | if($this->_currentPart >= count($this->_parts)) { |
139 | - return FALSE; |
|
139 | + return FALSE; |
|
140 | 140 | } |
141 | 141 | |
142 | 142 | $activePart = $this->_parts[$this->_currentPart]; |
143 | 143 | $buffer = $activePart->read($bytesRequested); |
144 | 144 | |
145 | 145 | while(strlen($buffer) < $bytesRequested) { |
146 | - $this->_currentPart += 1; |
|
147 | - $nextBuffer = $this->read($bytesRequested - strlen($buffer)); |
|
148 | - if($nextBuffer === FALSE) { |
|
146 | + $this->_currentPart += 1; |
|
147 | + $nextBuffer = $this->read($bytesRequested - strlen($buffer)); |
|
148 | + if($nextBuffer === FALSE) { |
|
149 | 149 | break; |
150 | - } |
|
151 | - $buffer .= $nextBuffer; |
|
150 | + } |
|
151 | + $buffer .= $nextBuffer; |
|
152 | 152 | } |
153 | 153 | |
154 | 154 | return $buffer; |