Completed
Push — master ( 3158a5...be27c2 )
by Pavel
02:16
created
src/Adapter/Output/PHPConstantsOutputAdapter.php 1 patch
Indentation   +22 added lines, -22 removed lines patch added patch discarded remove patch
@@ -19,29 +19,29 @@
 block discarded – undo
19 19
         file_put_contents($fileName, $content, 99);
20 20
     }
21 21
 
22
-	/**
23
-	 * @param $value
24
-	 * @return string
25
-	 */
22
+    /**
23
+     * @param $value
24
+     * @return string
25
+     */
26 26
     protected function serialize($value) {
27
-	    switch (gettype($value)) {
28
-		    case 'boolean':
29
-			    return $value ? 'true' : 'false';
30
-		    case 'array':
31
-		    case 'object':
32
-			    return "'" . $this->addSlashes(serialize($value)) . "'";
33
-		    case 'NULL':
34
-			    return "null";
35
-		    case 'integer':
36
-		    case 'double':
37
-			    return $value;
38
-		    default:
39
-			    return "'" . $this->addslashes($value) . "'";
40
-	    }
41
-	}
27
+        switch (gettype($value)) {
28
+            case 'boolean':
29
+                return $value ? 'true' : 'false';
30
+            case 'array':
31
+            case 'object':
32
+                return "'" . $this->addSlashes(serialize($value)) . "'";
33
+            case 'NULL':
34
+                return "null";
35
+            case 'integer':
36
+            case 'double':
37
+                return $value;
38
+            default:
39
+                return "'" . $this->addslashes($value) . "'";
40
+        }
41
+    }
42 42
 
43
-	private function addSlashes($value) {
44
-		return str_replace("'", "\\'", $value);
45
-	}
43
+    private function addSlashes($value) {
44
+        return str_replace("'", "\\'", $value);
45
+    }
46 46
 
47 47
 }
48 48
\ No newline at end of file
Please login to merge, or discard this patch.