Code Duplication    Length = 8-9 lines in 3 locations

PHPDaemon/Core/AppInstance.php 3 locations

@@ 213-220 (lines=8) @@
210
     * @param  callable $cb     Callback
211
     * @return boolean Success
212
     */
213
    public function broadcastCall($method, $args = [], $cb = null)
214
    {
215
        return Daemon::$process->IPCManager->sendBroadcastCall(
216
            '\\' . get_class($this) . ($this->name !== '' ? ':' . $this->name : ''),
217
            $method,
218
            $args,
219
            $cb
220
        );
221
    }
222
223
    /**
@@ 231-238 (lines=8) @@
228
     * @param  mixed  $cb     Callback
229
     * @return boolean Success
230
     */
231
    public function singleCall($method, $args = [], $cb = null)
232
    {
233
        return Daemon::$process->IPCManager->sendSingleCall(
234
            '\\' . get_class($this) . ($this->name !== '' ? ':' . $this->name : ''),
235
            $method,
236
            $args,
237
            $cb
238
        );
239
    }
240
241
    /**
@@ 250-258 (lines=9) @@
247
     * @param  mixed   $cb       Callback
248
     * @return boolean Success
249
     */
250
    public function directCall($workerId, $method, $args = [], $cb = null)
251
    {
252
        return Daemon::$process->IPCManager->sendDirectCall(
253
            $workerId,
254
            '\\' . get_class($this) . ($this->name !== '' ? ':' . $this->name : ''),
255
            $method,
256
            $args,
257
            $cb
258
        );
259
    }
260
261
    /**