Job.php
protected function addJobToExecFile($cmd)
    {
        $content = file_get_contents($this->crontabCommands);

        if( ! stristr($content, $cmd))
        {
            $content = $content . $this->getValidCommand() . $cmd . EOL;

            file_put_contents($this->crontabCommands, $content);
        }
    }
protected function addJobToExecFile($cmd)
    {
        $content = file_get_contents($this->crontabCommands);

        if( ! stristr($content, $cmd))
        {
            $content = $content . $this->getValidCommand() . $cmd . EOL;

            file_put_contents($this->crontabCommands, $content);
        }
    }
protected function addJobToExecFile ( $ cmd ) { $ content = file_get_contents ( $ this -> crontabCommands ) ; if ( ! stristr ( $ content , $ cmd ) ) { $ content = $ content . $ this -> getValidCommand ( ) . $ cmd . EOL ; file_put_contents ( $ this -> crontabCommands , $ content ) ; } }
Protected add job to exec file
Protected add job to exec file