Completed
Push — master ( 0c4a73...ded36e )
by
unknown
03:05
created
src/UnderstandMonolog/Handler/UnderstandBaseHandler.php 4 patches
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -148,7 +148,7 @@
 block discarded – undo
148 148
     /**
149 149
      * Gets the default formatter.
150 150
      *
151
-     * @return FormatterInterface
151
+     * @return UnderstandFormatter
152 152
      */
153 153
     protected function getDefaultFormatter()
154 154
     {
Please login to merge, or discard this patch.
Unused Use Statements   -1 removed lines patch added patch discarded remove patch
@@ -2,7 +2,6 @@
 block discarded – undo
2 2
 
3 3
 use UnderstandMonolog\Exception\HandlerException;
4 4
 use UnderstandMonolog\Formatter\UnderstandFormatter;
5
-
6 5
 use Monolog\Handler\AbstractProcessingHandler;
7 6
 use Monolog\Logger;
8 7
 
Please login to merge, or discard this patch.
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -56,7 +56,7 @@  discard block
 block discarded – undo
56 56
     {
57 57
         if ($sslBundlePath === false)
58 58
         {
59
-            $this->sslBundlePath = __DIR__ . DIRECTORY_SEPARATOR . 'ca_bundle.crt';
59
+            $this->sslBundlePath = __DIR__.DIRECTORY_SEPARATOR.'ca_bundle.crt';
60 60
         }
61 61
         else
62 62
         {
@@ -134,7 +134,7 @@  discard block
 block discarded – undo
134 134
     {
135 135
         if ( ! $responseArr)
136 136
         {
137
-            throw new HandlerException('Cannot create connection to ' . $this->apiUrl . ' ' . $this->lastError);
137
+            throw new HandlerException('Cannot create connection to '.$this->apiUrl.' '.$this->lastError);
138 138
         }
139 139
 
140 140
         if (isset($responseArr['error']))
@@ -142,7 +142,7 @@  discard block
 block discarded – undo
142 142
             throw new HandlerException($responseArr['error']);
143 143
         }
144 144
 
145
-        throw new HandlerException('Error. ' . ' Request data: ' . json_encode($requestData));
145
+        throw new HandlerException('Error. '.' Request data: '.json_encode($requestData));
146 146
     }
147 147
 
148 148
     /**
Please login to merge, or discard this patch.
Braces   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -57,8 +57,7 @@
 block discarded – undo
57 57
         if ($sslBundlePath === false)
58 58
         {
59 59
             $this->sslBundlePath = __DIR__ . DIRECTORY_SEPARATOR . 'ca_bundle.crt';
60
-        }
61
-        else
60
+        } else
62 61
         {
63 62
             $this->sslBundlePath = $sslBundlePath;
64 63
         }
Please login to merge, or discard this patch.
src/UnderstandMonolog/Encoder/ExceptionEncoder.php 2 patches
Spacing   +7 added lines, -7 removed lines patch added patch discarded remove patch
@@ -87,7 +87,7 @@  discard block
 block discarded – undo
87 87
      */
88 88
     protected function stackTraceCallToString(array $trace)
89 89
     {
90
-        if (! isset($trace['type']))
90
+        if ( ! isset($trace['type']))
91 91
         {
92 92
             return 'function';
93 93
         }
@@ -113,7 +113,7 @@  discard block
 block discarded – undo
113 113
     {
114 114
         $params = [];
115 115
 
116
-        if (! isset($trace['args']))
116
+        if ( ! isset($trace['args']))
117 117
         {
118 118
             return $params;
119 119
         }
@@ -122,7 +122,7 @@  discard block
 block discarded – undo
122 122
         {
123 123
             if (is_array($arg))
124 124
             {
125
-                $params[] = 'array(' . count($arg) . ')';
125
+                $params[] = 'array('.count($arg).')';
126 126
             }
127 127
             else if (is_object($arg))
128 128
             {
@@ -130,19 +130,19 @@  discard block
 block discarded – undo
130 130
             }
131 131
             else if (is_string($arg))
132 132
             {
133
-                $params[] = 'string(' . $arg . ')';
133
+                $params[] = 'string('.$arg.')';
134 134
             }
135 135
             else if (is_int($arg))
136 136
             {
137
-                $params[] = 'int(' . $arg . ')';
137
+                $params[] = 'int('.$arg.')';
138 138
             }
139 139
             else if (is_float($arg))
140 140
             {
141
-                $params[] = 'float(' . $arg . ')';
141
+                $params[] = 'float('.$arg.')';
142 142
             }
143 143
             else if (is_bool($arg))
144 144
             {
145
-                $params[] = 'bool(' . ($arg ? 'true' : 'false') . ')';
145
+                $params[] = 'bool('.($arg ? 'true' : 'false').')';
146 146
             }
147 147
             else
148 148
             {
Please login to merge, or discard this patch.
Braces   +6 added lines, -12 removed lines patch added patch discarded remove patch
@@ -123,28 +123,22 @@
 block discarded – undo
123 123
             if (is_array($arg))
124 124
             {
125 125
                 $params[] = 'array(' . count($arg) . ')';
126
-            }
127
-            else if (is_object($arg))
126
+            } else if (is_object($arg))
128 127
             {
129 128
                 $params[] = get_class($arg);
130
-            }
131
-            else if (is_string($arg))
129
+            } else if (is_string($arg))
132 130
             {
133 131
                 $params[] = 'string(' . $arg . ')';
134
-            }
135
-            else if (is_int($arg))
132
+            } else if (is_int($arg))
136 133
             {
137 134
                 $params[] = 'int(' . $arg . ')';
138
-            }
139
-            else if (is_float($arg))
135
+            } else if (is_float($arg))
140 136
             {
141 137
                 $params[] = 'float(' . $arg . ')';
142
-            }
143
-            else if (is_bool($arg))
138
+            } else if (is_bool($arg))
144 139
             {
145 140
                 $params[] = 'bool(' . ($arg ? 'true' : 'false') . ')';
146
-            }
147
-            else
141
+            } else
148 142
             {
149 143
                 $params[] = (string) $arg;
150 144
             }
Please login to merge, or discard this patch.
src/UnderstandMonolog/Exception/HandlerException.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -10,7 +10,7 @@
 block discarded – undo
10 10
      */
11 11
     public function __construct($message = '', $code = 0, $previous = null)
12 12
     {
13
-        $message = 'understand-monolog: ' . $message;
13
+        $message = 'understand-monolog: '.$message;
14 14
 
15 15
         parent::__construct($message, $code, $previous);
16 16
     }
Please login to merge, or discard this patch.
src/UnderstandMonolog/Formatter/UnderstandFormatter.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -28,7 +28,7 @@  discard block
 block discarded – undo
28 28
     {
29 29
         $formatted = [];
30 30
 
31
-        foreach($records as $record)
31
+        foreach ($records as $record)
32 32
         {
33 33
             $formatted[] = $this->convertDatetime($record);
34 34
         }
@@ -49,7 +49,7 @@  discard block
 block discarded – undo
49 49
             // U - Seconds since the Unix Epoch
50 50
             // u - Microseconds (added in PHP 5.2.2). Note that date() will always generate 000000
51 51
             // http://php.net/manual/en/function.date.php
52
-            $record['timestamp'] = intval(round((float)$record['datetime']->format('U.u') * 1000));
52
+            $record['timestamp'] = intval(round((float) $record['datetime']->format('U.u') * 1000));
53 53
 
54 54
             unset($record['datetime']);
55 55
         }
Please login to merge, or discard this patch.
src/UnderstandMonolog/Handler/UnderstandSyncHandler.php 1 patch
Braces   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -32,8 +32,7 @@
 block discarded – undo
32 32
         if ($response === false)
33 33
         {
34 34
             $this->lastError = curl_error($ch);
35
-        }
36
-        else
35
+        } else
37 36
         {
38 37
             $this->lastError = null;
39 38
         }
Please login to merge, or discard this patch.