Skip to content

Commit 0ebb53a

Browse files
committed
remove trailing whitespace
1 parent 76ab70e commit 0ebb53a

File tree

2 files changed

+14
-14
lines changed

2 files changed

+14
-14
lines changed

XML/Parser.php

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -255,7 +255,7 @@ function __construct($srcenc = null, $mode = 'event', $tgtenc = null)
255255
function setMode($mode)
256256
{
257257
if ($mode != 'func' && $mode != 'event') {
258-
$this->raiseError('Unsupported mode given',
258+
$this->raiseError('Unsupported mode given',
259259
XML_PARSER_ERROR_UNSUPPORTED_MODE);
260260
}
261261

@@ -313,7 +313,7 @@ function _initHandlers()
313313
xml_set_element_handler($this->parser, 'startHandler', 'endHandler');
314314
break;
315315
default:
316-
return $this->raiseError('Unsupported mode given',
316+
return $this->raiseError('Unsupported mode given',
317317
XML_PARSER_ERROR_UNSUPPORTED_MODE);
318318
break;
319319
}
@@ -355,10 +355,10 @@ function _create()
355355
}
356356
if (is_resource($xp)) {
357357
if ($this->tgtenc !== null) {
358-
if (!@xml_parser_set_option($xp, XML_OPTION_TARGET_ENCODING,
358+
if (!@xml_parser_set_option($xp, XML_OPTION_TARGET_ENCODING,
359359
$this->tgtenc)
360360
) {
361-
return $this->raiseError('invalid target encoding',
361+
return $this->raiseError('invalid target encoding',
362362
XML_PARSER_ERROR_INVALID_ENCODING);
363363
}
364364
}
@@ -371,10 +371,10 @@ function _create()
371371
return true;
372372
}
373373
if (!in_array(strtoupper($this->srcenc), $this->_validEncodings)) {
374-
return $this->raiseError('invalid source encoding',
374+
return $this->raiseError('invalid source encoding',
375375
XML_PARSER_ERROR_INVALID_ENCODING);
376376
}
377-
return $this->raiseError('Unable to create XML parser resource.',
377+
return $this->raiseError('Unable to create XML parser resource.',
378378
XML_PARSER_ERROR_NO_RESOURCE);
379379
}
380380

@@ -430,7 +430,7 @@ function setInputFile($file)
430430
$this->fp = $fp;
431431
return $fp;
432432
}
433-
return $this->raiseError('File could not be opened.',
433+
return $this->raiseError('File could not be opened.',
434434
XML_PARSER_ERROR_FILE_NOT_READABLE);
435435
}
436436

@@ -486,7 +486,7 @@ function setInput($fp)
486486
return true;
487487
}
488488

489-
return $this->raiseError('Illegal input format',
489+
return $this->raiseError('Illegal input format',
490490
XML_PARSER_ERROR_INVALID_INPUT);
491491
}
492492

@@ -555,7 +555,7 @@ function _parseString($data, $eof = false)
555555
* Parses a string.
556556
*
557557
* @param string $data XML data
558-
* @param boolean $eof If set and TRUE, data is the last piece
558+
* @param boolean $eof If set and TRUE, data is the last piece
559559
* of data sent in this parser
560560
*
561561
* @return bool|PEAR_Error true on success or a PEAR Error

XML/Parser/Simple.php

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
/**
66
* XML_Parser
77
*
8-
* XML Parser's Simple parser class
8+
* XML Parser's Simple parser class
99
*
1010
* PHP versions 4 and 5
1111
*
@@ -131,7 +131,7 @@ class XML_Parser_Simple extends XML_Parser
131131
'notation_decl_handler' => 'notationHandler',
132132
'external_entity_ref_handler' => 'entityrefHandler'
133133
);
134-
134+
135135
/**
136136
* Creates an XML parser.
137137
*
@@ -163,7 +163,7 @@ function _initHandlers()
163163
}
164164

165165
if ($this->mode != 'func' && $this->mode != 'event') {
166-
return $this->raiseError('Unsupported mode given',
166+
return $this->raiseError('Unsupported mode given',
167167
XML_PARSER_ERROR_UNSUPPORTED_MODE);
168168
}
169169
xml_set_object($this->parser, $this->_handlerObj);
@@ -197,7 +197,7 @@ function reset()
197197
$this->_elStack = array();
198198
$this->_data = array();
199199
$this->_depth = 0;
200-
200+
201201
$result = $this->_create();
202202
if ($this->isError($result)) {
203203
return $result;
@@ -281,7 +281,7 @@ function cdataHandler($xp, $data)
281281
/**
282282
* handle a tag
283283
*
284-
* Implement this in your parser
284+
* Implement this in your parser
285285
*
286286
* @param string $name element name
287287
* @param array $attribs attributes

0 commit comments

Comments
 (0)