Passed
Push — main ( 198534...6a0396 )
by Thierry
05:52
created
src/Service/Meeting/SessionService.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -31,7 +31,7 @@  discard block
 block discarded – undo
31 31
      */
32 32
     public function checkPoolsSubscriptions()
33 33
     {
34
-        if($this->tenantService->round()->pools()->whereDoesntHave('subscriptions')->count() > 0)
34
+        if ($this->tenantService->round()->pools()->whereDoesntHave('subscriptions')->count() > 0)
35 35
         {
36 36
             throw new MessageException(trans('tontine.errors.action') .
37 37
                 '<br/>' . trans('tontine.pool.errors.no_subscription'));
@@ -94,14 +94,14 @@  discard block
 block discarded – undo
94 94
      */
95 95
     public function openSession(Session $session)
96 96
     {
97
-        if($session->pending)
97
+        if ($session->pending)
98 98
         {
99 99
             // If the session is getting opened for the first time, then
100 100
             // its also needs to get synced with charges and subscriptions.
101 101
             $this->syncSession($session);
102 102
             return;
103 103
         }
104
-        if(!$session->opened)
104
+        if (!$session->opened)
105 105
         {
106 106
             // Open the session
107 107
             $session->update(['status' => Session::STATUS_OPENED]);
Please login to merge, or discard this patch.
app/Ajax/Web/Meeting/Session.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -83,7 +83,7 @@  discard block
 block discarded – undo
83 83
 
84 84
     public function open(int $sessionId)
85 85
     {
86
-        if(!($session = $this->sessionService->getSession($sessionId)) || $session->opened)
86
+        if (!($session = $this->sessionService->getSession($sessionId)) || $session->opened)
87 87
         {
88 88
             $this->notify->error(trans('tontine.session.errors.opened'), trans('common.titles.error'));
89 89
             return $this->page();
@@ -96,7 +96,7 @@  discard block
 block discarded – undo
96 96
 
97 97
     public function close(int $sessionId)
98 98
     {
99
-        if(!($session = $this->sessionService->getSession($sessionId)) || !$session->opened)
99
+        if (!($session = $this->sessionService->getSession($sessionId)) || !$session->opened)
100 100
         {
101 101
             $this->notify->error(trans('tontine.session.errors.not_opened'), trans('common.titles.error'));
102 102
             return $this->page();
Please login to merge, or discard this patch.