@@ -76,7 +76,7 @@ discard block |
||
76 | 76 | */ |
77 | 77 | static public function routeFilter() |
78 | 78 | { |
79 | - $routes = AuditEntry::getDb()->cache(function () { |
|
79 | + $routes = AuditEntry::getDb()->cache(function() { |
|
80 | 80 | return AuditEntry::find()->distinct(true) |
81 | 81 | ->select('route')->where(['is not', 'route', null]) |
82 | 82 | ->groupBy('route')->orderBy('route ASC')->column(); |
@@ -89,7 +89,7 @@ discard block |
||
89 | 89 | */ |
90 | 90 | static public function methodFilter() |
91 | 91 | { |
92 | - $methods = AuditEntry::getDb()->cache(function () { |
|
92 | + $methods = AuditEntry::getDb()->cache(function() { |
|
93 | 93 | return AuditEntry::find()->distinct(true) |
94 | 94 | ->select('request_method')->where(['is not', 'request_method', null]) |
95 | 95 | ->groupBy('request_method')->orderBy('request_method ASC')->column(); |
@@ -93,7 +93,7 @@ |
||
93 | 93 | */ |
94 | 94 | static protected function filterData() |
95 | 95 | { |
96 | - return AuditEntry::getDb()->cache(function () { |
|
96 | + return AuditEntry::getDb()->cache(function() { |
|
97 | 97 | return AuditError::find()->distinct(true) |
98 | 98 | ->select(['hash', 'message', 'file'])->asArray()->all(); |
99 | 99 | }, 30); |
@@ -68,7 +68,7 @@ discard block |
||
68 | 68 | */ |
69 | 69 | public function typeFilter() |
70 | 70 | { |
71 | - $types = AuditJavascript::getDb()->cache(function () { |
|
71 | + $types = AuditJavascript::getDb()->cache(function() { |
|
72 | 72 | return AuditJavascript::find()->distinct(true) |
73 | 73 | ->select('type') |
74 | 74 | ->where(['entry_id' => $this->entry_id]) |
@@ -83,7 +83,7 @@ discard block |
||
83 | 83 | */ |
84 | 84 | public function originFilter() |
85 | 85 | { |
86 | - $origin = AuditJavascript::getDb()->cache(function () { |
|
86 | + $origin = AuditJavascript::getDb()->cache(function() { |
|
87 | 87 | return AuditJavascript::find()->distinct(true) |
88 | 88 | ->select('origin') |
89 | 89 | ->where(['entry_id' => $this->entry_id]) |
@@ -61,7 +61,7 @@ discard block |
||
61 | 61 | */ |
62 | 62 | public function getLabel() |
63 | 63 | { |
64 | - return $this->getName() . ' <small>(' . count($this->data) . ')</small>'; |
|
64 | + return $this->getName().' <small>('.count($this->data).')</small>'; |
|
65 | 65 | } |
66 | 66 | |
67 | 67 | /** |
@@ -137,7 +137,7 @@ discard block |
||
137 | 137 | } |
138 | 138 | |
139 | 139 | if ($this->content) |
140 | - $this->data[$id]['content']= curl_multi_getcontent($handle); |
|
140 | + $this->data[$id]['content'] = curl_multi_getcontent($handle); |
|
141 | 141 | |
142 | 142 | // Cleanup empty things |
143 | 143 | $this->data[$id] = array_filter($this->data[$id]); |
@@ -208,7 +208,7 @@ discard block |
||
208 | 208 | if (!is_resource($resource)) |
209 | 209 | return false; |
210 | 210 | |
211 | - $parts = explode('#', (string)$resource); |
|
211 | + $parts = explode('#', (string) $resource); |
|
212 | 212 | return array_pop($parts); |
213 | 213 | } |
214 | 214 |
@@ -29,8 +29,8 @@ |
||
29 | 29 | { |
30 | 30 | $timings = $this->calculateTimings(); |
31 | 31 | $queryCount = count($timings); |
32 | - $queryTime = number_format($this->getTotalQueryTime($timings) * 1000) . ' ms'; |
|
33 | - return $this->getName() . ' <small>(' . $queryCount . ' / ' . $queryTime . ')</small>'; |
|
32 | + $queryTime = number_format($this->getTotalQueryTime($timings) * 1000).' ms'; |
|
33 | + return $this->getName().' <small>('.$queryCount.' / '.$queryTime.')</small>'; |
|
34 | 34 | } |
35 | 35 | |
36 | 36 | /** |
@@ -29,7 +29,7 @@ discard block |
||
29 | 29 | return $entry ? $this->log($entry->id, $e) : null; |
30 | 30 | }); |
31 | 31 | |
32 | - $this->module->registerFunction('errorMessage', function ($message, $code = 0, $file = '', $line = 0, $trace = []) { |
|
32 | + $this->module->registerFunction('errorMessage', function($message, $code = 0, $file = '', $line = 0, $trace = []) { |
|
33 | 33 | $entry = $this->module->getEntry(true); |
34 | 34 | return $entry ? $this->logMessage($entry->id, $message, $code, $file, $line, $trace) : null; |
35 | 35 | }); |
@@ -61,7 +61,7 @@ discard block |
||
61 | 61 | $error->file = $exception->getFile(); |
62 | 62 | $error->line = $exception->getLine(); |
63 | 63 | $error->trace = Helper::cleanupTrace($exception->getTrace()); |
64 | - $error->hash = Helper::hash($error->message . $error->file . $error->line); |
|
64 | + $error->hash = Helper::hash($error->message.$error->file.$error->line); |
|
65 | 65 | |
66 | 66 | $this->_exceptions[] = $exceptionId; |
67 | 67 | |
@@ -88,7 +88,7 @@ discard block |
||
88 | 88 | $error->file = $file; |
89 | 89 | $error->line = $line; |
90 | 90 | $error->trace = Helper::cleanupTrace($trace); |
91 | - $error->hash = Helper::hash($error->message . $error->file . $error->line); |
|
91 | + $error->hash = Helper::hash($error->message.$error->file.$error->line); |
|
92 | 92 | return $error->save(false) ? $error : null; |
93 | 93 | } |
94 | 94 | |
@@ -113,7 +113,7 @@ discard block |
||
113 | 113 | */ |
114 | 114 | public function getLabel() |
115 | 115 | { |
116 | - return $this->getName() . ' <small>(' . count($this->_model->linkedErrors) . ')</small>'; |
|
116 | + return $this->getName().' <small>('.count($this->_model->linkedErrors).')</small>'; |
|
117 | 117 | } |
118 | 118 | |
119 | 119 | /** |
@@ -36,7 +36,7 @@ |
||
36 | 36 | */ |
37 | 37 | public function getLabel() |
38 | 38 | { |
39 | - return $this->getName() . ' <small>(' . count($this->data) . ')</small>'; |
|
39 | + return $this->getName().' <small>('.count($this->data).')</small>'; |
|
40 | 40 | } |
41 | 41 | |
42 | 42 | /** |
@@ -27,7 +27,7 @@ |
||
27 | 27 | */ |
28 | 28 | public function getLabel() |
29 | 29 | { |
30 | - return $this->getName() . ' <small>(' . count($this->_model->javascripts) . ')</small>'; |
|
30 | + return $this->getName().' <small>('.count($this->_model->javascripts).')</small>'; |
|
31 | 31 | } |
32 | 32 | |
33 | 33 | /** |
@@ -21,7 +21,7 @@ |
||
21 | 21 | public function getLabel() |
22 | 22 | { |
23 | 23 | $messageCount = isset($this->data['messages']) ? count($this->data['messages']) : 0; |
24 | - return $this->getName() . ($messageCount ? ' <small>(' . $messageCount . ')</small>' : ''); |
|
24 | + return $this->getName().($messageCount ? ' <small>('.$messageCount.')</small>' : ''); |
|
25 | 25 | } |
26 | 26 | |
27 | 27 | /** |