src/Rocketeer/Services/Storages/Storage.php
protected function saveContents($contents)
    {
        $this->contents = $contents;

        try {
            $this->getFilesystem()->put($this->getFilepath(), json_encode($contents));
        } catch (Exception $e) {
            // ...
        }
    }
protected function saveContents($contents)
    {
        $this->contents = $contents;

        try {
            $this->getFilesystem()->put($this->getFilepath(), json_encode($contents));
        } catch (Exception $e) {
            // ...
        }
    }
protected function saveContents ( $ contents ) { $ this -> contents = $ contents ; try { $ this -> getFilesystem ( ) -> put ( $ this -> getFilepath ( ) , json_encode ( $ contents ) ) ; } catch ( Exception $ e ) { // ... } }
Save the contents of the storage file.

@param array $contents
Save the contents of the storage file .