Passed
Branch master (58a39e)
by Austin
02:28
created
src/InfluxDbFacade.php 2 patches
Indentation   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -47,7 +47,7 @@  discard block
 block discarded – undo
47 47
                 return static::$method(...$arguments);
48 48
             default:
49 49
                 return static::getFacadeRoot()
50
-                             ->$method(...$arguments);
50
+                                ->$method(...$arguments);
51 51
         }
52 52
     }
53 53
 
@@ -63,7 +63,7 @@  discard block
 block discarded – undo
63 63
             Write::dispatch($parameters, $payload);
64 64
         } else {
65 65
             return static::getFacadeRoot()
66
-                         ->write($parameters, $payload);
66
+                            ->write($parameters, $payload);
67 67
         }
68 68
 
69 69
         return true;
@@ -85,7 +85,7 @@  discard block
 block discarded – undo
85 85
             WritePayload::dispatch($payload, $precision, $retentionPolicy);
86 86
         } else {
87 87
             return static::getFacadeRoot()
88
-                         ->writePayload($payload, $precision, $retentionPolicy);
88
+                            ->writePayload($payload, $precision, $retentionPolicy);
89 89
         }
90 90
 
91 91
         return true;
@@ -107,7 +107,7 @@  discard block
 block discarded – undo
107 107
             WritePoints::dispatch($points, $precision, $retentionPolicy);
108 108
         } else {
109 109
             return static::getFacadeRoot()
110
-                         ->writePoints($points, $precision, $retentionPolicy);
110
+                            ->writePoints($points, $precision, $retentionPolicy);
111 111
         }
112 112
 
113 113
         return true;
Please login to merge, or discard this patch.
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -5,7 +5,7 @@  discard block
 block discarded – undo
5 5
  * @author      Austin Heap <[email protected]>
6 6
  * @version     v0.1.2
7 7
  */
8
-declare(strict_types = 1);
8
+declare(strict_types=1);
9 9
 
10 10
 namespace AustinHeap\Database\InfluxDb;
11 11
 
@@ -78,8 +78,8 @@  discard block
 block discarded – undo
78 78
      */
79 79
     public static function writePayload(
80 80
         $payload,
81
-        $precision = WritePayload::PRECISION_NANOSECONDS,
82
-        $retentionPolicy = null
81
+        $precision=WritePayload::PRECISION_NANOSECONDS,
82
+        $retentionPolicy=null
83 83
     ): bool {
84 84
         if (config('influxdb.queue.enable', false) === true) {
85 85
             WritePayload::dispatch($payload, $precision, $retentionPolicy);
@@ -100,8 +100,8 @@  discard block
 block discarded – undo
100 100
      */
101 101
     public static function writePoints(
102 102
         array $points,
103
-        $precision = WritePoints::PRECISION_NANOSECONDS,
104
-        $retentionPolicy = null
103
+        $precision=WritePoints::PRECISION_NANOSECONDS,
104
+        $retentionPolicy=null
105 105
     ): bool {
106 106
         if (config('influxdb.queue.enable', false) === true) {
107 107
             WritePoints::dispatch($points, $precision, $retentionPolicy);
Please login to merge, or discard this patch.
src/InfluxDbServiceProvider.php 2 patches
Indentation   +8 added lines, -8 removed lines patch added patch discarded remove patch
@@ -31,8 +31,8 @@  discard block
 block discarded – undo
31 31
     public function boot(): void
32 32
     {
33 33
         $this->publishes([
34
-                             __DIR__ . '/config/influxdb.php' => config_path('influxdb.php'),
35
-                         ]);
34
+                                __DIR__ . '/config/influxdb.php' => config_path('influxdb.php'),
35
+                            ]);
36 36
 
37 37
         $this->mergeConfigFrom(__DIR__ . '/config/influxdb.php', 'influxdb');
38 38
 
@@ -64,12 +64,12 @@  discard block
 block discarded – undo
64 64
                 }
65 65
 
66 66
                 $dsn = sprintf('%s://%s:%s@%s:%s/%s',
67
-                               $protocol,
68
-                               config('influxdb.user'),
69
-                               config('influxdb.pass'),
70
-                               config('influxdb.host'),
71
-                               config('influxdb.port'),
72
-                               config('influxdb.database')
67
+                                $protocol,
68
+                                config('influxdb.user'),
69
+                                config('influxdb.pass'),
70
+                                config('influxdb.host'),
71
+                                config('influxdb.port'),
72
+                                config('influxdb.database')
73 73
                 );
74 74
 
75 75
                 return InfluxClient::fromDSN($dsn, $timeout, $verifySsl);
Please login to merge, or discard this patch.
Spacing   +13 added lines, -13 removed lines patch added patch discarded remove patch
@@ -5,7 +5,7 @@  discard block
 block discarded – undo
5 5
  * @author      Austin Heap <[email protected]>
6 6
  * @version     v0.1.2
7 7
  */
8
-declare(strict_types = 1);
8
+declare(strict_types=1);
9 9
 
10 10
 namespace AustinHeap\Database\InfluxDb;
11 11
 
@@ -37,13 +37,13 @@  discard block
 block discarded – undo
37 37
         $this->mergeConfigFrom(__DIR__ . '/config/influxdb.php', 'influxdb');
38 38
 
39 39
         if (config('influxdb.log.monolog', false) === true) {
40
-            $handler = new MonologHandler($this->getLoggingLevel());
40
+            $handler=new MonologHandler($this->getLoggingLevel());
41 41
             $handler->setFormatter(new Formatter());
42 42
 
43
-            $monolog = Log::getMonolog();
43
+            $monolog=Log::getMonolog();
44 44
             $monolog->pushHandler($handler);
45 45
 
46
-            $new_log = new Writer($monolog, Log::getEventDispatcher());
46
+            $new_log=new Writer($monolog, Log::getEventDispatcher());
47 47
             Log::swap($new_log);
48 48
         }
49 49
     }
@@ -53,17 +53,17 @@  discard block
 block discarded – undo
53 53
      */
54 54
     public function register(): void
55 55
     {
56
-        $this->app->singleton('InfluxDb', function ($app) {
56
+        $this->app->singleton('InfluxDb', function($app) {
57 57
             try {
58
-                $timeout   = is_int(config('influxdb.timeout', null)) ? config('influxdb.timeout') : 5;
59
-                $verifySsl = is_bool(config('influxdb.verify_ssl', null)) ? config('influxdb.verify_ssl') : true;
60
-                $protocol  = 'influxdb';
58
+                $timeout=is_int(config('influxdb.timeout', null)) ? config('influxdb.timeout') : 5;
59
+                $verifySsl=is_bool(config('influxdb.verify_ssl', null)) ? config('influxdb.verify_ssl') : true;
60
+                $protocol='influxdb';
61 61
 
62
-                if (in_array(config('influxdb.protocol'), ['https', 'udp'])) {
63
-                    $protocol = config('influxdb.protocol') . '+' . $protocol;
62
+                if (in_array(config('influxdb.protocol'), [ 'https', 'udp' ])) {
63
+                    $protocol=config('influxdb.protocol') . '+' . $protocol;
64 64
                 }
65 65
 
66
-                $dsn = sprintf('%s://%s:%s@%s:%s/%s',
66
+                $dsn=sprintf('%s://%s:%s@%s:%s/%s',
67 67
                                $protocol,
68 68
                                config('influxdb.user'),
69 69
                                config('influxdb.pass'),
@@ -84,8 +84,8 @@  discard block
 block discarded – undo
84 84
      */
85 85
     private function getLoggingLevel()
86 86
     {
87
-        $level = config('influxdb.log.level', 'DEBUG');
88
-        $level = empty($level) ? 'DEBUG' : $level;
87
+        $level=config('influxdb.log.level', 'DEBUG');
88
+        $level=empty($level) ? 'DEBUG' : $level;
89 89
 
90 90
         return in_array($level, [
91 91
             'DEBUG',
Please login to merge, or discard this patch.
src/Jobs/WritePayload.php 2 patches
Indentation   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -91,10 +91,10 @@
 block discarded – undo
91 91
     public function handle()
92 92
     {
93 93
         InfluxDbServiceProvider::getInstance()
94
-                               ->writePayload(
95
-                                   $this->payload,
96
-                                   $this->precision,
97
-                                   $this->retentionPolicy
98
-                               );
94
+                                ->writePayload(
95
+                                    $this->payload,
96
+                                    $this->precision,
97
+                                    $this->retentionPolicy
98
+                                );
99 99
     }
100 100
 }
Please login to merge, or discard this patch.
Spacing   +14 added lines, -14 removed lines patch added patch discarded remove patch
@@ -5,7 +5,7 @@  discard block
 block discarded – undo
5 5
  * @author      Austin Heap <[email protected]>
6 6
  * @version     v0.1.2
7 7
  */
8
-declare(strict_types = 1);
8
+declare(strict_types=1);
9 9
 
10 10
 namespace AustinHeap\Database\InfluxDb\Jobs;
11 11
 
@@ -21,47 +21,47 @@  discard block
 block discarded – undo
21 21
     /**
22 22
      * @var string PRECISION_NANOSECONDS
23 23
      */
24
-    const PRECISION_NANOSECONDS = 'n';
24
+    const PRECISION_NANOSECONDS='n';
25 25
 
26 26
     /**
27 27
      * @var string PRECISION_MICROSECONDS
28 28
      */
29
-    const PRECISION_MICROSECONDS = 'u';
29
+    const PRECISION_MICROSECONDS='u';
30 30
 
31 31
     /**
32 32
      * @var string PRECISION_MILLISECONDS
33 33
      */
34
-    const PRECISION_MILLISECONDS = 'ms';
34
+    const PRECISION_MILLISECONDS='ms';
35 35
 
36 36
     /**
37 37
      * @var string PRECISION_SECONDS
38 38
      */
39
-    const PRECISION_SECONDS = 's';
39
+    const PRECISION_SECONDS='s';
40 40
 
41 41
     /**
42 42
      * @var string PRECISION_MINUTES
43 43
      */
44
-    const PRECISION_MINUTES = 'm';
44
+    const PRECISION_MINUTES='m';
45 45
 
46 46
     /**
47 47
      * @var string PRECISION_HOURS
48 48
      */
49
-    const PRECISION_HOURS = 'h';
49
+    const PRECISION_HOURS='h';
50 50
 
51 51
     /**
52 52
      * @var string|array $payload
53 53
      */
54
-    public $payload = null;
54
+    public $payload=null;
55 55
 
56 56
     /**
57 57
      * @var string $precision
58 58
      */
59
-    public $precision = null;
59
+    public $precision=null;
60 60
 
61 61
     /**
62 62
      * @var string|null $retentionPolicy
63 63
      */
64
-    public $retentionPolicy = null;
64
+    public $retentionPolicy=null;
65 65
 
66 66
     /**
67 67
      * WritePayload constructor.
@@ -70,11 +70,11 @@  discard block
 block discarded – undo
70 70
      * @param  string       $precision
71 71
      * @param  string|null  $retentionPolicy
72 72
      */
73
-    public function __construct($payload, $precision = self::PRECISION_NANOSECONDS, $retentionPolicy = null)
73
+    public function __construct($payload, $precision=self::PRECISION_NANOSECONDS, $retentionPolicy=null)
74 74
     {
75
-        $this->payload         = $payload;
76
-        $this->precision       = $precision;
77
-        $this->retentionPolicy = $retentionPolicy;
75
+        $this->payload=$payload;
76
+        $this->precision=$precision;
77
+        $this->retentionPolicy=$retentionPolicy;
78 78
 
79 79
         parent::__construct(
80 80
             [
Please login to merge, or discard this patch.
src/Jobs/Write.php 2 patches
Indentation   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -53,9 +53,9 @@
 block discarded – undo
53 53
     public function handle()
54 54
     {
55 55
         InfluxDbServiceProvider::getInstance()
56
-                               ->write(
57
-                                   $this->parameters,
58
-                                   $this->payload
59
-                               );
56
+                                ->write(
57
+                                    $this->parameters,
58
+                                    $this->payload
59
+                                );
60 60
     }
61 61
 }
Please login to merge, or discard this patch.
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -5,7 +5,7 @@  discard block
 block discarded – undo
5 5
  * @author      Austin Heap <[email protected]>
6 6
  * @version     v0.1.2
7 7
  */
8
-declare(strict_types = 1);
8
+declare(strict_types=1);
9 9
 
10 10
 namespace AustinHeap\Database\InfluxDb\Jobs;
11 11
 
@@ -21,12 +21,12 @@  discard block
 block discarded – undo
21 21
     /**
22 22
      * @var string|array $payload
23 23
      */
24
-    public $payload = null;
24
+    public $payload=null;
25 25
 
26 26
     /**
27 27
      * @var array $parameters
28 28
      */
29
-    public $parameters = null;
29
+    public $parameters=null;
30 30
 
31 31
     /**
32 32
      * Write constructor.
@@ -36,8 +36,8 @@  discard block
 block discarded – undo
36 36
      */
37 37
     public function __construct(array $parameters, $payload)
38 38
     {
39
-        $this->parameters = $parameters;
40
-        $this->payload    = $payload;
39
+        $this->parameters=$parameters;
40
+        $this->payload=$payload;
41 41
 
42 42
         parent::__construct(
43 43
             [
Please login to merge, or discard this patch.
src/Jobs/WritePoints.php 2 patches
Indentation   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -91,10 +91,10 @@
 block discarded – undo
91 91
     public function handle()
92 92
     {
93 93
         InfluxDbServiceProvider::getInstance()
94
-                               ->writePoints(
95
-                                   $this->points,
96
-                                   $this->precision,
97
-                                   $this->retentionPolicy
98
-                               );
94
+                                ->writePoints(
95
+                                    $this->points,
96
+                                    $this->precision,
97
+                                    $this->retentionPolicy
98
+                                );
99 99
     }
100 100
 }
Please login to merge, or discard this patch.
Spacing   +14 added lines, -14 removed lines patch added patch discarded remove patch
@@ -5,7 +5,7 @@  discard block
 block discarded – undo
5 5
  * @author      Austin Heap <[email protected]>
6 6
  * @version     v0.1.2
7 7
  */
8
-declare(strict_types = 1);
8
+declare(strict_types=1);
9 9
 
10 10
 namespace AustinHeap\Database\InfluxDb\Jobs;
11 11
 
@@ -21,47 +21,47 @@  discard block
 block discarded – undo
21 21
     /**
22 22
      * @var string PRECISION_NANOSECONDS
23 23
      */
24
-    const PRECISION_NANOSECONDS = 'n';
24
+    const PRECISION_NANOSECONDS='n';
25 25
 
26 26
     /**
27 27
      * @var string PRECISION_MICROSECONDS
28 28
      */
29
-    const PRECISION_MICROSECONDS = 'u';
29
+    const PRECISION_MICROSECONDS='u';
30 30
 
31 31
     /**
32 32
      * @var string PRECISION_MILLISECONDS
33 33
      */
34
-    const PRECISION_MILLISECONDS = 'ms';
34
+    const PRECISION_MILLISECONDS='ms';
35 35
 
36 36
     /**
37 37
      * @var string PRECISION_SECONDS
38 38
      */
39
-    const PRECISION_SECONDS = 's';
39
+    const PRECISION_SECONDS='s';
40 40
 
41 41
     /**
42 42
      * @var string PRECISION_MINUTES
43 43
      */
44
-    const PRECISION_MINUTES = 'm';
44
+    const PRECISION_MINUTES='m';
45 45
 
46 46
     /**
47 47
      * @var string PRECISION_HOURS
48 48
      */
49
-    const PRECISION_HOURS = 'h';
49
+    const PRECISION_HOURS='h';
50 50
 
51 51
     /**
52 52
      * @var array $points
53 53
      */
54
-    public $points = null;
54
+    public $points=null;
55 55
 
56 56
     /**
57 57
      * @var string $precision
58 58
      */
59
-    public $precision = null;
59
+    public $precision=null;
60 60
 
61 61
     /**
62 62
      * @var string|null $precision
63 63
      */
64
-    public $retentionPolicy = null;
64
+    public $retentionPolicy=null;
65 65
 
66 66
     /**
67 67
      * WritePoints constructor.
@@ -70,11 +70,11 @@  discard block
 block discarded – undo
70 70
      * @param  string            $precision
71 71
      * @param  string|null       $retentionPolicy
72 72
      */
73
-    public function __construct(array $points, $precision = self::PRECISION_NANOSECONDS, $retentionPolicy = null)
73
+    public function __construct(array $points, $precision=self::PRECISION_NANOSECONDS, $retentionPolicy=null)
74 74
     {
75
-        $this->points          = $points;
76
-        $this->precision       = $precision;
77
-        $this->retentionPolicy = $retentionPolicy;
75
+        $this->points=$points;
76
+        $this->precision=$precision;
77
+        $this->retentionPolicy=$retentionPolicy;
78 78
 
79 79
         parent::__construct(
80 80
             [
Please login to merge, or discard this patch.
src/Logs/Formatter.php 1 patch
Spacing   +34 added lines, -34 removed lines patch added patch discarded remove patch
@@ -23,9 +23,9 @@  discard block
 block discarded – undo
23 23
      */
24 24
     public function format(array $record)
25 25
     {
26
-        $record = parent::format($record);
26
+        $record=parent::format($record);
27 27
 
28
-        $message = $this->prepareMessage($record);
28
+        $message=$this->prepareMessage($record);
29 29
 
30 30
         return $message;
31 31
     }
@@ -37,43 +37,43 @@  discard block
 block discarded – undo
37 37
      */
38 38
     protected function prepareMessage(array $record): array
39 39
     {
40
-        $message              = [];
41
-        $message['name']      = 'Error';
42
-        $message['value']     = 1;
43
-        $message['timestamp'] = exec('date +%s%N');
40
+        $message=[ ];
41
+        $message[ 'name' ]='Error';
42
+        $message[ 'value' ]=1;
43
+        $message[ 'timestamp' ]=exec('date +%s%N');
44 44
 
45
-        if (isset($_SERVER['REMOTE_ADDR'])) {
46
-            $tags['serverName'] = $_SERVER['REMOTE_ADDR'];
45
+        if (isset($_SERVER[ 'REMOTE_ADDR' ])) {
46
+            $tags[ 'serverName' ]=$_SERVER[ 'REMOTE_ADDR' ];
47 47
         }
48 48
 
49
-        if (isset($record['level'])) {
50
-            $tags['severity'] = $this->rfc5424ToSeverity($record['level']);
49
+        if (isset($record[ 'level' ])) {
50
+            $tags[ 'severity' ]=$this->rfc5424ToSeverity($record[ 'level' ]);
51 51
         }
52 52
 
53
-        if (isset($_SERVER['REQUEST_URI'])) {
54
-            $tags['endpoint_url'] = $_SERVER['REQUEST_URI'];
53
+        if (isset($_SERVER[ 'REQUEST_URI' ])) {
54
+            $tags[ 'endpoint_url' ]=$_SERVER[ 'REQUEST_URI' ];
55 55
         }
56 56
 
57
-        if (isset($_SERVER['REQUEST_METHOD'])) {
58
-            $tags['method'] = $_SERVER['REQUEST_METHOD'];
57
+        if (isset($_SERVER[ 'REQUEST_METHOD' ])) {
58
+            $tags[ 'method' ]=$_SERVER[ 'REQUEST_METHOD' ];
59 59
         }
60 60
 
61
-        if (isset($record['context']['user_id'])) {
62
-            $tags['user_id'] = $record['context']['user_id'];
61
+        if (isset($record[ 'context' ][ 'user_id' ])) {
62
+            $tags[ 'user_id' ]=$record[ 'context' ][ 'user_id' ];
63 63
         }
64 64
 
65
-        if (isset($record['context']['project_id'])) {
66
-            $tags['project_id'] = $record['context']['project_id'];
65
+        if (isset($record[ 'context' ][ 'project_id' ])) {
66
+            $tags[ 'project_id' ]=$record[ 'context' ][ 'project_id' ];
67 67
         }
68 68
 
69
-        if (isset($record['context']['file'])) {
70
-            $tags['file'] = $this->replaceDigitData($record['context']['file']);
69
+        if (isset($record[ 'context' ][ 'file' ])) {
70
+            $tags[ 'file' ]=$this->replaceDigitData($record[ 'context' ][ 'file' ]);
71 71
         }
72 72
 
73
-        if (isset($record['context']['event']['api_stats'][0])) {
74
-            foreach ($record['context']['event']['api_stats'][0] as $k => $v) {
73
+        if (isset($record[ 'context' ][ 'event' ][ 'api_stats' ][ 0 ])) {
74
+            foreach ($record[ 'context' ][ 'event' ][ 'api_stats' ][ 0 ] as $k => $v) {
75 75
                 if (is_string($v) || is_int($v)) {
76
-                    $tags[$k] = $v;
76
+                    $tags[ $k ]=$v;
77 77
                 }
78 78
             }
79 79
         }
@@ -81,15 +81,15 @@  discard block
 block discarded – undo
81 81
         if (isset($tags) && count($tags)) {
82 82
             foreach ($tags as $k => $v) {
83 83
                 if (is_numeric($v)) {
84
-                    $message['fields'][$k] = (int)$v;
84
+                    $message[ 'fields' ][ $k ]=(int) $v;
85 85
                 }
86 86
             }
87 87
 
88
-            $message['tags'] = $tags;
88
+            $message[ 'tags' ]=$tags;
89 89
         }
90 90
 
91
-        if (isset($message['fields']['Debug']['message'])) {
92
-            $message['fields']['Debug']['message'] = $this->trimLines($message['fields']['Debug']['message']);
91
+        if (isset($message[ 'fields' ][ 'Debug' ][ 'message' ])) {
92
+            $message[ 'fields' ][ 'Debug' ][ 'message' ]=$this->trimLines($message[ 'fields' ][ 'Debug' ][ 'message' ]);
93 93
         }
94 94
 
95 95
         return $message;
@@ -102,7 +102,7 @@  discard block
 block discarded – undo
102 102
      */
103 103
     private function rfc5424ToSeverity(int $level)
104 104
     {
105
-        $levels = [
105
+        $levels=[
106 106
             100 => 'Debugging',
107 107
             200 => 'Informational',
108 108
             250 => 'Notice',
@@ -113,7 +113,7 @@  discard block
 block discarded – undo
113 113
             600 => 'Emergency',
114 114
         ];
115 115
 
116
-        $result = isset($levels[$level]) ? $levels[$level] : $levels[600];
116
+        $result=isset($levels[ $level ]) ? $levels[ $level ] : $levels[ 600 ];
117 117
 
118 118
         return $result;
119 119
     }
@@ -125,8 +125,8 @@  discard block
 block discarded – undo
125 125
      */
126 126
     private function replaceDigitData(string $string): string
127 127
     {
128
-        $string = preg_replace('~\/[0-9]+~', '/*', $string);
129
-        $string = preg_replace('~\=[0-9]+~', '=*', $string);
128
+        $string=preg_replace('~\/[0-9]+~', '/*', $string);
129
+        $string=preg_replace('~\=[0-9]+~', '=*', $string);
130 130
 
131 131
         return $string;
132 132
     }
@@ -138,13 +138,13 @@  discard block
 block discarded – undo
138 138
      */
139 139
     private function trimLines($message): string
140 140
     {
141
-        $limit = config('influxdb.log.limit');
141
+        $limit=config('influxdb.log.limit');
142 142
 
143 143
         if ($limit) {
144
-            $message_array = explode(PHP_EOL, $message);
144
+            $message_array=explode(PHP_EOL, $message);
145 145
 
146 146
             if ($limit < count($message_array)) {
147
-                $message = implode(PHP_EOL, array_slice($message_array, 0, $limit));
147
+                $message=implode(PHP_EOL, array_slice($message_array, 0, $limit));
148 148
             }
149 149
         }
150 150
 
Please login to merge, or discard this patch.
src/Logs/MonologHandler.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -5,7 +5,7 @@  discard block
 block discarded – undo
5 5
  * @author      Austin Heap <[email protected]>
6 6
  * @version     v0.1.2
7 7
  */
8
-declare(strict_types = 1);
8
+declare(strict_types=1);
9 9
 
10 10
 namespace AustinHeap\Database\InfluxDb\Logs;
11 11
 
@@ -27,7 +27,7 @@  discard block
 block discarded – undo
27 27
      * @param int  $level
28 28
      * @param bool $bubble
29 29
      */
30
-    public function __construct($level = Logger::DEBUG, $bubble = true)
30
+    public function __construct($level=Logger::DEBUG, $bubble=true)
31 31
     {
32 32
         parent::__construct($level, $bubble);
33 33
     }
Please login to merge, or discard this patch.
src/Jobs/Job.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -41,10 +41,10 @@
 block discarded – undo
41 41
      *
42 42
      * @param array $args
43 43
      */
44
-    public function __construct(array $args = [])
44
+    public function __construct(array $args=[ ])
45 45
     {
46 46
         if (count($args)) {
47
-            $this->args = $args;
47
+            $this->args=$args;
48 48
         }
49 49
     }
50 50
 }
Please login to merge, or discard this patch.