Make lines short to pass phpcs in KafkaHandler.php
authorAmir E. Aharoni <amir.aharoni@mail.huji.ac.il>
Sun, 27 Sep 2015 08:03:34 +0000 (11:03 +0300)
committerReedy <reedy@wikimedia.org>
Sun, 27 Sep 2015 14:19:08 +0000 (14:19 +0000)
Bug: T102614
Change-Id: I9ba6a0b7580bc99dee295cdb56cd5977d63fd73a

includes/debug/logger/monolog/KafkaHandler.php

index 1583cd1..4e8e65b 100644 (file)
@@ -76,7 +76,9 @@ class KafkaHandler extends AbstractProcessingHandler {
         * @param int $level The minimum logging level at which this handler will be triggered
         * @param bool $bubble Whether the messages that are handled can bubble up the stack or not
         */
-       public function __construct( Produce $produce, array $options, $level = Logger::DEBUG, $bubble = true ) {
+       public function __construct(
+               Produce $produce, array $options, $level = Logger::DEBUG, $bubble = true
+       ) {
                parent::__construct( $level, $bubble );
                $this->produce = $produce;
                $this->options = array_merge( self::$defaultOptions, $options );
@@ -92,7 +94,9 @@ class KafkaHandler extends AbstractProcessingHandler {
         * @param bool $bubble Whether the messages that are handled can bubble the stack or not
         * @return KafkaHandler
         */
-       public static function factory( $kafkaServers, array $options = array(), $level = Logger::DEBUG, $bubble = true ) {
+       public static function factory(
+               $kafkaServers, array $options = array(), $level = Logger::DEBUG, $bubble = true
+       ) {
                $metadata = new MetaDataFromKafka( $kafkaServers );
                $produce = new Produce( $metadata );
                if ( isset( $options['logExceptions'] ) && is_string( $options['logExceptions'] ) ) {