Passed
Pull Request — master (#2920)
by Christian
11:43
created
html/ops/fix_project_prefs.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -76,7 +76,7 @@  discard block
 block discarded – undo
76 76
             // changing the tree in a loop has strange results so do it separately
77 77
             $to_remove = array();
78 78
             $ids = array();
79
-            foreach($appids as $elem) {
79
+            foreach ($appids as $elem) {
80 80
                 $ids[] = $elem->nodeValue;
81 81
                 $to_remove[] = $elem;
82 82
             }
@@ -94,7 +94,7 @@  discard block
 block discarded – undo
94 94
         exit(1);
95 95
     }
96 96
     $appids = $node->getElementsByTagName("app_id");
97
-    if ($appids->length == 0 ) return;
97
+    if ($appids->length == 0) return;
98 98
     // changing the tree in a loop has strange results so do it separately
99 99
     $to_remove = array();
100 100
     $ids = array();
@@ -129,7 +129,7 @@  discard block
 block discarded – undo
129 129
         $to_remove = array();
130 130
         foreach ($subNodes as $subNode) {
131 131
             // ignore empty text nodes which are basically whitespace from indentation (only relevant if preserveWhiteSpace is set to true above)
132
-            if (($subNode->nodeType != XML_TEXT_NODE) || (($subNode->nodeType == XML_TEXT_NODE) &&(strlen(trim($subNode->wholeText))>=1))) {
132
+            if (($subNode->nodeType != XML_TEXT_NODE) || (($subNode->nodeType == XML_TEXT_NODE) && (strlen(trim($subNode->wholeText)) >= 1))) {
133 133
                 if ($subNode->nodeName == "venue") {
134 134
                     if (!$subNode->hasChildNodes()) {
135 135
                         // empty venue tag, clean this up too
Please login to merge, or discard this patch.