Fix Codestyle/PHPDoc, fix configPath being Overwritten

Also removed possibility to disable debugging as there's no use case for this

refs #4525
refs #4598
This commit is contained in:
Jannis Moßhammer 2013-08-20 17:06:44 +02:00 committed by Eric Lippmann
parent dbdfd09796
commit 4c5d26fe9a

View File

@ -118,10 +118,9 @@ class IniEditor
* Get the line of an array element * Get the line of an array element
* *
* @param array $key The key of the property. * @param array $key The key of the property.
* @param $value The value * @param mixed $section The section to use
* @param $section The section to use
* *
* @return The line of the array element. * @return int The line of the array element.
*/ */
private function getArrayElement(array $key, $section = null) private function getArrayElement(array $key, $section = null)
{ {
@ -270,14 +269,14 @@ class IniEditor
/** /**
* Update the line $lineNr * Update the line $lineNr
* *
* @param $lineNr The line number of the target line * @param int $lineNr The line number of the target line
* @param $toInsert The new line content * @param string $toInsert The new line content
*/ */
private function updateLine($lineNr, $content) private function updateLine($lineNr, $content)
{ {
$comment = $this->getComment($this->text[$lineNr]); $comment = $this->getComment($this->text[$lineNr]);
if (strlen($comment) > 0) { if (strlen($comment) > 0) {
$comment = " ; " . trim($comment); $comment = ' ; ' . trim($comment);
} }
$this->text[$lineNr] = str_pad($content, 43) . $comment; $this->text[$lineNr] = str_pad($content, 43) . $comment;
} }