Completed
Push — master ( d488ab...6453e7 )
by Stephen
53:31
created
src/wp-includes/SimplePie/Copyright.php 1 patch
Braces   +2 added lines, -4 removed lines patch added patch discarded remove patch
@@ -103,8 +103,7 @@  discard block
 block discarded – undo
103 103
 		if ($this->url !== null)
104 104
 		{
105 105
 			return $this->url;
106
-		}
107
-		else
106
+		} else
108 107
 		{
109 108
 			return null;
110 109
 		}
@@ -120,8 +119,7 @@  discard block
 block discarded – undo
120 119
 		if ($this->label !== null)
121 120
 		{
122 121
 			return $this->label;
123
-		}
124
-		else
122
+		} else
125 123
 		{
126 124
 			return null;
127 125
 		}
Please login to merge, or discard this patch.
src/wp-includes/SimplePie/File.php 3 patches
Indentation   +41 added lines, -41 removed lines patch added patch discarded remove patch
@@ -1,46 +1,46 @@
 block discarded – undo
1 1
 <?php
2 2
 /**
3
- * SimplePie
4
- *
5
- * A PHP-Based RSS and Atom Feed Framework.
6
- * Takes the hard work out of managing a complete RSS/Atom solution.
7
- *
8
- * Copyright (c) 2004-2012, Ryan Parman, Geoffrey Sneddon, Ryan McCue, and contributors
9
- * All rights reserved.
10
- *
11
- * Redistribution and use in source and binary forms, with or without modification, are
12
- * permitted provided that the following conditions are met:
13
- *
14
- * 	* Redistributions of source code must retain the above copyright notice, this list of
15
- * 	  conditions and the following disclaimer.
16
- *
17
- * 	* Redistributions in binary form must reproduce the above copyright notice, this list
18
- * 	  of conditions and the following disclaimer in the documentation and/or other materials
19
- * 	  provided with the distribution.
20
- *
21
- * 	* Neither the name of the SimplePie Team nor the names of its contributors may be used
22
- * 	  to endorse or promote products derived from this software without specific prior
23
- * 	  written permission.
24
- *
25
- * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS
26
- * OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY
27
- * AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDERS
28
- * AND CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
29
- * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
30
- * SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
31
- * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR
32
- * OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
33
- * POSSIBILITY OF SUCH DAMAGE.
34
- *
35
- * @package SimplePie
36
- * @version 1.3.1
37
- * @copyright 2004-2012 Ryan Parman, Geoffrey Sneddon, Ryan McCue
38
- * @author Ryan Parman
39
- * @author Geoffrey Sneddon
40
- * @author Ryan McCue
41
- * @link http://simplepie.org/ SimplePie
42
- * @license http://www.opensource.org/licenses/bsd-license.php BSD License
43
- */
3
+	 * SimplePie
4
+	 *
5
+	 * A PHP-Based RSS and Atom Feed Framework.
6
+	 * Takes the hard work out of managing a complete RSS/Atom solution.
7
+	 *
8
+	 * Copyright (c) 2004-2012, Ryan Parman, Geoffrey Sneddon, Ryan McCue, and contributors
9
+	 * All rights reserved.
10
+	 *
11
+	 * Redistribution and use in source and binary forms, with or without modification, are
12
+	 * permitted provided that the following conditions are met:
13
+	 *
14
+	 * 	* Redistributions of source code must retain the above copyright notice, this list of
15
+	 * 	  conditions and the following disclaimer.
16
+	 *
17
+	 * 	* Redistributions in binary form must reproduce the above copyright notice, this list
18
+	 * 	  of conditions and the following disclaimer in the documentation and/or other materials
19
+	 * 	  provided with the distribution.
20
+	 *
21
+	 * 	* Neither the name of the SimplePie Team nor the names of its contributors may be used
22
+	 * 	  to endorse or promote products derived from this software without specific prior
23
+	 * 	  written permission.
24
+	 *
25
+	 * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS
26
+	 * OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY
27
+	 * AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDERS
28
+	 * AND CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
29
+	 * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
30
+	 * SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
31
+	 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR
32
+	 * OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
33
+	 * POSSIBILITY OF SUCH DAMAGE.
34
+	 *
35
+	 * @package SimplePie
36
+	 * @version 1.3.1
37
+	 * @copyright 2004-2012 Ryan Parman, Geoffrey Sneddon, Ryan McCue
38
+	 * @author Ryan Parman
39
+	 * @author Geoffrey Sneddon
40
+	 * @author Ryan McCue
41
+	 * @link http://simplepie.org/ SimplePie
42
+	 * @license http://www.opensource.org/licenses/bsd-license.php BSD License
43
+	 */
44 44
 
45 45
 /**
46 46
  * Used for fetching remote files and reading local files
Please login to merge, or discard this patch.
Spacing   +12 added lines, -12 removed lines patch added patch discarded remove patch
@@ -82,11 +82,11 @@  discard block
 block discarded – undo
82 82
 				$useragent = ini_get('user_agent');
83 83
 				$this->useragent = $useragent;
84 84
 			}
85
-			if (!is_array($headers))
85
+			if ( ! is_array($headers))
86 86
 			{
87 87
 				$headers = array();
88 88
 			}
89
-			if (!$force_fsockopen && function_exists('curl_exec'))
89
+			if ( ! $force_fsockopen && function_exists('curl_exec'))
90 90
 			{
91 91
 				$this->method = SIMPLEPIE_FILE_SOURCE_REMOTE | SIMPLEPIE_FILE_SOURCE_CURL;
92 92
 				$fp = curl_init();
@@ -107,7 +107,7 @@  discard block
 block discarded – undo
107 107
 				curl_setopt($fp, CURLOPT_REFERER, $url);
108 108
 				curl_setopt($fp, CURLOPT_USERAGENT, $useragent);
109 109
 				curl_setopt($fp, CURLOPT_HTTPHEADER, $headers2);
110
-				if (!ini_get('open_basedir') && !ini_get('safe_mode') && version_compare(SimplePie_Misc::get_curl_version(), '7.15.2', '>='))
110
+				if ( ! ini_get('open_basedir') && ! ini_get('safe_mode') && version_compare(SimplePie_Misc::get_curl_version(), '7.15.2', '>='))
111 111
 				{
112 112
 					curl_setopt($fp, CURLOPT_FOLLOWLOCATION, 1);
113 113
 					curl_setopt($fp, CURLOPT_MAXREDIRS, $redirects);
@@ -121,7 +121,7 @@  discard block
 block discarded – undo
121 121
 				}
122 122
 				if (curl_errno($fp))
123 123
 				{
124
-					$this->error = 'cURL error ' . curl_errno($fp) . ': ' . curl_error($fp);
124
+					$this->error = 'cURL error '.curl_errno($fp).': '.curl_error($fp);
125 125
 					$this->success = false;
126 126
 				}
127 127
 				else
@@ -155,14 +155,14 @@  discard block
 block discarded – undo
155 155
 					$socket_host = "ssl://$url_parts[host]";
156 156
 					$url_parts['port'] = 443;
157 157
 				}
158
-				if (!isset($url_parts['port']))
158
+				if ( ! isset($url_parts['port']))
159 159
 				{
160 160
 					$url_parts['port'] = 80;
161 161
 				}
162 162
 				$fp = @fsockopen($socket_host, $url_parts['port'], $errno, $errstr, $timeout);
163
-				if (!$fp)
163
+				if ( ! $fp)
164 164
 				{
165
-					$this->error = 'fsockopen error: ' . $errstr;
165
+					$this->error = 'fsockopen error: '.$errstr;
166 166
 					$this->success = false;
167 167
 				}
168 168
 				else
@@ -193,7 +193,7 @@  discard block
 block discarded – undo
193 193
 
194 194
 					if (isset($url_parts['user']) && isset($url_parts['pass']))
195 195
 					{
196
-						$out .= "Authorization: Basic " . base64_encode("$url_parts[user]:$url_parts[pass]") . "\r\n";
196
+						$out .= "Authorization: Basic ".base64_encode("$url_parts[user]:$url_parts[pass]")."\r\n";
197 197
 					}
198 198
 					foreach ($headers as $key => $value)
199 199
 					{
@@ -205,12 +205,12 @@  discard block
 block discarded – undo
205 205
 					$info = stream_get_meta_data($fp);
206 206
 
207 207
 					$this->headers = '';
208
-					while (!$info['eof'] && !$info['timed_out'])
208
+					while ( ! $info['eof'] && ! $info['timed_out'])
209 209
 					{
210 210
 						$this->headers .= fread($fp, 1160);
211 211
 						$info = stream_get_meta_data($fp);
212 212
 					}
213
-					if (!$info['timed_out'])
213
+					if ( ! $info['timed_out'])
214 214
 					{
215 215
 						$parser = new SimplePie_HTTP_Parser($this->headers);
216 216
 						if ($parser->parse())
@@ -232,7 +232,7 @@  discard block
 block discarded – undo
232 232
 									case 'gzip':
233 233
 									case 'x-gzip':
234 234
 										$decoder = new SimplePie_gzdecode($this->body);
235
-										if (!$decoder->parse())
235
+										if ( ! $decoder->parse())
236 236
 										{
237 237
 											$this->error = 'Unable to decode HTTP "gzip" stream';
238 238
 											$this->success = false;
@@ -282,7 +282,7 @@  discard block
 block discarded – undo
282 282
 		else
283 283
 		{
284 284
 			$this->method = SIMPLEPIE_FILE_SOURCE_LOCAL | SIMPLEPIE_FILE_SOURCE_FILE_GET_CONTENTS;
285
-			if (!$this->body = file_get_contents($url))
285
+			if ( ! $this->body = file_get_contents($url))
286 286
 			{
287 287
 				$this->error = 'file_get_contents could not read the file';
288 288
 				$this->success = false;
Please login to merge, or discard this patch.
Braces   +11 added lines, -22 removed lines patch added patch discarded remove patch
@@ -123,8 +123,7 @@  discard block
 block discarded – undo
123 123
 				{
124 124
 					$this->error = 'cURL error ' . curl_errno($fp) . ': ' . curl_error($fp);
125 125
 					$this->success = false;
126
-				}
127
-				else
126
+				} else
128 127
 				{
129 128
 					$info = curl_getinfo($fp);
130 129
 					curl_close($fp);
@@ -144,8 +143,7 @@  discard block
 block discarded – undo
144 143
 						}
145 144
 					}
146 145
 				}
147
-			}
148
-			else
146
+			} else
149 147
 			{
150 148
 				$this->method = SIMPLEPIE_FILE_SOURCE_REMOTE | SIMPLEPIE_FILE_SOURCE_FSOCKOPEN;
151 149
 				$url_parts = parse_url($url);
@@ -164,8 +162,7 @@  discard block
 block discarded – undo
164 162
 				{
165 163
 					$this->error = 'fsockopen error: ' . $errstr;
166 164
 					$this->success = false;
167
-				}
168
-				else
165
+				} else
169 166
 				{
170 167
 					stream_set_timeout($fp, $timeout);
171 168
 					if (isset($url_parts['path']))
@@ -173,13 +170,11 @@  discard block
 block discarded – undo
173 170
 						if (isset($url_parts['query']))
174 171
 						{
175 172
 							$get = "$url_parts[path]?$url_parts[query]";
176
-						}
177
-						else
173
+						} else
178 174
 						{
179 175
 							$get = $url_parts['path'];
180 176
 						}
181
-					}
182
-					else
177
+					} else
183 178
 					{
184 179
 						$get = '/';
185 180
 					}
@@ -236,8 +231,7 @@  discard block
 block discarded – undo
236 231
 										{
237 232
 											$this->error = 'Unable to decode HTTP "gzip" stream';
238 233
 											$this->success = false;
239
-										}
240
-										else
234
+										} else
241 235
 										{
242 236
 											$this->body = $decoder->data;
243 237
 										}
@@ -247,16 +241,13 @@  discard block
 block discarded – undo
247 241
 										if (($decompressed = gzinflate($this->body)) !== false)
248 242
 										{
249 243
 											$this->body = $decompressed;
250
-										}
251
-										else if (($decompressed = gzuncompress($this->body)) !== false)
244
+										} else if (($decompressed = gzuncompress($this->body)) !== false)
252 245
 										{
253 246
 											$this->body = $decompressed;
254
-										}
255
-										else if (function_exists('gzdecode') && ($decompressed = gzdecode($this->body)) !== false)
247
+										} else if (function_exists('gzdecode') && ($decompressed = gzdecode($this->body)) !== false)
256 248
 										{
257 249
 											$this->body = $decompressed;
258
-										}
259
-										else
250
+										} else
260 251
 										{
261 252
 											$this->error = 'Unable to decode HTTP "deflate" stream';
262 253
 											$this->success = false;
@@ -269,8 +260,7 @@  discard block
 block discarded – undo
269 260
 								}
270 261
 							}
271 262
 						}
272
-					}
273
-					else
263
+					} else
274 264
 					{
275 265
 						$this->error = 'fsocket timed out';
276 266
 						$this->success = false;
@@ -278,8 +268,7 @@  discard block
 block discarded – undo
278 268
 					fclose($fp);
279 269
 				}
280 270
 			}
281
-		}
282
-		else
271
+		} else
283 272
 		{
284 273
 			$this->method = SIMPLEPIE_FILE_SOURCE_LOCAL | SIMPLEPIE_FILE_SOURCE_FILE_GET_CONTENTS;
285 274
 			if (!$this->body = file_get_contents($url))
Please login to merge, or discard this patch.
src/wp-includes/SimplePie/Credit.php 2 patches
Indentation   +41 added lines, -41 removed lines patch added patch discarded remove patch
@@ -1,46 +1,46 @@
 block discarded – undo
1 1
 <?php
2 2
 /**
3
- * SimplePie
4
- *
5
- * A PHP-Based RSS and Atom Feed Framework.
6
- * Takes the hard work out of managing a complete RSS/Atom solution.
7
- *
8
- * Copyright (c) 2004-2012, Ryan Parman, Geoffrey Sneddon, Ryan McCue, and contributors
9
- * All rights reserved.
10
- *
11
- * Redistribution and use in source and binary forms, with or without modification, are
12
- * permitted provided that the following conditions are met:
13
- *
14
- * 	* Redistributions of source code must retain the above copyright notice, this list of
15
- * 	  conditions and the following disclaimer.
16
- *
17
- * 	* Redistributions in binary form must reproduce the above copyright notice, this list
18
- * 	  of conditions and the following disclaimer in the documentation and/or other materials
19
- * 	  provided with the distribution.
20
- *
21
- * 	* Neither the name of the SimplePie Team nor the names of its contributors may be used
22
- * 	  to endorse or promote products derived from this software without specific prior
23
- * 	  written permission.
24
- *
25
- * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS
26
- * OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY
27
- * AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDERS
28
- * AND CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
29
- * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
30
- * SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
31
- * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR
32
- * OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
33
- * POSSIBILITY OF SUCH DAMAGE.
34
- *
35
- * @package SimplePie
36
- * @version 1.3.1
37
- * @copyright 2004-2012 Ryan Parman, Geoffrey Sneddon, Ryan McCue
38
- * @author Ryan Parman
39
- * @author Geoffrey Sneddon
40
- * @author Ryan McCue
41
- * @link http://simplepie.org/ SimplePie
42
- * @license http://www.opensource.org/licenses/bsd-license.php BSD License
43
- */
3
+	 * SimplePie
4
+	 *
5
+	 * A PHP-Based RSS and Atom Feed Framework.
6
+	 * Takes the hard work out of managing a complete RSS/Atom solution.
7
+	 *
8
+	 * Copyright (c) 2004-2012, Ryan Parman, Geoffrey Sneddon, Ryan McCue, and contributors
9
+	 * All rights reserved.
10
+	 *
11
+	 * Redistribution and use in source and binary forms, with or without modification, are
12
+	 * permitted provided that the following conditions are met:
13
+	 *
14
+	 * 	* Redistributions of source code must retain the above copyright notice, this list of
15
+	 * 	  conditions and the following disclaimer.
16
+	 *
17
+	 * 	* Redistributions in binary form must reproduce the above copyright notice, this list
18
+	 * 	  of conditions and the following disclaimer in the documentation and/or other materials
19
+	 * 	  provided with the distribution.
20
+	 *
21
+	 * 	* Neither the name of the SimplePie Team nor the names of its contributors may be used
22
+	 * 	  to endorse or promote products derived from this software without specific prior
23
+	 * 	  written permission.
24
+	 *
25
+	 * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS
26
+	 * OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY
27
+	 * AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDERS
28
+	 * AND CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
29
+	 * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
30
+	 * SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
31
+	 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR
32
+	 * OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
33
+	 * POSSIBILITY OF SUCH DAMAGE.
34
+	 *
35
+	 * @package SimplePie
36
+	 * @version 1.3.1
37
+	 * @copyright 2004-2012 Ryan Parman, Geoffrey Sneddon, Ryan McCue
38
+	 * @author Ryan Parman
39
+	 * @author Geoffrey Sneddon
40
+	 * @author Ryan McCue
41
+	 * @link http://simplepie.org/ SimplePie
42
+	 * @license http://www.opensource.org/licenses/bsd-license.php BSD License
43
+	 */
44 44
 
45 45
 /**
46 46
  * Handles `<media:credit>` as defined in Media RSS
Please login to merge, or discard this patch.
Braces   +3 added lines, -6 removed lines patch added patch discarded remove patch
@@ -112,8 +112,7 @@  discard block
 block discarded – undo
112 112
 		if ($this->role !== null)
113 113
 		{
114 114
 			return $this->role;
115
-		}
116
-		else
115
+		} else
117 116
 		{
118 117
 			return null;
119 118
 		}
@@ -129,8 +128,7 @@  discard block
 block discarded – undo
129 128
 		if ($this->scheme !== null)
130 129
 		{
131 130
 			return $this->scheme;
132
-		}
133
-		else
131
+		} else
134 132
 		{
135 133
 			return null;
136 134
 		}
@@ -146,8 +144,7 @@  discard block
 block discarded – undo
146 144
 		if ($this->name !== null)
147 145
 		{
148 146
 			return $this->name;
149
-		}
150
-		else
147
+		} else
151 148
 		{
152 149
 			return null;
153 150
 		}
Please login to merge, or discard this patch.
src/wp-includes/SimplePie/Rating.php 1 patch
Braces   +2 added lines, -4 removed lines patch added patch discarded remove patch
@@ -103,8 +103,7 @@  discard block
 block discarded – undo
103 103
 		if ($this->scheme !== null)
104 104
 		{
105 105
 			return $this->scheme;
106
-		}
107
-		else
106
+		} else
108 107
 		{
109 108
 			return null;
110 109
 		}
@@ -120,8 +119,7 @@  discard block
 block discarded – undo
120 119
 		if ($this->value !== null)
121 120
 		{
122 121
 			return $this->value;
123
-		}
124
-		else
122
+		} else
125 123
 		{
126 124
 			return null;
127 125
 		}
Please login to merge, or discard this patch.
src/wp-includes/SimplePie/Exception.php 1 patch
Indentation   +41 added lines, -41 removed lines patch added patch discarded remove patch
@@ -1,46 +1,46 @@
 block discarded – undo
1 1
 <?php
2 2
 /**
3
- * SimplePie
4
- *
5
- * A PHP-Based RSS and Atom Feed Framework.
6
- * Takes the hard work out of managing a complete RSS/Atom solution.
7
- *
8
- * Copyright (c) 2004-2012, Ryan Parman, Geoffrey Sneddon, Ryan McCue, and contributors
9
- * All rights reserved.
10
- *
11
- * Redistribution and use in source and binary forms, with or without modification, are
12
- * permitted provided that the following conditions are met:
13
- *
14
- * 	* Redistributions of source code must retain the above copyright notice, this list of
15
- * 	  conditions and the following disclaimer.
16
- *
17
- * 	* Redistributions in binary form must reproduce the above copyright notice, this list
18
- * 	  of conditions and the following disclaimer in the documentation and/or other materials
19
- * 	  provided with the distribution.
20
- *
21
- * 	* Neither the name of the SimplePie Team nor the names of its contributors may be used
22
- * 	  to endorse or promote products derived from this software without specific prior
23
- * 	  written permission.
24
- *
25
- * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS
26
- * OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY
27
- * AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDERS
28
- * AND CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
29
- * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
30
- * SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
31
- * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR
32
- * OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
33
- * POSSIBILITY OF SUCH DAMAGE.
34
- *
35
- * @package SimplePie
36
- * @version 1.4-dev
37
- * @copyright 2004-2012 Ryan Parman, Geoffrey Sneddon, Ryan McCue
38
- * @author Ryan Parman
39
- * @author Geoffrey Sneddon
40
- * @author Ryan McCue
41
- * @link http://simplepie.org/ SimplePie
42
- * @license http://www.opensource.org/licenses/bsd-license.php BSD License
43
- */
3
+	 * SimplePie
4
+	 *
5
+	 * A PHP-Based RSS and Atom Feed Framework.
6
+	 * Takes the hard work out of managing a complete RSS/Atom solution.
7
+	 *
8
+	 * Copyright (c) 2004-2012, Ryan Parman, Geoffrey Sneddon, Ryan McCue, and contributors
9
+	 * All rights reserved.
10
+	 *
11
+	 * Redistribution and use in source and binary forms, with or without modification, are
12
+	 * permitted provided that the following conditions are met:
13
+	 *
14
+	 * 	* Redistributions of source code must retain the above copyright notice, this list of
15
+	 * 	  conditions and the following disclaimer.
16
+	 *
17
+	 * 	* Redistributions in binary form must reproduce the above copyright notice, this list
18
+	 * 	  of conditions and the following disclaimer in the documentation and/or other materials
19
+	 * 	  provided with the distribution.
20
+	 *
21
+	 * 	* Neither the name of the SimplePie Team nor the names of its contributors may be used
22
+	 * 	  to endorse or promote products derived from this software without specific prior
23
+	 * 	  written permission.
24
+	 *
25
+	 * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS
26
+	 * OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY
27
+	 * AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDERS
28
+	 * AND CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
29
+	 * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
30
+	 * SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
31
+	 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR
32
+	 * OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
33
+	 * POSSIBILITY OF SUCH DAMAGE.
34
+	 *
35
+	 * @package SimplePie
36
+	 * @version 1.4-dev
37
+	 * @copyright 2004-2012 Ryan Parman, Geoffrey Sneddon, Ryan McCue
38
+	 * @author Ryan Parman
39
+	 * @author Geoffrey Sneddon
40
+	 * @author Ryan McCue
41
+	 * @link http://simplepie.org/ SimplePie
42
+	 * @license http://www.opensource.org/licenses/bsd-license.php BSD License
43
+	 */
44 44
 
45 45
 /**
46 46
  * General SimplePie exception class
Please login to merge, or discard this patch.
src/wp-includes/SimplePie/Caption.php 1 patch
Braces   +5 added lines, -10 removed lines patch added patch discarded remove patch
@@ -131,8 +131,7 @@  discard block
 block discarded – undo
131 131
 		if ($this->endTime !== null)
132 132
 		{
133 133
 			return $this->endTime;
134
-		}
135
-		else
134
+		} else
136 135
 		{
137 136
 			return null;
138 137
 		}
@@ -149,8 +148,7 @@  discard block
 block discarded – undo
149 148
 		if ($this->lang !== null)
150 149
 		{
151 150
 			return $this->lang;
152
-		}
153
-		else
151
+		} else
154 152
 		{
155 153
 			return null;
156 154
 		}
@@ -166,8 +164,7 @@  discard block
 block discarded – undo
166 164
 		if ($this->startTime !== null)
167 165
 		{
168 166
 			return $this->startTime;
169
-		}
170
-		else
167
+		} else
171 168
 		{
172 169
 			return null;
173 170
 		}
@@ -183,8 +180,7 @@  discard block
 block discarded – undo
183 180
 		if ($this->text !== null)
184 181
 		{
185 182
 			return $this->text;
186
-		}
187
-		else
183
+		} else
188 184
 		{
189 185
 			return null;
190 186
 		}
@@ -200,8 +196,7 @@  discard block
 block discarded – undo
200 196
 		if ($this->type !== null)
201 197
 		{
202 198
 			return $this->type;
203
-		}
204
-		else
199
+		} else
205 200
 		{
206 201
 			return null;
207 202
 		}
Please login to merge, or discard this patch.
src/wp-includes/SimplePie/gzdecode.php 1 patch
Braces   +7 added lines, -14 removed lines patch added patch discarded remove patch
@@ -261,8 +261,7 @@  discard block
 block discarded – undo
261 261
 					// Set the extra field to the given data
262 262
 					$this->extra_field = substr($this->compressed_data, $this->position, $len);
263 263
 					$this->position += $len;
264
-				}
265
-				else
264
+				} else
266 265
 				{
267 266
 					return false;
268 267
 				}
@@ -281,8 +280,7 @@  discard block
 block discarded – undo
281 280
 					// Set the original filename to the given string
282 281
 					$this->filename = substr($this->compressed_data, $this->position, $len);
283 282
 					$this->position += $len + 1;
284
-				}
285
-				else
283
+				} else
286 284
 				{
287 285
 					return false;
288 286
 				}
@@ -301,8 +299,7 @@  discard block
 block discarded – undo
301 299
 					// Set the original comment to the given string
302 300
 					$this->comment = substr($this->compressed_data, $this->position, $len);
303 301
 					$this->position += $len + 1;
304
-				}
305
-				else
302
+				} else
306 303
 				{
307 304
 					return false;
308 305
 				}
@@ -322,13 +319,11 @@  discard block
 block discarded – undo
322 319
 					if ((crc32(substr($this->compressed_data, 0, $this->position)) & 0xFFFF) === $crc)
323 320
 					{
324 321
 						$this->position += 2;
325
-					}
326
-					else
322
+					} else
327 323
 					{
328 324
 						return false;
329 325
 					}
330
-				}
331
-				else
326
+				} else
332 327
 				{
333 328
 					return false;
334 329
 				}
@@ -338,8 +333,7 @@  discard block
 block discarded – undo
338 333
 			if (($this->data = gzinflate(substr($this->compressed_data, $this->position, -8))) === false)
339 334
 			{
340 335
 				return false;
341
-			}
342
-			else
336
+			} else
343 337
 			{
344 338
 				$this->position = $this->compressed_size - 8;
345 339
 			}
@@ -362,8 +356,7 @@  discard block
 block discarded – undo
362 356
 
363 357
 			// Wow, against all odds, we've actually got a valid gzip string
364 358
 			return true;
365
-		}
366
-		else
359
+		} else
367 360
 		{
368 361
 			return false;
369 362
 		}
Please login to merge, or discard this patch.
src/wp-includes/SimplePie/Content/Type/Sniffer.php 3 patches
Indentation   +41 added lines, -41 removed lines patch added patch discarded remove patch
@@ -1,46 +1,46 @@
 block discarded – undo
1 1
 <?php
2 2
 /**
3
- * SimplePie
4
- *
5
- * A PHP-Based RSS and Atom Feed Framework.
6
- * Takes the hard work out of managing a complete RSS/Atom solution.
7
- *
8
- * Copyright (c) 2004-2012, Ryan Parman, Geoffrey Sneddon, Ryan McCue, and contributors
9
- * All rights reserved.
10
- *
11
- * Redistribution and use in source and binary forms, with or without modification, are
12
- * permitted provided that the following conditions are met:
13
- *
14
- * 	* Redistributions of source code must retain the above copyright notice, this list of
15
- * 	  conditions and the following disclaimer.
16
- *
17
- * 	* Redistributions in binary form must reproduce the above copyright notice, this list
18
- * 	  of conditions and the following disclaimer in the documentation and/or other materials
19
- * 	  provided with the distribution.
20
- *
21
- * 	* Neither the name of the SimplePie Team nor the names of its contributors may be used
22
- * 	  to endorse or promote products derived from this software without specific prior
23
- * 	  written permission.
24
- *
25
- * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS
26
- * OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY
27
- * AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDERS
28
- * AND CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
29
- * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
30
- * SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
31
- * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR
32
- * OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
33
- * POSSIBILITY OF SUCH DAMAGE.
34
- *
35
- * @package SimplePie
36
- * @version 1.3.1
37
- * @copyright 2004-2012 Ryan Parman, Geoffrey Sneddon, Ryan McCue
38
- * @author Ryan Parman
39
- * @author Geoffrey Sneddon
40
- * @author Ryan McCue
41
- * @link http://simplepie.org/ SimplePie
42
- * @license http://www.opensource.org/licenses/bsd-license.php BSD License
43
- */
3
+	 * SimplePie
4
+	 *
5
+	 * A PHP-Based RSS and Atom Feed Framework.
6
+	 * Takes the hard work out of managing a complete RSS/Atom solution.
7
+	 *
8
+	 * Copyright (c) 2004-2012, Ryan Parman, Geoffrey Sneddon, Ryan McCue, and contributors
9
+	 * All rights reserved.
10
+	 *
11
+	 * Redistribution and use in source and binary forms, with or without modification, are
12
+	 * permitted provided that the following conditions are met:
13
+	 *
14
+	 * 	* Redistributions of source code must retain the above copyright notice, this list of
15
+	 * 	  conditions and the following disclaimer.
16
+	 *
17
+	 * 	* Redistributions in binary form must reproduce the above copyright notice, this list
18
+	 * 	  of conditions and the following disclaimer in the documentation and/or other materials
19
+	 * 	  provided with the distribution.
20
+	 *
21
+	 * 	* Neither the name of the SimplePie Team nor the names of its contributors may be used
22
+	 * 	  to endorse or promote products derived from this software without specific prior
23
+	 * 	  written permission.
24
+	 *
25
+	 * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS
26
+	 * OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY
27
+	 * AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDERS
28
+	 * AND CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
29
+	 * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
30
+	 * SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
31
+	 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR
32
+	 * OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
33
+	 * POSSIBILITY OF SUCH DAMAGE.
34
+	 *
35
+	 * @package SimplePie
36
+	 * @version 1.3.1
37
+	 * @copyright 2004-2012 Ryan Parman, Geoffrey Sneddon, Ryan McCue
38
+	 * @author Ryan Parman
39
+	 * @author Geoffrey Sneddon
40
+	 * @author Ryan McCue
41
+	 * @link http://simplepie.org/ SimplePie
42
+	 * @license http://www.opensource.org/licenses/bsd-license.php BSD License
43
+	 */
44 44
 
45 45
 
46 46
 /**
Please login to merge, or discard this patch.
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -85,7 +85,7 @@
 block discarded – undo
85 85
 	{
86 86
 		if (isset($this->file->headers['content-type']))
87 87
 		{
88
-			if (!isset($this->file->headers['content-encoding'])
88
+			if ( ! isset($this->file->headers['content-encoding'])
89 89
 				&& ($this->file->headers['content-type'] === 'text/plain'
90 90
 					|| $this->file->headers['content-type'] === 'text/plain; charset=ISO-8859-1'
91 91
 					|| $this->file->headers['content-type'] === 'text/plain; charset=iso-8859-1'
Please login to merge, or discard this patch.
Braces   +30 added lines, -60 removed lines patch added patch discarded remove patch
@@ -97,8 +97,7 @@  discard block
 block discarded – undo
97 97
 			if (($pos = strpos($this->file->headers['content-type'], ';')) !== false)
98 98
 			{
99 99
 				$official = substr($this->file->headers['content-type'], 0, $pos);
100
-			}
101
-			else
100
+			} else
102 101
 			{
103 102
 				$official = $this->file->headers['content-type'];
104 103
 			}
@@ -108,34 +107,28 @@  discard block
 block discarded – undo
108 107
 				|| $official === 'application/unknown')
109 108
 			{
110 109
 				return $this->unknown();
111
-			}
112
-			elseif (substr($official, -4) === '+xml'
110
+			} elseif (substr($official, -4) === '+xml'
113 111
 				|| $official === 'text/xml'
114 112
 				|| $official === 'application/xml')
115 113
 			{
116 114
 				return $official;
117
-			}
118
-			elseif (substr($official, 0, 6) === 'image/')
115
+			} elseif (substr($official, 0, 6) === 'image/')
119 116
 			{
120 117
 				if ($return = $this->image())
121 118
 				{
122 119
 					return $return;
123
-				}
124
-				else
120
+				} else
125 121
 				{
126 122
 					return $official;
127 123
 				}
128
-			}
129
-			elseif ($official === 'text/html')
124
+			} elseif ($official === 'text/html')
130 125
 			{
131 126
 				return $this->feed_or_html();
132
-			}
133
-			else
127
+			} else
134 128
 			{
135 129
 				return $official;
136 130
 			}
137
-		}
138
-		else
131
+		} else
139 132
 		{
140 133
 			return $this->unknown();
141 134
 		}
@@ -154,12 +147,10 @@  discard block
 block discarded – undo
154 147
 			|| substr($this->file->body, 0, 3) === "\xEF\xBB\xBF")
155 148
 		{
156 149
 			return 'text/plain';
157
-		}
158
-		elseif (preg_match('/[\x00-\x08\x0E-\x1A\x1C-\x1F]/', $this->file->body))
150
+		} elseif (preg_match('/[\x00-\x08\x0E-\x1A\x1C-\x1F]/', $this->file->body))
159 151
 		{
160 152
 			return 'application/octect-stream';
161
-		}
162
-		else
153
+		} else
163 154
 		{
164 155
 			return 'text/plain';
165 156
 		}
@@ -178,37 +169,29 @@  discard block
 block discarded – undo
178 169
 			|| strtolower(substr($this->file->body, $ws, 7)) === '<script')
179 170
 		{
180 171
 			return 'text/html';
181
-		}
182
-		elseif (substr($this->file->body, 0, 5) === '%PDF-')
172
+		} elseif (substr($this->file->body, 0, 5) === '%PDF-')
183 173
 		{
184 174
 			return 'application/pdf';
185
-		}
186
-		elseif (substr($this->file->body, 0, 11) === '%!PS-Adobe-')
175
+		} elseif (substr($this->file->body, 0, 11) === '%!PS-Adobe-')
187 176
 		{
188 177
 			return 'application/postscript';
189
-		}
190
-		elseif (substr($this->file->body, 0, 6) === 'GIF87a'
178
+		} elseif (substr($this->file->body, 0, 6) === 'GIF87a'
191 179
 			|| substr($this->file->body, 0, 6) === 'GIF89a')
192 180
 		{
193 181
 			return 'image/gif';
194
-		}
195
-		elseif (substr($this->file->body, 0, 8) === "\x89\x50\x4E\x47\x0D\x0A\x1A\x0A")
182
+		} elseif (substr($this->file->body, 0, 8) === "\x89\x50\x4E\x47\x0D\x0A\x1A\x0A")
196 183
 		{
197 184
 			return 'image/png';
198
-		}
199
-		elseif (substr($this->file->body, 0, 3) === "\xFF\xD8\xFF")
185
+		} elseif (substr($this->file->body, 0, 3) === "\xFF\xD8\xFF")
200 186
 		{
201 187
 			return 'image/jpeg';
202
-		}
203
-		elseif (substr($this->file->body, 0, 2) === "\x42\x4D")
188
+		} elseif (substr($this->file->body, 0, 2) === "\x42\x4D")
204 189
 		{
205 190
 			return 'image/bmp';
206
-		}
207
-		elseif (substr($this->file->body, 0, 4) === "\x00\x00\x01\x00")
191
+		} elseif (substr($this->file->body, 0, 4) === "\x00\x00\x01\x00")
208 192
 		{
209 193
 			return 'image/vnd.microsoft.icon';
210
-		}
211
-		else
194
+		} else
212 195
 		{
213 196
 			return $this->text_or_binary();
214 197
 		}
@@ -225,24 +208,19 @@  discard block
 block discarded – undo
225 208
 			|| substr($this->file->body, 0, 6) === 'GIF89a')
226 209
 		{
227 210
 			return 'image/gif';
228
-		}
229
-		elseif (substr($this->file->body, 0, 8) === "\x89\x50\x4E\x47\x0D\x0A\x1A\x0A")
211
+		} elseif (substr($this->file->body, 0, 8) === "\x89\x50\x4E\x47\x0D\x0A\x1A\x0A")
230 212
 		{
231 213
 			return 'image/png';
232
-		}
233
-		elseif (substr($this->file->body, 0, 3) === "\xFF\xD8\xFF")
214
+		} elseif (substr($this->file->body, 0, 3) === "\xFF\xD8\xFF")
234 215
 		{
235 216
 			return 'image/jpeg';
236
-		}
237
-		elseif (substr($this->file->body, 0, 2) === "\x42\x4D")
217
+		} elseif (substr($this->file->body, 0, 2) === "\x42\x4D")
238 218
 		{
239 219
 			return 'image/bmp';
240
-		}
241
-		elseif (substr($this->file->body, 0, 4) === "\x00\x00\x01\x00")
220
+		} elseif (substr($this->file->body, 0, 4) === "\x00\x00\x01\x00")
242 221
 		{
243 222
 			return 'image/vnd.microsoft.icon';
244
-		}
245
-		else
223
+		} else
246 224
 		{
247 225
 			return false;
248 226
 		}
@@ -283,44 +261,36 @@  discard block
 block discarded – undo
283 261
 				if ($pos < $len && ($pos = strpos($this->file->body, '-->', $pos)) !== false)
284 262
 				{
285 263
 					$pos += 3;
286
-				}
287
-				else
264
+				} else
288 265
 				{
289 266
 					return 'text/html';
290 267
 				}
291
-			}
292
-			elseif (substr($this->file->body, $pos, 1) === '!')
268
+			} elseif (substr($this->file->body, $pos, 1) === '!')
293 269
 			{
294 270
 				if ($pos < $len && ($pos = strpos($this->file->body, '>', $pos)) !== false)
295 271
 				{
296 272
 					$pos++;
297
-				}
298
-				else
273
+				} else
299 274
 				{
300 275
 					return 'text/html';
301 276
 				}
302
-			}
303
-			elseif (substr($this->file->body, $pos, 1) === '?')
277
+			} elseif (substr($this->file->body, $pos, 1) === '?')
304 278
 			{
305 279
 				if ($pos < $len && ($pos = strpos($this->file->body, '?>', $pos)) !== false)
306 280
 				{
307 281
 					$pos += 2;
308
-				}
309
-				else
282
+				} else
310 283
 				{
311 284
 					return 'text/html';
312 285
 				}
313
-			}
314
-			elseif (substr($this->file->body, $pos, 3) === 'rss'
286
+			} elseif (substr($this->file->body, $pos, 3) === 'rss'
315 287
 				|| substr($this->file->body, $pos, 7) === 'rdf:RDF')
316 288
 			{
317 289
 				return 'application/rss+xml';
318
-			}
319
-			elseif (substr($this->file->body, $pos, 4) === 'feed')
290
+			} elseif (substr($this->file->body, $pos, 4) === 'feed')
320 291
 			{
321 292
 				return 'application/atom+xml';
322
-			}
323
-			else
293
+			} else
324 294
 			{
325 295
 				return 'text/html';
326 296
 			}
Please login to merge, or discard this patch.
src/wp-includes/SimplePie/XML/Declaration/Parser.php 1 patch
Braces   +14 added lines, -28 removed lines patch added patch discarded remove patch
@@ -136,8 +136,7 @@  discard block
 block discarded – undo
136 136
 		if ($this->state === 'emit')
137 137
 		{
138 138
 			return true;
139
-		}
140
-		else
139
+		} else
141 140
 		{
142 141
 			$this->version = '';
143 142
 			$this->encoding = '';
@@ -194,8 +193,7 @@  discard block
 block discarded – undo
194 193
 		if ($this->skip_whitespace())
195 194
 		{
196 195
 			$this->state = 'version_name';
197
-		}
198
-		else
196
+		} else
199 197
 		{
200 198
 			$this->state = false;
201 199
 		}
@@ -208,8 +206,7 @@  discard block
 block discarded – undo
208 206
 			$this->position += 7;
209 207
 			$this->skip_whitespace();
210 208
 			$this->state = 'version_equals';
211
-		}
212
-		else
209
+		} else
213 210
 		{
214 211
 			$this->state = false;
215 212
 		}
@@ -222,8 +219,7 @@  discard block
 block discarded – undo
222 219
 			$this->position++;
223 220
 			$this->skip_whitespace();
224 221
 			$this->state = 'version_value';
225
-		}
226
-		else
222
+		} else
227 223
 		{
228 224
 			$this->state = false;
229 225
 		}
@@ -237,13 +233,11 @@  discard block
 block discarded – undo
237 233
 			if ($this->has_data())
238 234
 			{
239 235
 				$this->state = 'encoding_name';
240
-			}
241
-			else
236
+			} else
242 237
 			{
243 238
 				$this->state = 'emit';
244 239
 			}
245
-		}
246
-		else
240
+		} else
247 241
 		{
248 242
 			$this->state = false;
249 243
 		}
@@ -256,8 +250,7 @@  discard block
 block discarded – undo
256 250
 			$this->position += 8;
257 251
 			$this->skip_whitespace();
258 252
 			$this->state = 'encoding_equals';
259
-		}
260
-		else
253
+		} else
261 254
 		{
262 255
 			$this->state = 'standalone_name';
263 256
 		}
@@ -270,8 +263,7 @@  discard block
 block discarded – undo
270 263
 			$this->position++;
271 264
 			$this->skip_whitespace();
272 265
 			$this->state = 'encoding_value';
273
-		}
274
-		else
266
+		} else
275 267
 		{
276 268
 			$this->state = false;
277 269
 		}
@@ -285,13 +277,11 @@  discard block
 block discarded – undo
285 277
 			if ($this->has_data())
286 278
 			{
287 279
 				$this->state = 'standalone_name';
288
-			}
289
-			else
280
+			} else
290 281
 			{
291 282
 				$this->state = 'emit';
292 283
 			}
293
-		}
294
-		else
284
+		} else
295 285
 		{
296 286
 			$this->state = false;
297 287
 		}
@@ -304,8 +294,7 @@  discard block
 block discarded – undo
304 294
 			$this->position += 10;
305 295
 			$this->skip_whitespace();
306 296
 			$this->state = 'standalone_equals';
307
-		}
308
-		else
297
+		} else
309 298
 		{
310 299
 			$this->state = false;
311 300
 		}
@@ -318,8 +307,7 @@  discard block
 block discarded – undo
318 307
 			$this->position++;
319 308
 			$this->skip_whitespace();
320 309
 			$this->state = 'standalone_value';
321
-		}
322
-		else
310
+		} else
323 311
 		{
324 312
 			$this->state = false;
325 313
 		}
@@ -348,13 +336,11 @@  discard block
 block discarded – undo
348 336
 			if ($this->has_data())
349 337
 			{
350 338
 				$this->state = false;
351
-			}
352
-			else
339
+			} else
353 340
 			{
354 341
 				$this->state = 'emit';
355 342
 			}
356
-		}
357
-		else
343
+		} else
358 344
 		{
359 345
 			$this->state = false;
360 346
 		}
Please login to merge, or discard this patch.