src/Rocketeer/Services/Storages/Storage.php
protected function getContents()
    {
        // Cancel if the file doesn't exist
        if (!$this->getFilesystem()->has($this->getFilepath())) {
            return [];
        }

        // Get and parse file
        if ($this->contents === null) {
            $this->contents = $this->getFilesystem()->read($this->getFilepath());
            $this->contents = json_decode($this->contents, true);
        }

        return (array) $this->contents;
    }
protected function getContents()
    {
        // Cancel if the file doesn't exist
        if (!$this->getFilesystem()->has($this->getFilepath())) {
            return [];
        }

        // Get and parse file
        if ($this->contents === null) {
            $this->contents = $this->getFilesystem()->read($this->getFilepath());
            $this->contents = json_decode($this->contents, true);
        }

        return (array) $this->contents;
    }
protected function getContents ( ) { // Cancel if the file doesn't exist if ( ! $ this -> getFilesystem ( ) -> has ( $ this -> getFilepath ( ) ) ) { return [ ] ; } // Get and parse file if ( $ this -> contents === null ) { $ this -> contents = $ this -> getFilesystem ( ) -> read ( $ this -> getFilepath ( ) ) ; $ this -> contents = json_decode ( $ this -> contents , true ) ; } return ( array ) $ this -> contents ; }
Get the full contents of the storage file.

@return array
Get the full contents of the storage file .