Removed finalize classes
This commit is contained in:
1 parent
2d5b0c605b
commit
b8a5f3538f
27 files changed
+27
-27
No files matched your search
@@ -8,7 +8,7 @@ use LaravelLang\Lang\Contracts\Application as ApplicationContract;
|
||||
use LaravelLang\Lang\Contracts\Processable;
|
||||
use LaravelLang\Lang\Facades\Env;
|
||||
|
||||
final class Application implements ApplicationContract
|
||||
class Application implements ApplicationContract
|
||||
{
|
||||
use Makeable;
|
||||
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
|
||||
namespace LaravelLang\Lang\Constants;
|
||||
|
||||
final class Locales
|
||||
class Locales
|
||||
{
|
||||
public const ENGLISH = 'en';
|
||||
}
|
||||
@@ -2,7 +2,7 @@
|
||||
|
||||
namespace LaravelLang\Lang\Constants;
|
||||
|
||||
final class Referents
|
||||
class Referents
|
||||
{
|
||||
public const ar = ['mohamedsabil83', 'Khuthaily'];
|
||||
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
|
||||
namespace LaravelLang\Lang\Constants;
|
||||
|
||||
final class Resource
|
||||
class Resource
|
||||
{
|
||||
public const STATUS = 'status.stub';
|
||||
|
||||
|
||||
@@ -8,7 +8,7 @@ use LaravelLang\Lang\Services\Translate as Service;
|
||||
/**
|
||||
* @method static string translate(string $locale, string $text)
|
||||
*/
|
||||
final class Translate extends Facade
|
||||
class Translate extends Facade
|
||||
{
|
||||
protected static function getFacadeAccessor()
|
||||
{
|
||||
|
||||
@@ -4,7 +4,7 @@ namespace LaravelLang\Lang\Models;
|
||||
|
||||
use LaravelLang\Lang\Constants\Machines;
|
||||
|
||||
final class Locale extends Model
|
||||
class Locale extends Model
|
||||
{
|
||||
public function __construct(
|
||||
protected ?string $locale = null,
|
||||
|
||||
@@ -5,7 +5,7 @@ namespace LaravelLang\Lang\Processors;
|
||||
use DragonCode\Support\Facades\Helpers\Arr;
|
||||
use DragonCode\Support\Facades\Helpers\Filesystem\File;
|
||||
|
||||
final class Excludes extends Processor
|
||||
class Excludes extends Processor
|
||||
{
|
||||
protected string $target_path = 'excludes';
|
||||
|
||||
|
||||
@@ -4,7 +4,7 @@ namespace LaravelLang\Lang\Processors;
|
||||
|
||||
use DragonCode\Support\Facades\Helpers\Filesystem\File;
|
||||
|
||||
final class Keys extends Processor
|
||||
class Keys extends Processor
|
||||
{
|
||||
protected string $target_path = 'locales';
|
||||
|
||||
|
||||
@@ -5,7 +5,7 @@ namespace LaravelLang\Lang\Processors;
|
||||
use DragonCode\Support\Facades\Helpers\Arr;
|
||||
use LaravelLang\Lang\Facades\Package;
|
||||
|
||||
final class Packages extends Processor
|
||||
class Packages extends Processor
|
||||
{
|
||||
protected array $packages = [
|
||||
'laravel/breeze' => 'packages/breeze.json',
|
||||
|
||||
@@ -10,7 +10,7 @@ use LaravelLang\Lang\Services\Compilers\Referents as Compilator;
|
||||
use ReflectionClass;
|
||||
use ReflectionClassConstant;
|
||||
|
||||
final class Referents extends Processor
|
||||
class Referents extends Processor
|
||||
{
|
||||
use Template;
|
||||
|
||||
|
||||
@@ -9,7 +9,7 @@ use LaravelLang\Lang\Contracts\Stringable;
|
||||
use LaravelLang\Lang\Services\Compilers\Collection;
|
||||
use LaravelLang\Lang\Services\Compilers\Locale;
|
||||
|
||||
final class Locales extends Processor
|
||||
class Locales extends Processor
|
||||
{
|
||||
protected function saving(): void
|
||||
{
|
||||
|
||||
@@ -5,7 +5,7 @@ namespace LaravelLang\Lang\Processors\Statuses;
|
||||
use LaravelLang\Lang\Contracts\Stringable;
|
||||
use LaravelLang\Lang\Services\Compilers\Status;
|
||||
|
||||
final class Main extends Processor
|
||||
class Main extends Processor
|
||||
{
|
||||
protected function saving(): void
|
||||
{
|
||||
|
||||
@@ -5,7 +5,7 @@ namespace LaravelLang\Lang\Processors\Statuses;
|
||||
use LaravelLang\Lang\Facades\Translate;
|
||||
use Throwable;
|
||||
|
||||
final class Translator extends Processor
|
||||
class Translator extends Processor
|
||||
{
|
||||
protected function saving(): void
|
||||
{
|
||||
|
||||
@@ -4,7 +4,7 @@ namespace LaravelLang\Lang\Services\Compilers;
|
||||
|
||||
use LaravelLang\Lang\Constants\Resource;
|
||||
|
||||
final class Collection extends Compiler
|
||||
class Collection extends Compiler
|
||||
{
|
||||
public function toString(): string
|
||||
{
|
||||
|
||||
@@ -4,7 +4,7 @@ namespace LaravelLang\Lang\Services\Compilers;
|
||||
|
||||
use LaravelLang\Lang\Constants\Resource;
|
||||
|
||||
final class Locale extends Compiler
|
||||
class Locale extends Compiler
|
||||
{
|
||||
public function toString(): string
|
||||
{
|
||||
|
||||
@@ -4,7 +4,7 @@ namespace LaravelLang\Lang\Services\Compilers;
|
||||
|
||||
use LaravelLang\Lang\Constants\Resource;
|
||||
|
||||
final class Referents extends Compiler
|
||||
class Referents extends Compiler
|
||||
{
|
||||
public function toString(): string
|
||||
{
|
||||
|
||||
@@ -6,7 +6,7 @@ use DragonCode\Support\Facades\Helpers\Str;
|
||||
use LaravelLang\Lang\Constants\Resource;
|
||||
use LaravelLang\Lang\Models\Locale;
|
||||
|
||||
final class Status extends Compiler
|
||||
class Status extends Compiler
|
||||
{
|
||||
protected int $columns = 6;
|
||||
|
||||
|
||||
@@ -4,7 +4,7 @@ namespace LaravelLang\Lang\Services\Compilers;
|
||||
|
||||
use LaravelLang\Lang\Constants\Resource;
|
||||
|
||||
final class Table extends Compiler
|
||||
class Table extends Compiler
|
||||
{
|
||||
protected string $align = 'left';
|
||||
|
||||
|
||||
@@ -4,7 +4,7 @@ namespace LaravelLang\Lang\Services;
|
||||
|
||||
use DragonCode\Support\Concerns\Makeable;
|
||||
|
||||
final class Counter
|
||||
class Counter
|
||||
{
|
||||
use Makeable;
|
||||
|
||||
|
||||
@@ -7,7 +7,7 @@ use DragonCode\Support\Facades\Helpers\Arr;
|
||||
use DragonCode\Support\Tools\Stub;
|
||||
use LaravelLang\Lang\Contracts\Stringable;
|
||||
|
||||
final class Json extends Base
|
||||
class Json extends Base
|
||||
{
|
||||
public function load(string $path): array
|
||||
{
|
||||
|
||||
@@ -6,7 +6,7 @@ use DragonCode\Support\Facades\Helpers\Filesystem\File;
|
||||
use DragonCode\Support\Tools\Stub;
|
||||
use LaravelLang\Lang\Contracts\Stringable;
|
||||
|
||||
final class Markdown extends Base
|
||||
class Markdown extends Base
|
||||
{
|
||||
public function store(string $path, array|string|Stringable $content, bool $is_simple = false, string $stub = Stub::PHP_ARRAY): void
|
||||
{
|
||||
|
||||
@@ -7,7 +7,7 @@ use DragonCode\PrettyArray\Services\Formatter;
|
||||
use DragonCode\Support\Tools\Stub;
|
||||
use LaravelLang\Lang\Contracts\Stringable;
|
||||
|
||||
final class Php extends Base
|
||||
class Php extends Base
|
||||
{
|
||||
public function load(string $path): array
|
||||
{
|
||||
|
||||
@@ -6,7 +6,7 @@ use GuzzleHttp\Client;
|
||||
use GuzzleHttp\RequestOptions;
|
||||
use DragonCode\Support\Facades\Helpers\Str;
|
||||
|
||||
final class Translate
|
||||
class Translate
|
||||
{
|
||||
protected string $url = 'https://translate.api.cloud.yandex.net/translate/v2/translate';
|
||||
|
||||
|
||||
@@ -7,7 +7,7 @@ use Dotenv\Repository\RepositoryBuilder;
|
||||
use Dotenv\Repository\RepositoryInterface;
|
||||
use PhpOption\Option;
|
||||
|
||||
final class Env
|
||||
class Env
|
||||
{
|
||||
protected static RepositoryInterface|AdapterRepository|null $repository;
|
||||
|
||||
|
||||
@@ -4,7 +4,7 @@ namespace Tests;
|
||||
|
||||
use DragonCode\PrettyArray\Services\File as Pretty;
|
||||
|
||||
final class JsonTest extends TestCase
|
||||
class JsonTest extends TestCase
|
||||
{
|
||||
public function testJson(): void
|
||||
{
|
||||
|
||||
@@ -4,7 +4,7 @@ namespace Tests;
|
||||
|
||||
use DragonCode\PrettyArray\Services\File as Pretty;
|
||||
|
||||
final class PhpTest extends TestCase
|
||||
class PhpTest extends TestCase
|
||||
{
|
||||
public function testPhp(): void
|
||||
{
|
||||
|
||||
@@ -5,7 +5,7 @@ namespace Tests;
|
||||
use DragonCode\Support\Facades\Helpers\Filesystem\Directory;
|
||||
use DragonCode\Support\Facades\Helpers\Str;
|
||||
|
||||
final class StatusTest extends TestCase
|
||||
class StatusTest extends TestCase
|
||||
{
|
||||
protected string $target_path = __DIR__ . '/../../locales';
|
||||
|
||||
|
||||
Reference in new issue
Block a user