src/Rocketeer/Services/History/LogsHandler.php
protected function createLogsFile($file)
    {
        $directory = dirname($file);

        // Create directory
        if (!$this->files->isDirectory($directory)) {
            $this->files->createDir($directory);
        }

        // Create file
        if (!$this->files->has($file)) {
            $this->files->put($file, '');
        }
    }
protected function createLogsFile($file)
    {
        $directory = dirname($file);

        // Create directory
        if (!$this->files->isDirectory($directory)) {
            $this->files->createDir($directory);
        }

        // Create file
        if (!$this->files->has($file)) {
            $this->files->put($file, '');
        }
    }
protected function createLogsFile ( $ file ) { $ directory = dirname ( $ file ) ; // Create directory if ( ! $ this -> files -> isDirectory ( $ directory ) ) { $ this -> files -> createDir ( $ directory ) ; } // Create file if ( ! $ this -> files -> has ( $ file ) ) { $ this -> files -> put ( $ file , '' ) ; } }
Create a logs file if it doesn't exist.

@param string $file
Create a logs file if it doesn t exist .