src/Shell/CakeResqueShell.php
protected function _checkStartedWorker($pidFile)
    {
        $pid = false;
        if (file_exists($pidFile) && false !== $pid = file_get_contents($pidFile)) {
            unlink($pidFile);

            return (int)$pid;
        }

        return false;
    }
protected function _checkStartedWorker($pidFile)
    {
        $pid = false;
        if (file_exists($pidFile) && false !== $pid = file_get_contents($pidFile)) {
            unlink($pidFile);

            return (int)$pid;
        }

        return false;
    }
protected function _checkStartedWorker ( $ pidFile ) { $ pid = false ; if ( file_exists ( $ pidFile ) && false !== $ pid = file_get_contents ( $ pidFile ) ) { unlink ( $ pidFile ) ; return ( int ) $ pid ; } return false ; }
Check if the worker has started.

@param string $pidFile Path to the file containing the worker PID.
@since 3.3.6
@codeCoverageIgnore
@return mixed Worker PID if worker is started, false otherwise.
Check if the worker has started .