src/robocloud/Consumer/Kinesis/ConsumerRecovery.php
protected function getRecoveryFileContent(): array
    {
        $content = file_get_contents($this->consumerRecoveryFile);
        if (!empty($content)) {
            return json_decode($content, TRUE);
        } elseif ($content === FALSE) {
            throw new ConsumerRecoveryException('Error reading Consumer recovery data at ' . $this->consumerRecoveryFile);
        }

        return [];
    }
protected function getRecoveryFileContent(): array
    {
        $content = file_get_contents($this->consumerRecoveryFile);
        if (!empty($content)) {
            return json_decode($content, TRUE);
        } elseif ($content === FALSE) {
            throw new ConsumerRecoveryException('Error reading Consumer recovery data at ' . $this->consumerRecoveryFile);
        }

        return [];
    }
protected function getRecoveryFileContent ( ) : array { $ content = file_get_contents ( $ this -> consumerRecoveryFile ) ; if ( ! empty ( $ content ) ) { return json_decode ( $ content , TRUE ) ; } elseif ( $ content === FALSE ) { throw new ConsumerRecoveryException ( 'Error reading Consumer recovery data at ' . $ this -> consumerRecoveryFile ) ; } return [ ] ; }
Gets the recovery file contents.

@return array
The recovery file content as array.

@throws \robocloud\Exception\ConsumerRecoveryException
On the recovery file read error.
Gets the recovery file contents .