Completed
Push — master ( 8994f7...3cdc9b )
by Russell
01:50
created
code/SentryLogWriter.php 2 patches
Doc Comments   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -96,7 +96,7 @@  discard block
 block discarded – undo
96 96
      * Returns a default set of additional data specific to the user's part in
97 97
      * the request.
98 98
      * 
99
-     * @param  Member $member
99
+     * @param  \Member $member
100 100
      * @return array
101 101
      */
102 102
     public function defaultUserData(\Member $member = null)
@@ -227,7 +227,7 @@  discard block
 block discarded – undo
227 227
     /**
228 228
      * Return peak memory usage.
229 229
      * 
230
-     * @return float
230
+     * @return string
231 231
      */
232 232
     public function getPeakMemory()
233 233
     {
Please login to merge, or discard this patch.
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -158,10 +158,10 @@
 block discarded – undo
158 158
      */
159 159
     protected function _write($event)
160 160
     {
161
-        $message = $event['message']['errstr'];                             // From SS_Log::log()
161
+        $message = $event['message']['errstr']; // From SS_Log::log()
162 162
         // The complete compliment of these data come via the Raven_Client::xxx_context() methods
163 163
         $data = [
164
-            'timestamp' => strtotime($event['timestamp']),                  // From Zend_Log::log()
164
+            'timestamp' => strtotime($event['timestamp']), // From Zend_Log::log()
165 165
             'extra'     => isset($event['extra']) ? $event['extra'] : []    // From _config.php (Optional)
166 166
         ];
167 167
         $trace = \SS_Backtrace::filter_backtrace(debug_backtrace(), ['SentryLogWriter->_write']);
Please login to merge, or discard this patch.
code/adaptor/RavenClient.php 1 patch
Spacing   +2 added lines, -3 removed lines patch added patch discarded remove patch
@@ -80,7 +80,7 @@  discard block
 block discarded – undo
80 80
      */
81 81
     public function setData($field, $data)
82 82
     {
83
-        switch($field) {
83
+        switch ($field) {
84 84
         case 'env':
85 85
             $this->client->setEnvironment($data);
86 86
             break;
@@ -105,8 +105,7 @@  discard block
 block discarded – undo
105 105
     public function getLevel($level)
106 106
     {
107 107
         return isset($this->client->logLevels[$level]) ?
108
-            $this->client->logLevels[$level] : 
109
-            $this->client->logLevels[self::$default_error_level];
108
+            $this->client->logLevels[$level] : $this->client->logLevels[self::$default_error_level];
110 109
     }
111 110
     
112 111
     /**
Please login to merge, or discard this patch.