Passed
Push — master ( 8ea373...c0c810 )
by David
06:49
created
Subscriber/Dispatch.php 2 patches
Spacing   +3 added lines, -4 removed lines patch added patch discarded remove patch
@@ -56,14 +56,13 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
Please login to merge, or discard this patch.
Braces   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -86,8 +86,7 @@
 block discarded – undo
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
                 }
Please login to merge, or discard this patch.