Completed
Branch develop (fbf8a2)
by Seth
05:55 queued 02:49
created
src/CanvasPageLink.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -87,7 +87,7 @@  discard block
 block discarded – undo
87 87
 				if (is_int($pageNumber) && $pageNumber > 0 && $model instanceof CanvasPageLink && is_string($this->name) && !empty($this->name)) {
88 88
 					$this->endpoint = $model->endpoint;
89 89
 					$this->params = $model->params;
90
-					switch($this->name) {
90
+					switch ($this->name) {
91 91
 						case self::PREV: {
92 92
 							$this->params[self::PARAM_PAGE_NUMBER] = $pageNumber - 1;
93 93
 							break;
@@ -179,7 +179,7 @@  discard block
 block discarded – undo
179 179
 		$arr = array();
180 180
 		$_key = $this->key;
181 181
 		$_page = $this->page;
182
-		foreach($this as $obj) {
182
+		foreach ($this as $obj) {
183 183
 			$arr[] = $obj->getArrayCopy();
184 184
 		}
185 185
 		$this->page = $_page;
Please login to merge, or discard this patch.
src/CanvasObject.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -117,7 +117,7 @@  discard block
 block discarded – undo
117 117
 	 *
118 118
 	 * @see http://php.net/manual/en/arrayaccess.offsetexists.php ArrayAccess::offsetExists()
119 119
 	 **/
120
-	public function offsetExists ($offset) {
120
+	public function offsetExists($offset) {
121 121
 		return isset($this->data[$offset]);
122 122
 	}
123 123
 	
@@ -130,7 +130,7 @@  discard block
 block discarded – undo
130 130
 	 *
131 131
 	 * @see http://php.net/manual/en/arrayaccess.offsetexists.php ArrayAccess::offsetGet()
132 132
 	 **/
133
-	public function offsetGet ($offset) {
133
+	public function offsetGet($offset) {
134 134
 		return $this->data[$offset];
135 135
 	}
136 136
 	
@@ -168,7 +168,7 @@  discard block
 block discarded – undo
168 168
 	 *
169 169
 	 * @see http://php.net/manual/en/arrayaccess.offsetunset.php ArrayAccess::offsetUnset()
170 170
 	 **/
171
-	public function offsetUnset ($offset) {
171
+	public function offsetUnset($offset) {
172 172
 		throw new CanvasObject_Exception(
173 173
 			'Canvas objects are immutable',
174 174
 			CanvasObject_Exception::IMMUTABLE
Please login to merge, or discard this patch.
src/CanvasArray.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -238,7 +238,7 @@
 block discarded – undo
238 238
 	public function getArrayCopy() {
239 239
 		$_key = $this->key;
240 240
 		$this->rewindToPageNumber(1);
241
-		while(isset($this->pagination[CanvasPageLink::NEXT])) {
241
+		while (isset($this->pagination[CanvasPageLink::NEXT])) {
242 242
 			$this->rewindToPageNumber($this->pagination[CanvasPageLink::NEXT]);
243 243
 		}
244 244
 		$this->key = $_key;
Please login to merge, or discard this patch.