Skip to content

Commit 85cccf1

Browse files
committed
fix cs
1 parent 3026496 commit 85cccf1

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

src/Panel/VariablesPanel.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -166,11 +166,13 @@ protected function trySerialize($item)
166166
{
167167
try {
168168
serialize($item);
169+
169170
return $item;
170171
} catch (\Exception $e) {
171172
if (is_object($item)) {
172173
return __d('debug_kit', 'Unserializable object - {0}. Error: {1} in {2}, line {3}', get_class($item), $e->getMessage(), $e->getFile(), $e->getLine());
173174
}
175+
174176
return __d('debug_kit', 'Unserializable Error: {1} in {2}, line {3}', $e->getMessage(), $e->getFile(), $e->getLine());
175177
}
176178
}

tests/TestCase/Panel/VariablesPanelTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,7 @@ public function testShutdown()
9999
$this->panel->shutdown($event);
100100
$output = $this->panel->data();
101101

102-
array_walk_recursive($output, function($item) {
102+
array_walk_recursive($output, function ($item) {
103103
try {
104104
serialize($item);
105105
} catch (\Exception $e) {

0 commit comments

Comments
 (0)