Code Duplication    Length = 5-5 lines in 2 locations

source/AbstractTask.php 1 location

@@ 142-146 (lines=5) @@
139
     */
140
    protected function setUpSignalHandling($nameOfSignalHandlerMethod)
141
    {
142
        if (!is_callable(array($this, $nameOfSignalHandlerMethod))) {
143
            throw new InvalidArgumentException(
144
                'provided method name "' . $nameOfSignalHandlerMethod . '" is not available'
145
            );
146
        }
147
148
        //pcntl_signal(SIGHUP,    array($this, $nameOfSignalHandlerMethod));
149
        pcntl_signal(SIGINT,    array($this, $nameOfSignalHandlerMethod));  //shell ctrl+c

source/ForkManager.php 1 location

@@ 509-513 (lines=5) @@
506
     */
507
    private function setUpSignalHandling($nameOfSignalHandlerMethod)
508
    {
509
        if (!is_callable(array($this, $nameOfSignalHandlerMethod))) {
510
            throw new InvalidArgumentException(
511
                'provided method name "' . $nameOfSignalHandlerMethod . '" is not available'
512
            );
513
        }
514
515
        pcntl_signal(SIGHUP,    array($this, $nameOfSignalHandlerMethod));    //controlling terminal is closed
516
        pcntl_signal(SIGINT,    array($this, $nameOfSignalHandlerMethod));  //interrupt this processing | ctrl+c