@@ -56,14 +56,13 @@ discard block |
||
56 | 56 | $sessionID = $this->session->get('sessionId'); |
57 | 57 | |
58 | 58 | $isSessionRecorded = strtolower($request->getControllerName()) !== 'snapshots' ? |
59 | - $this->session->get('isSessionRecorded') : |
|
60 | - false; |
|
59 | + $this->session->get('isSessionRecorded') : false; |
|
61 | 60 | |
62 | 61 | $snapshotSessionID = $view->getAssign('snapshotSessionID'); |
63 | 62 | |
64 | 63 | $view->assign( |
65 | 64 | [ |
66 | - 'snapshotSessionID' => $snapshotSessionID ? : $sessionID, |
|
65 | + 'snapshotSessionID' => $snapshotSessionID ?: $sessionID, |
|
67 | 66 | 'isSessionRecorded' => $isSessionRecorded, |
68 | 67 | ] |
69 | 68 | ); |
@@ -81,7 +80,7 @@ discard block |
||
81 | 80 | |
82 | 81 | $variables = $view->getAssign(); |
83 | 82 | |
84 | - array_walk_recursive($variables, function (&$value) { |
|
83 | + array_walk_recursive($variables, function(&$value) { |
|
85 | 84 | if (is_object($value)) { |
86 | 85 | try { |
87 | 86 | // workaround for PDOException when trying to serialize PDO instances |
@@ -86,8 +86,7 @@ |
||
86 | 86 | try { |
87 | 87 | // workaround for PDOException when trying to serialize PDO instances |
88 | 88 | serialize($value); |
89 | - } |
|
90 | - catch (\Throwable $e) { |
|
89 | + } catch (\Throwable $e) { |
|
91 | 90 | // as we only need a snapshot for the view, remove the PDO instance |
92 | 91 | $value = null; |
93 | 92 | } |