src/Sismo/Contrib/WallpaperNotifier.php
private function initializeLogFile()
    {
        $this->log = $this->dir.'/builds.log';

        if (!file_exists($this->log)) {
            $data = array(
                'last_update' => null,
                'projects'    => array(),
            );

            file_put_contents($this->log, serialize($data));
        }
    }
private function initializeLogFile()
    {
        $this->log = $this->dir.'/builds.log';

        if (!file_exists($this->log)) {
            $data = array(
                'last_update' => null,
                'projects'    => array(),
            );

            file_put_contents($this->log, serialize($data));
        }
    }
private function initializeLogFile ( ) { $ this -> log = $ this -> dir . '/builds.log' ; if ( ! file_exists ( $ this -> log ) ) { $ data = array ( 'last_update' => null , 'projects' => array ( ) , ) ; file_put_contents ( $ this -> log , serialize ( $ data ) ) ; } }
This method checks that the build history log file exists.
If it doesn't exist, the method creates and initializes it.
This method checks that the build history log file exists . If it doesn t exist the method creates and initializes it .