Code Duplication    Length = 9-9 lines in 2 locations

src/Comodojo/Daemon/Utils/PosixSignals.php 2 locations

@@ 145-153 (lines=9) @@
142
143
    }
144
145
    public function mask() {
146
147
        if ( empty($this->pointer) ) {
148
            return pcntl_sigprocmask(SIG_SETMASK, (array) $this);
149
        }
150
151
        return pcntl_sigprocmask(SIG_BLOCK, $this->pointer);
152
153
    }
154
155
    public function unmask() {
156
@@ 155-163 (lines=9) @@
152
153
    }
154
155
    public function unmask() {
156
157
        if ( empty($this->pointer) ) {
158
            return pcntl_sigprocmask(SIG_SETMASK, []);
159
        }
160
161
        return pcntl_sigprocmask(SIG_UNBLOCK, $this->pointer);
162
163
    }
164
165
}
166