Completed
Push — master ( 423a03...8ceac2 )
by Jan
14s queued 11s
created
source/PurePhpXmlWriter.php 1 patch
Indentation   +30 added lines, -30 removed lines patch added patch discarded remove patch
@@ -90,7 +90,7 @@  discard block
 block discarded – undo
90 90
      * @param $encoding
91 91
      */
92 92
     public function setEncoding($encoding){
93
-       $this->_encoding = $encoding;
93
+        $this->_encoding = $encoding;
94 94
     }
95 95
 
96 96
     /**
@@ -263,37 +263,37 @@  discard block
 block discarded – undo
263 263
         }
264 264
     }
265 265
 
266
-	/**
267
-	 * Determines if an array is associative.
268
-	 * @param  array  $array
269
-	 * @return bool
270
-	 */
271
-	function isAssoc(array $array)
272
-	{
273
-		$keys = array_keys($array);
274
-
275
-		return array_keys($keys) !== $keys;
276
-	}
277
-
278
-	/**
279
-	 * Concatenates the attribute - value pairs into a string
280
-	 *
281
-	 * @param array $attr
282
-	 */
266
+    /**
267
+     * Determines if an array is associative.
268
+     * @param  array  $array
269
+     * @return bool
270
+     */
271
+    function isAssoc(array $array)
272
+    {
273
+        $keys = array_keys($array);
274
+
275
+        return array_keys($keys) !== $keys;
276
+    }
277
+
278
+    /**
279
+     * Concatenates the attribute - value pairs into a string
280
+     *
281
+     * @param array $attr
282
+     */
283 283
     private function _getAttributes ($attr = null)
284 284
     {
285
-	      $str = '';
286
-
287
-	      if(!is_null($attr) && is_array($attr)) {
288
-	      	  // check if is an associative array
289
-		        if($this->isAssoc($attr)) {
290
-			      	  foreach ($attr as $name => $value) {
291
-					          $str .= ' ' . $name . '="' . str_replace('"', "'", $value) . '"';
292
-				        }
293
-		        }
294
-	      }
295
-
296
-	      return $str;
285
+            $str = '';
286
+
287
+            if(!is_null($attr) && is_array($attr)) {
288
+                // check if is an associative array
289
+                if($this->isAssoc($attr)) {
290
+                        foreach ($attr as $name => $value) {
291
+                                $str .= ' ' . $name . '="' . str_replace('"', "'", $value) . '"';
292
+                        }
293
+                }
294
+            }
295
+
296
+            return $str;
297 297
     }
298 298
 
299 299
     /**
Please login to merge, or discard this patch.