Merge "Added a separate error message for mkdir failures"
[lhc/web/wiklou.git] / includes / debug / logger / monolog / LegacyHandler.php
index 7c75a7d..dbeb136 100644 (file)
@@ -44,8 +44,7 @@ use UnexpectedValueException;
  * replacement for \Monolog\Handler\StreamHandler.
  *
  * @since 1.25
- * @author Bryan Davis <bd808@wikimedia.org>
- * @copyright © 2013 Bryan Davis and Wikimedia Foundation.
+ * @copyright © 2013 Wikimedia Foundation and contributors
  */
 class LegacyHandler extends AbstractProcessingHandler {
 
@@ -113,7 +112,7 @@ class LegacyHandler extends AbstractProcessingHandler {
                                'Missing stream uri, the stream can not be opened.' );
                }
                $this->error = null;
-               set_error_handler( array( $this, 'errorTrap' ) );
+               set_error_handler( [ $this, 'errorTrap' ] );
 
                if ( substr( $this->uri, 0, 4 ) == 'udp:' ) {
                        $parsed = parse_url( $this->uri );
@@ -195,7 +194,6 @@ class LegacyHandler extends AbstractProcessingHandler {
 
                $text = (string)$record['formatted'];
                if ( $this->useUdp() ) {
-
                        // Clean it up for the multiplexer
                        if ( $this->prefix !== '' ) {
                                $leader = ( $this->prefix === '{channel}' ) ?