Skip to content

Commit

Permalink
fix #45
Browse files Browse the repository at this point in the history
  • Loading branch information
themsaid committed Aug 23, 2016
1 parent 4dc3c18 commit 984f441
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 1 addition & 1 deletion src/Manager.php
Original file line number Diff line number Diff line change
Expand Up @@ -226,7 +226,7 @@ private function stringLineMaker($array, $prepend = '')

$output .= "\n{$prepend} '{$key}' => [{$value}\n{$prepend} ],";
} else {
$value = addslashes($value);
$value = str_replace('\"', '"', addslashes($value));

$output .= "\n{$prepend} '{$key}' => '{$value}',";
}
Expand Down
2 changes: 2 additions & 0 deletions tests/ManagerTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -83,6 +83,8 @@ public function testWriteFile()
$values = [
'name' => ['first' => 'first', 'last' => ['last1' => '1', 'last2' => 2]],
'age' => 'age',
'double_quotes' => '"with quotes"',
'quotes' => "With some ' quotes",
];

$manager->writeFile($filePath, $values);
Expand Down

0 comments on commit 984f441

Please sign in to comment.