Passed
Branchfeature/useWidgetsNamespaces (b6928f)
by Robin
03:02
created
programs/Ctrl/AppCtrlSSE.php 1 patch
Spacing   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -47,15 +47,15 @@  discard block
 block discarded – undo
47 47
         
48 48
         $refreshFrequency = $this->getRefreshFrequency();
49 49
         
50
-        while (1){
51
-            if(connection_aborted()){
50
+        while (1) {
51
+            if (connection_aborted()) {
52 52
                 exit();
53 53
             }
54 54
             $data = $this->getSSEData();
55
-            if($data != '{}'){
55
+            if ($data != '{}') {
56 56
                 echo "event: ping\n";
57 57
                 echo "\n\n";
58
-                echo 'data: ' . $this->getSSEData() . "\n\n";
58
+                echo 'data: '.$this->getSSEData()."\n\n";
59 59
             }
60 60
             ob_end_flush();
61 61
             flush();
@@ -79,7 +79,7 @@  discard block
 block discarded – undo
79 79
     
80 80
     private function getRefreshFrequency()
81 81
     {
82
-        if(! isset($this->refreshFrequency)){
82
+        if (!isset($this->refreshFrequency)) {
83 83
             $registry = app_getRegistry();
84 84
             $registry->changeDirectory('configuration');
85 85
             $registry->changeDirectory('SSE');
@@ -98,7 +98,7 @@  discard block
 block discarded – undo
98 98
     
99 99
     private function getCurrentUser()
100 100
     {
101
-        if(isset($this->currentUser)){
101
+        if (isset($this->currentUser)) {
102 102
             return $this->currentUser;
103 103
         }
104 104
         
Please login to merge, or discard this patch.