Fix coding style

This commit is contained in:
Matthias Jentsch 2014-07-04 11:42:24 +02:00
parent 05139ae684
commit 485e2168c1
1 changed files with 9 additions and 5 deletions

View File

@ -203,7 +203,7 @@ class IniEditor
public function setSection($section, $extend = null)
{
if (isset($extend)) {
$decl = '[' . $section . ' : ' . $extend.']';
$decl = '[' . $section . ' : ' . $extend . ']';
} else {
$decl = '[' . $section . ']';
}
@ -296,6 +296,8 @@ class IniEditor
* Extract the section name from a section declaration
*
* @param String $declaration The section declaration
*
* @return string The section name
*/
private function getSectionFromDeclaration($declaration)
{
@ -321,7 +323,7 @@ class IniEditor
*
* @param array $key The key to insert
* @param mixed $value The value to insert
* @param array $key The key to insert
* @param array $section The key to insert
*/
private function insert(array $key, $value, $section = null)
{
@ -392,7 +394,7 @@ class IniEditor
* Update the line $lineNr
*
* @param int $lineNr The line number of the target line
* @param string $toInsert The new line content
* @param string $content The new line content
*/
private function updateLine($lineNr, $content)
{
@ -612,6 +614,8 @@ class IniEditor
*
* @param $array The array to use
* @param $pos The position to remove
*
* @return array The altered array
*/
private function removeFromArray($array, $pos)
{