summaryrefslogtreecommitdiff
path: root/ext/dom/tests
diff options
context:
space:
mode:
authorPeter Kokot <peterkokot@gmail.com>2018-10-13 14:17:28 +0200
committerPeter Kokot <peterkokot@gmail.com>2018-10-13 14:17:28 +0200
commit37c329d7153b65fd2430fa42e8af8e8a0cbc0a41 (patch)
tree7041c722228f74286b96c50fc834652f0c29156f /ext/dom/tests
parent6c2c7dabee006fa735307d92bb223a1fa3d47414 (diff)
downloadphp-git-37c329d7153b65fd2430fa42e8af8e8a0cbc0a41.tar.gz
Trim trailing whitespace in source code files
Diffstat (limited to 'ext/dom/tests')
-rw-r--r--ext/dom/tests/domdocumentload_utilities.inc4
-rw-r--r--ext/dom/tests/domdocumentloadxml_test_method.inc2
-rw-r--r--ext/dom/tests/domdocumentloadxml_test_method_savexml.inc2
-rw-r--r--ext/dom/tests/note.xml2
4 files changed, 5 insertions, 5 deletions
diff --git a/ext/dom/tests/domdocumentload_utilities.inc b/ext/dom/tests/domdocumentload_utilities.inc
index efd1e5a1a5..d40f7639ff 100644
--- a/ext/dom/tests/domdocumentload_utilities.inc
+++ b/ext/dom/tests/domdocumentload_utilities.inc
@@ -1,13 +1,13 @@
<?php
function libxml_options_to_int($libxmlOptions) {
-
+
$defined_constants = get_defined_constants(true);
$env_array = explode('|', $libxmlOptions);
$libxml_constants = array_intersect_key($defined_constants['libxml'], array_flip($env_array));
$sum = 0;
- foreach($libxml_constants as $value) {
+ foreach($libxml_constants as $value) {
$sum = $sum|$value;
}
diff --git a/ext/dom/tests/domdocumentloadxml_test_method.inc b/ext/dom/tests/domdocumentloadxml_test_method.inc
index 66b02bf20b..1949012075 100644
--- a/ext/dom/tests/domdocumentloadxml_test_method.inc
+++ b/ext/dom/tests/domdocumentloadxml_test_method.inc
@@ -4,7 +4,7 @@ include(dirname(__FILE__) . '/domdocumentload_utilities.inc');
$doc = new DOMDocument();
$libxml_options = libxml_options_to_int(getenv('LOAD_OPTIONS'));
-$result = $doc->loadXML(file_get_contents(dirname(__FILE__) . getenv('XML_FILE')),
+$result = $doc->loadXML(file_get_contents(dirname(__FILE__) . getenv('XML_FILE')),
$libxml_options);
$expectedResult = (bool) getenv('EXPECTED_RESULT');
diff --git a/ext/dom/tests/domdocumentloadxml_test_method_savexml.inc b/ext/dom/tests/domdocumentloadxml_test_method_savexml.inc
index 8b000cb0dd..386f53e69f 100644
--- a/ext/dom/tests/domdocumentloadxml_test_method_savexml.inc
+++ b/ext/dom/tests/domdocumentloadxml_test_method_savexml.inc
@@ -4,7 +4,7 @@ include(dirname(__FILE__) . '/domdocumentload_utilities.inc');
$doc = new DOMDocument();
$libxml_options = libxml_options_to_int(getenv('LOAD_OPTIONS'));
-$result = $doc->loadXML(file_get_contents(dirname(__FILE__) . getenv('XML_FILE')),
+$result = $doc->loadXML(file_get_contents(dirname(__FILE__) . getenv('XML_FILE')),
$libxml_options);
$expectedResult = (bool) getenv('EXPECTED_RESULT');
diff --git a/ext/dom/tests/note.xml b/ext/dom/tests/note.xml
index 49614a1b52..f580ef1c25 100644
--- a/ext/dom/tests/note.xml
+++ b/ext/dom/tests/note.xml
@@ -5,4 +5,4 @@
<from>Shane</from>
<heading>Reminder</heading>
<body>Don't forget the meeting tonight!</body>
-</note>
+</note>