for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace RichanFongdasen\I18n\Repositories;
class JsonRepository extends Repository
{
/**
* Read the json datasource.
*
* @return array
*/
protected function read(): array
$content = file_get_contents($this->datasource);
return ($content !== false) ? json_decode($content) : [];
}