for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
declare(strict_types=1);
namespace Helldar\LaravelLangPublisher\Comparators;
use Helldar\Contracts\LangPublisher\Comparator;
use Helldar\LaravelLangPublisher\Concerns\Paths;
use Helldar\LaravelLangPublisher\Facades\Support\Filesystem;
abstract class Base implements Comparator
{
use Paths;
protected $keys = [];
protected $translations = [];
protected $force;
public function __construct(array $keys, array $translations, bool $force)
$this->keys = $keys;
$this->translations = $translations;
$this->force = $force;
}
protected function load(string $filename): array
$path = $this->resourcesPath($filename);
return Filesystem::load($path);