Bump dev dependencies

This commit is contained in:
Andrey Helldar committed 2022-04-21 16:20:57 +03:00
1 parent a6dd43fc33
commit 3d9cb7cad9
23 files changed
+48 -59

No files matched your search

+1 -1
View File
@@ -2,7 +2,7 @@
namespace LaravelLang\Development\Concerns;
use DragonCode\Support\Facades\Helpers\Filesystem\Directory;
use DragonCode\Support\Facades\Filesystem\Directory;
use DragonCode\Support\Facades\Helpers\Str;
use LaravelLang\Development\Constants\Locales;
+2 -2
View File
@@ -3,7 +3,7 @@
namespace LaravelLang\Development\Concerns;
use DragonCode\PrettyArray\Services\File as PrettyFile;
use DragonCode\Support\Facades\Helpers\Filesystem\File;
use DragonCode\Support\Facades\Filesystem\File;
/** @mixin \LaravelLang\Development\Processors\Processor */
trait Excludes
@@ -13,7 +13,7 @@ trait Excludes
protected function hasExclude(string $value, string $locale): bool
{
return $this->hasExcludeValue($locale, $value)
|| $this->hasExcludeValue('_all', $value);
|| $this->hasExcludeValue('_all', $value);
}
protected function hasExcludeValue(string $key, string $value): bool
+1 -1
View File
@@ -2,7 +2,7 @@
namespace LaravelLang\Development\Concerns;
use DragonCode\Support\Facades\Helpers\Instance;
use DragonCode\Support\Facades\Instances\Instance;
use DragonCode\Support\Tools\Stub;
use LaravelLang\Development\Contracts\Stringable;
+1 -4
View File
@@ -2,7 +2,6 @@
namespace LaravelLang\Development\Concerns;
use DragonCode\PrettyArray\Services\File;
use DragonCode\Support\Facades\Helpers\Str;
trait Template
@@ -29,9 +28,7 @@ trait Template
return static::$templates[$filename];
}
$template = File::make()->loadRaw(
$this->templatePath($filename)
);
$template = file_get_contents($this->templatePath($filename));
return static::$templates[$filename] = $trim ? trim($template) : $template;
}
+1 -1
View File
@@ -4,7 +4,7 @@ declare(strict_types=1);
namespace LaravelLang\Development\Processors;
use DragonCode\Support\Facades\Helpers\Filesystem\File;
use DragonCode\Support\Facades\Filesystem\File;
use RuntimeException;
class AddLocale extends Processor
+2 -2
View File
@@ -2,7 +2,7 @@
namespace LaravelLang\Development\Processors;
use DragonCode\Support\Facades\Helpers\Filesystem\Directory;
use DragonCode\Support\Facades\Filesystem\Directory;
use GuzzleHttp\Client;
use RuntimeException;
use ZipArchive;
@@ -30,7 +30,7 @@ class Download extends Processor
];
public function __construct(
protected Client $client = new Client(),
protected Client $client = new Client(),
protected ZipArchive $zip = new ZipArchive()
) {
}
+1 -1
View File
@@ -2,8 +2,8 @@
namespace LaravelLang\Development\Processors;
use DragonCode\Support\Facades\Filesystem\File;
use DragonCode\Support\Facades\Helpers\Arr;
use DragonCode\Support\Facades\Helpers\Filesystem\File;
class Excludes extends Processor
{
+1 -1
View File
@@ -2,7 +2,7 @@
namespace LaravelLang\Development\Processors;
use DragonCode\Support\Facades\Helpers\Filesystem\Directory;
use DragonCode\Support\Facades\Filesystem\Directory;
class Git extends Processor
{
+1 -1
View File
@@ -2,7 +2,7 @@
namespace LaravelLang\Development\Processors;
use DragonCode\Support\Facades\Helpers\Filesystem\File;
use DragonCode\Support\Facades\Filesystem\File;
class Keys extends Processor
{
+4 -5
View File
@@ -3,10 +3,9 @@
namespace LaravelLang\Development\Processors;
use DragonCode\Support\Concerns\Makeable;
use DragonCode\Support\Facades\Helpers\Ables\Arrayable;
use DragonCode\Support\Facades\Filesystem\Directory;
use DragonCode\Support\Facades\Filesystem\File;
use DragonCode\Support\Facades\Helpers\Arr;
use DragonCode\Support\Facades\Helpers\Filesystem\Directory;
use DragonCode\Support\Facades\Helpers\Filesystem\File;
use DragonCode\Support\Tools\Stub;
use JetBrains\PhpStorm\Pure;
use LaravelLang\Development\Application;
@@ -82,10 +81,10 @@ abstract class Processor implements Processable
{
$files = File::names($this->getSourcePath(), recursive: true);
$file = Arrayable::of($files)
$file = Arr::of($files)
->filter(fn ($name) => str_contains($name, $filename))
->values()
->get();
->toArray();
return $this->load($this->getSourcePath($file[0]));
}
+1 -1
View File
@@ -2,7 +2,7 @@
namespace LaravelLang\Development\Processors;
use DragonCode\Support\Facades\Helpers\Filesystem\Directory;
use DragonCode\Support\Facades\Filesystem\Directory;
use LaravelLang\Development\Concerns\Template;
use LaravelLang\Development\Constants\Referents as Constants;
use LaravelLang\Development\Contracts\Stringable;
+1 -1
View File
@@ -2,7 +2,7 @@
namespace LaravelLang\Development\Processors\Statuses;
use DragonCode\Support\Facades\Helpers\Filesystem\Directory;
use DragonCode\Support\Facades\Filesystem\Directory;
use DragonCode\Support\Facades\Helpers\Str;
use LaravelLang\Development\Constants\Resource;
use LaravelLang\Development\Contracts\Stringable;
+2 -2
View File
@@ -3,9 +3,9 @@
namespace LaravelLang\Development\Processors\Statuses;
use DragonCode\Support\Facades\Callbacks\Sorter;
use DragonCode\Support\Facades\Filesystem\Directory;
use DragonCode\Support\Facades\Filesystem\File;
use DragonCode\Support\Facades\Helpers\Arr;
use DragonCode\Support\Facades\Helpers\Filesystem\Directory;
use DragonCode\Support\Facades\Helpers\Filesystem\File;
use LaravelLang\Development\Concerns\Countable;
use LaravelLang\Development\Concerns\Excludes;
use LaravelLang\Development\Concerns\Template;
+3 -3
View File
@@ -3,7 +3,7 @@
namespace LaravelLang\Development\Services\Filesystem;
use DragonCode\Support\Concerns\Makeable;
use DragonCode\Support\Facades\Helpers\Ables\Arrayable;
use DragonCode\Support\Facades\Helpers\Arr;
use LaravelLang\Development\Application;
use LaravelLang\Development\Concerns\Storable;
use LaravelLang\Development\Contracts\Filesystem;
@@ -31,9 +31,9 @@ abstract class Base implements Filesystem
{
$callback = static fn ($value) => stripslashes($value);
return Arrayable::of($items)
return Arr::of($items)
->map($callback, true)
->renameKeys($callback)
->get();
->toArray();
}
}
+3 -6
View File
@@ -2,8 +2,7 @@
namespace LaravelLang\Development\Services\Filesystem;
use DragonCode\PrettyArray\Services\File as Pretty;
use DragonCode\Support\Facades\Helpers\Arr;
use DragonCode\Support\Facades\Filesystem\File;
use DragonCode\Support\Tools\Stub;
use LaravelLang\Development\Contracts\Stringable;
@@ -11,9 +10,7 @@ class Json extends Base
{
public function load(string $path): array
{
$content = Pretty::make()->loadRaw($path);
$items = json_decode($content, true);
$items = File::load($path);
return $this->correctValues($items);
}
@@ -24,6 +21,6 @@ class Json extends Base
$content = array_values($content);
}
Arr::storeAsJson($path, $content, false, JSON_UNESCAPED_UNICODE ^ JSON_UNESCAPED_SLASHES ^ JSON_PRETTY_PRINT);
file_put_contents($path, json_encode($content, JSON_UNESCAPED_UNICODE ^ JSON_UNESCAPED_SLASHES ^ JSON_PRETTY_PRINT));
}
}
+1 -1
View File
@@ -2,7 +2,7 @@
namespace LaravelLang\Development\Services\Filesystem;
use DragonCode\Support\Facades\Helpers\Filesystem\File;
use DragonCode\Support\Facades\Filesystem\File;
use DragonCode\Support\Tools\Stub;
use LaravelLang\Development\Contracts\Stringable;
+1 -1
View File
@@ -2,7 +2,7 @@
namespace LaravelLang\Development\Support;
use DragonCode\Support\Facades\Helpers\Filesystem\Directory;
use DragonCode\Support\Facades\Filesystem\Directory;
use DragonCode\Support\Facades\Helpers\Str;
class Package
+7 -7
View File
@@ -24,19 +24,19 @@
"require-dev": {
"php": "^8.1",
"ext-zip": "*",
"dragon-code/pretty-array": "^3.0",
"dragon-code/simple-dto": "^2.2",
"dragon-code/support": "^5.6",
"dragon-code/pretty-array": "^4.0",
"dragon-code/simple-dto": "^2.3",
"dragon-code/support": "^6.1",
"guzzlehttp/guzzle": "^7.3",
"laravel-lang/publisher": "^12.1",
"laravel-lang/publisher": "^13.0",
"laravel/breeze": "^1.2",
"laravel/fortify": "^1.7",
"laravel/jetstream": "^2.3",
"laravel/ui": "^3.4",
"orchestra/testbench": "^5.0 || ^6.0 || ^7.0",
"orchestra/testbench": "^7.0",
"phpunit/phpunit": "^9.5",
"symfony/finder": "^5.2 || ^6.0",
"symfony/var-dumper": "^5.2 || ^6.0",
"symfony/finder": "^6.0",
"symfony/var-dumper": "^6.0",
"vlucas/phpdotenv": "^5.4.1"
},
"conflict": {
+2 -4
View File
@@ -2,7 +2,7 @@
namespace Tests\Development;
use DragonCode\PrettyArray\Services\File as Pretty;
use DragonCode\Support\Facades\Filesystem\File;
class JsonTest extends TestCase
{
@@ -25,9 +25,7 @@ class JsonTest extends TestCase
protected function load(string $path): array
{
$content = Pretty::make()->loadRaw($path);
$items = json_decode($content, true);
$items = File::load($path);
return $this->correctValues($items);
}
+1 -1
View File
@@ -2,7 +2,7 @@
namespace Tests\Development;
use DragonCode\Support\Facades\Helpers\Filesystem\Directory;
use DragonCode\Support\Facades\Filesystem\Directory;
use DragonCode\Support\Facades\Helpers\Str;
class StatusLocalesTest extends TestCase
+1 -1
View File
@@ -2,7 +2,7 @@
namespace Tests\Development;
use DragonCode\Support\Facades\Helpers\Filesystem\Directory;
use DragonCode\Support\Facades\Filesystem\Directory;
use DragonCode\Support\Facades\Helpers\Str;
class StatusTest extends TestCase
+8 -10
View File
@@ -2,11 +2,9 @@
namespace Tests\Development;
use DragonCode\PrettyArray\Services\File;
use DragonCode\Support\Facades\Helpers\Ables\Arrayable;
use DragonCode\Support\Facades\Filesystem\Directory;
use DragonCode\Support\Facades\Filesystem\File as Filesystem;
use DragonCode\Support\Facades\Helpers\Arr;
use DragonCode\Support\Facades\Helpers\Filesystem\Directory;
use DragonCode\Support\Facades\Helpers\Filesystem\File as Filesystem;
use DragonCode\Support\Facades\Helpers\Str;
use JetBrains\PhpStorm\Pure;
use LaravelLang\Development\Constants\Locales;
@@ -28,11 +26,11 @@ abstract class TestCase extends BaseTestCase
if ($this->isValidation($filename)) {
$custom = Arr::get($content, 'custom', []);
return Arrayable::of($content)
return Arr::of($content)
->except(['attributes', 'custom'])
->ksort()
->merge(compact('custom'))
->get();
->toArray();
}
return Arr::ksort($content);
@@ -58,7 +56,7 @@ abstract class TestCase extends BaseTestCase
protected function assertSee(string $path, string $content): void
{
$file = File::make()->loadRaw($path);
$file = file_get_contents($path);
$this->assertTrue(
str_contains($file, $content),
@@ -68,7 +66,7 @@ abstract class TestCase extends BaseTestCase
protected function assertDoesntSee(string $path, string|array $content): void
{
$file = File::make()->loadRaw($path);
$file = file_get_contents($path);
$values = Arr::wrap($content);
@@ -140,9 +138,9 @@ abstract class TestCase extends BaseTestCase
{
$callback = static fn ($value) => stripslashes($value);
return Arrayable::of($items)
return Arr::of($items)
->map($callback, true)
->renameKeys($callback)
->get();
->toArray();
}
}
+2 -2
View File
@@ -4,8 +4,8 @@ declare(strict_types=1);
namespace Tests\Production;
use DragonCode\Support\Facades\Helpers\Filesystem\Directory;
use DragonCode\Support\Facades\Helpers\Filesystem\File;
use DragonCode\Support\Facades\Filesystem\Directory;
use DragonCode\Support\Facades\Filesystem\File;
use Illuminate\Support\Facades\Artisan;
use LaravelLang\Publisher\Concerns\Has;
use LaravelLang\Publisher\Concerns\Paths;