Completed
Branch master (ff62f6)
by Thiago Augustus de
02:09
created
Category
nospace.php 1 patch
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -18,12 +18,12 @@
 block discarded – undo
18 18
  * @param xml
19 19
  * @return xml
20 20
  */
21
-function noSpace( $xml ) {
22
-	foreach ( $xml as $key => $value ) {
23
-		if ( sizeof( $value ) > 1 ) {
24
-			noSpace( $value ); // Get next node
21
+function noSpace($xml) {
22
+	foreach ($xml as $key => $value) {
23
+		if (sizeof($value) > 1) {
24
+			noSpace($value); // Get next node
25 25
 		} else {
26
-			$xml->$key = trim( $value );
26
+			$xml->$key = trim($value);
27 27
 		}
28 28
 	}
29 29
 	return $xml;
Please login to merge, or discard this patch.