for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace Helldar\LaravelLangPublisher\Services\Processing;
use Helldar\LaravelLangPublisher\Contracts\Process;
use Helldar\LaravelLangPublisher\Facades\File;
use function compact;
abstract class BaseProcess implements Process
{
/** @var string */
protected $locale;
/** @var bool */
protected $force;
protected $result = [];
public function locale(string $locale): self
$this->locale = $locale;
return $this;
}
public function force(bool $force = false): self
$this->force = $force;
public function result(): array
return $this->result;
protected function push(string $filename, string $status): void
$locale = $this->locale;
$this->result[] = compact('locale', 'filename', 'status');
protected function checkExists(string $path): void
File::directoryExists($path, $this->locale);