Completed
Push — master ( 4e7553...47271c )
by Simon
02:20
created
src/Logger/CLog.php 3 patches
Doc Comments   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -127,7 +127,7 @@  discard block
 block discarded – undo
127 127
     /**
128 128
      * Returns load time of the page
129 129
      *
130
-     * @return The page load time.
130
+     * @return double page load time.
131 131
      *
132 132
      */
133 133
     public function pageLoadTime()
@@ -141,7 +141,7 @@  discard block
 block discarded – undo
141 141
     /**
142 142
      * Get the memory peak.
143 143
      *
144
-     * @return The memory peak.
144
+     * @return double memory peak.
145 145
      *
146 146
      */
147 147
     public function memoryPeak()
Please login to merge, or discard this patch.
Indentation   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -39,12 +39,12 @@
 block discarded – undo
39 39
     {
40 40
         $now = microtime(true);
41 41
         $this->timestamp[] = array(
42
-          'domain'  => $domain,
43
-          'where'   => $where,
44
-          'comment' => $comment,
45
-          'when'    => $now,
46
-          'memory'  => memory_get_usage(true),
47
-          'duration'=> 0,
42
+            'domain'  => $domain,
43
+            'where'   => $where,
44
+            'comment' => $comment,
45
+            'when'    => $now,
46
+            'memory'  => memory_get_usage(true),
47
+            'duration'=> 0,
48 48
         );
49 49
 
50 50
         if ($this->pos > 0) {
Please login to merge, or discard this patch.
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -79,7 +79,7 @@
 block discarded – undo
79 79
             $duration = round($val['duration'], $this->precision);
80 80
             $percent  = round(($when) / $totalDuration * 100);
81 81
             $memory   = round($val['memory'] / 1024 / 1024, 2);
82
-            $peak     = isset($val['memory-peak']) ? round($val['memory-peak'] / 1024 / 1024, 2): 0;
82
+            $peak     = isset($val['memory-peak']) ? round($val['memory-peak'] / 1024 / 1024, 2) : 0;
83 83
             $when     = round($when, $this->precision);
84 84
             $html .= "<tr><td>{$val['domain']}</td><td>{$val['where']}</td><td{$right}>{$when}</td><td{$right}>{$duration}</td><td{$right}>{$percent}</td><td{$right}>{$memory}</td><td{$right}>{$peak}</td><td>{$val['comment']}</td></tr>";
85 85
             @$total['domain'][$val['domain']] += $val['duration'];
Please login to merge, or discard this patch.
autoloader.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -11,7 +11,7 @@
 block discarded – undo
11 11
  * @param string $class The fully-qualified class name.
12 12
  * @return void
13 13
  */
14
-spl_autoload_register(function ($class) {
14
+spl_autoload_register(function($class) {
15 15
 
16 16
     // project-specific namespace prefix
17 17
     //$prefix = 'Foo\\Bar\\';
Please login to merge, or discard this patch.
webroot/CLogExample.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -3,8 +3,8 @@
 block discarded – undo
3 3
 //
4 4
 // Set the error reporting.
5 5
 //
6
-error_reporting(-1);              // Report all type of errors
7
-ini_set('output_buffering', 0);   // Do not buffer outputs, write directly
6
+error_reporting(-1); // Report all type of errors
7
+ini_set('output_buffering', 0); // Do not buffer outputs, write directly
8 8
 
9 9
 //
10 10
 // Get required files
Please login to merge, or discard this patch.