Completed
Push — master ( 6b890d...288ab5 )
by Ma
03:13
created
src/Monitor/Notification/Notifier.php 1 patch
Doc Comments   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -82,7 +82,7 @@  discard block
 block discarded – undo
82 82
      * @access private
83 83
      * @param  Trigger $trigger
84 84
      * @param  array   $serverData
85
-     * @return \Monitor\Notification\Notification
85
+     * @return Notification|null
86 86
      */
87 87
     private function prepareNotification(Trigger $trigger, array $serverData)
88 88
     {
@@ -120,7 +120,7 @@  discard block
 block discarded – undo
120 120
      *
121 121
      * @param  Trigger $trigger
122 122
      * @param  array   $serverData
123
-     * @return \Monitor\Notification\Notification
123
+     * @return Notification|null
124 124
      */
125 125
     public function triggerHasBeenFired(Trigger $trigger, array $serverData)
126 126
     {
Please login to merge, or discard this patch.
src/Monitor/Notification/Trigger/TriggerMgr.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -82,7 +82,7 @@  discard block
 block discarded – undo
82 82
     public function shouldTriggerBeFired(Trigger $trigger, array $serverData, $msDelay)
83 83
     {
84 84
         $this->checkIsComparatorValid();
85
-        if ( ! $this->notifier->hasNotificationDelayExpired(
85
+        if (!$this->notifier->hasNotificationDelayExpired(
86 86
             $trigger->getId(),
87 87
             $serverData['server_id'],
88 88
             $msDelay
@@ -107,7 +107,7 @@  discard block
 block discarded – undo
107 107
      */
108 108
     private function checkIsComparatorValid()
109 109
     {
110
-        if ( ! $this->comparator) {
110
+        if (!$this->comparator) {
111 111
             throw new \Exception('Comparator invalid');
112 112
         }
113 113
     }
Please login to merge, or discard this patch.