X-Git-Url: http://git.cyclocoop.org/?a=blobdiff_plain;f=includes%2FConfEditor.php;h=42a7173d5ebf3c516b330c7701a2383814feacde;hb=f50eab171e0db645483a0c36e0e00a0441fe8561;hp=c9fd2079da9951e98627bae7f20aa0bc38a786e3;hpb=b4cee86beb9fd88563a1de4184c41053ace34d99;p=lhc%2Fweb%2Fwiklou.git diff --git a/includes/ConfEditor.php b/includes/ConfEditor.php index c9fd2079da..42a7173d5e 100644 --- a/includes/ConfEditor.php +++ b/includes/ConfEditor.php @@ -84,6 +84,10 @@ class ConfEditor { /** * Simple entry point for command-line testing + * + * @param $text string + * + * @return string */ static function test( $text ) { try { @@ -306,14 +310,14 @@ class ConfEditor { function parseScalar( $str ) { if ( $str !== '' && $str[0] == '\'' ) // Single-quoted string - // @todo Fixme: trim() call is due to mystery bug where whitespace gets + // @todo FIXME: trim() call is due to mystery bug where whitespace gets // appended to the token; without it we ended up reading in the // extra quote on the end! return strtr( substr( trim( $str ), 1, -1 ), array( '\\\'' => '\'', '\\\\' => '\\' ) ); - if ( $str !== '' && @$str[0] == '"' ) + if ( $str !== '' && $str[0] == '"' ) // Double-quoted string - // @todo Fixme: trim() call is due to mystery bug where whitespace gets + // @todo FIXME: trim() call is due to mystery bug where whitespace gets // appended to the token; without it we ended up reading in the // extra quote on the end! return stripcslashes( substr( trim( $str ), 1, -1 ) ); @@ -472,7 +476,7 @@ class ConfEditor { return $extraPath; } - /* + /** * Find the path name of first element in the array. * If the array is empty, this will return the \@extra interstitial element. * If the specified path is not found or is not an array, it will return false.