From bbb60e133717385499b03de461d9496e7c94b12c Mon Sep 17 00:00:00 2001 From: Faisal Budiono Date: Wed, 26 Apr 2023 07:31:56 +0700 Subject: [PATCH 1/3] Ignore file with dummy file name whatever the extension Also ignore the case of the file name --- .gitignore | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.gitignore b/.gitignore index 1692225..05090b7 100644 --- a/.gitignore +++ b/.gitignore @@ -21,4 +21,4 @@ yarn-error.log supervisord.log supervisord.pid -*/**/Dummy*.php +*/**/[Dd]ummy* From 0258e9f0572a97adeaf27e38813db03afff21820 Mon Sep 17 00:00:00 2001 From: Faisal Budiono Date: Wed, 26 Apr 2023 07:33:40 +0700 Subject: [PATCH 2/3] Bump dependencies version --- composer.lock | 77 ++++++++++++++++++++++++++------------------------- 1 file changed, 39 insertions(+), 38 deletions(-) diff --git a/composer.lock b/composer.lock index 06552bf..6a63f8f 100644 --- a/composer.lock +++ b/composer.lock @@ -979,16 +979,16 @@ }, { "name": "laravel/framework", - "version": "v10.8.0", + "version": "v10.9.0", "source": { "type": "git", "url": "https://github.com/laravel/framework.git", - "reference": "317d7ccaeb1bbf4ac3035efe225ef2746c45f3a8" + "reference": "35078125f61ef0b125edf524de934f108d4b47fd" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/laravel/framework/zipball/317d7ccaeb1bbf4ac3035efe225ef2746c45f3a8", - "reference": "317d7ccaeb1bbf4ac3035efe225ef2746c45f3a8", + "url": "https://api.github.com/repos/laravel/framework/zipball/35078125f61ef0b125edf524de934f108d4b47fd", + "reference": "35078125f61ef0b125edf524de934f108d4b47fd", "shasum": "" }, "require": { @@ -1175,20 +1175,20 @@ "issues": "https://github.com/laravel/framework/issues", "source": "https://github.com/laravel/framework" }, - "time": "2023-04-18T13:45:33+00:00" + "time": "2023-04-25T13:47:18+00:00" }, { "name": "laravel/sanctum", - "version": "v3.2.1", + "version": "v3.2.3", "source": { "type": "git", "url": "https://github.com/laravel/sanctum.git", - "reference": "d09d69bac55708fcd4a3b305d760e673d888baf9" + "reference": "6281ce796d464592867f768eb890642aa1954bd0" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/laravel/sanctum/zipball/d09d69bac55708fcd4a3b305d760e673d888baf9", - "reference": "d09d69bac55708fcd4a3b305d760e673d888baf9", + "url": "https://api.github.com/repos/laravel/sanctum/zipball/6281ce796d464592867f768eb890642aa1954bd0", + "reference": "6281ce796d464592867f768eb890642aa1954bd0", "shasum": "" }, "require": { @@ -1202,6 +1202,7 @@ "require-dev": { "mockery/mockery": "^1.0", "orchestra/testbench": "^7.0|^8.0", + "phpstan/phpstan": "^1.10", "phpunit/phpunit": "^9.3" }, "type": "library", @@ -1240,7 +1241,7 @@ "issues": "https://github.com/laravel/sanctum/issues", "source": "https://github.com/laravel/sanctum" }, - "time": "2023-01-13T15:41:49+00:00" + "time": "2023-04-25T16:15:12+00:00" }, { "name": "laravel/serializable-closure", @@ -5890,16 +5891,16 @@ }, { "name": "laravel/pint", - "version": "v1.9.0", + "version": "v1.10.0", "source": { "type": "git", "url": "https://github.com/laravel/pint.git", - "reference": "eac5ec3d6b5c96543c682e309a10fdddc9f61d80" + "reference": "c7a01fa9bdd79819e7a2f1ba63ac1b02e6692dbc" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/laravel/pint/zipball/eac5ec3d6b5c96543c682e309a10fdddc9f61d80", - "reference": "eac5ec3d6b5c96543c682e309a10fdddc9f61d80", + "url": "https://api.github.com/repos/laravel/pint/zipball/c7a01fa9bdd79819e7a2f1ba63ac1b02e6692dbc", + "reference": "c7a01fa9bdd79819e7a2f1ba63ac1b02e6692dbc", "shasum": "" }, "require": { @@ -5952,20 +5953,20 @@ "issues": "https://github.com/laravel/pint/issues", "source": "https://github.com/laravel/pint" }, - "time": "2023-04-18T14:50:44+00:00" + "time": "2023-04-25T14:52:30+00:00" }, { "name": "laravel/sail", - "version": "v1.21.4", + "version": "v1.21.5", "source": { "type": "git", "url": "https://github.com/laravel/sail.git", - "reference": "5e59b4a57181020477e2b18943b27493638e3f89" + "reference": "27af207bb1c53faddcba34c7528b3e969f6a646d" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/laravel/sail/zipball/5e59b4a57181020477e2b18943b27493638e3f89", - "reference": "5e59b4a57181020477e2b18943b27493638e3f89", + "url": "https://api.github.com/repos/laravel/sail/zipball/27af207bb1c53faddcba34c7528b3e969f6a646d", + "reference": "27af207bb1c53faddcba34c7528b3e969f6a646d", "shasum": "" }, "require": { @@ -6017,7 +6018,7 @@ "issues": "https://github.com/laravel/sail/issues", "source": "https://github.com/laravel/sail" }, - "time": "2023-03-30T12:28:55+00:00" + "time": "2023-04-24T13:29:38+00:00" }, { "name": "mockery/mockery", @@ -6152,16 +6153,16 @@ }, { "name": "nunomaduro/collision", - "version": "v7.5.0", + "version": "v7.5.2", "source": { "type": "git", "url": "https://github.com/nunomaduro/collision.git", - "reference": "bbbc6fb9c1ee88f8aa38e47abd15c465f946f85e" + "reference": "76b3cabda0aabda455fc3b9db6c3615f5a87c7ff" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/nunomaduro/collision/zipball/bbbc6fb9c1ee88f8aa38e47abd15c465f946f85e", - "reference": "bbbc6fb9c1ee88f8aa38e47abd15c465f946f85e", + "url": "https://api.github.com/repos/nunomaduro/collision/zipball/76b3cabda0aabda455fc3b9db6c3615f5a87c7ff", + "reference": "76b3cabda0aabda455fc3b9db6c3615f5a87c7ff", "shasum": "" }, "require": { @@ -6171,19 +6172,19 @@ "symfony/console": "^6.2.8" }, "conflict": { - "phpunit/phpunit": "<10.1.0" + "phpunit/phpunit": "<10.1.2" }, "require-dev": { "brianium/paratest": "^7.1.3", - "laravel/framework": "^10.7.1", - "laravel/pint": "^1.8.0", + "laravel/framework": "^10.8.0", + "laravel/pint": "^1.9.0", "laravel/sail": "^1.21.4", "laravel/sanctum": "^3.2.1", "laravel/tinker": "^2.8.1", - "nunomaduro/larastan": "^2.5.1", - "orchestra/testbench-core": "^8.4.2", - "pestphp/pest": "^2.5.0", - "phpunit/phpunit": "^10.1.0", + "nunomaduro/larastan": "^2.6.0", + "orchestra/testbench-core": "^8.5.0", + "pestphp/pest": "^2.5.2", + "phpunit/phpunit": "^10.1.1", "sebastian/environment": "^6.0.1", "spatie/laravel-ignition": "^2.1.0" }, @@ -6244,7 +6245,7 @@ "type": "patreon" } ], - "time": "2023-04-14T10:39:16+00:00" + "time": "2023-04-22T22:12:40+00:00" }, { "name": "phar-io/manifest", @@ -6678,16 +6679,16 @@ }, { "name": "phpunit/phpunit", - "version": "10.1.1", + "version": "10.1.2", "source": { "type": "git", "url": "https://github.com/sebastianbergmann/phpunit.git", - "reference": "0d9401b7e8245d71079e249e3cb868e9d2337887" + "reference": "6f0cd95be71add539f8fd2be25b2a4a29789000b" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/sebastianbergmann/phpunit/zipball/0d9401b7e8245d71079e249e3cb868e9d2337887", - "reference": "0d9401b7e8245d71079e249e3cb868e9d2337887", + "url": "https://api.github.com/repos/sebastianbergmann/phpunit/zipball/6f0cd95be71add539f8fd2be25b2a4a29789000b", + "reference": "6f0cd95be71add539f8fd2be25b2a4a29789000b", "shasum": "" }, "require": { @@ -6759,7 +6760,7 @@ "support": { "issues": "https://github.com/sebastianbergmann/phpunit/issues", "security": "https://github.com/sebastianbergmann/phpunit/security/policy", - "source": "https://github.com/sebastianbergmann/phpunit/tree/10.1.1" + "source": "https://github.com/sebastianbergmann/phpunit/tree/10.1.2" }, "funding": [ { @@ -6775,7 +6776,7 @@ "type": "tidelift" } ], - "time": "2023-04-17T12:17:05+00:00" + "time": "2023-04-22T07:38:19+00:00" }, { "name": "sebastian/cli-parser", From 9e381898ff83c883edc2a023ea07e728cd93e319 Mon Sep 17 00:00:00 2001 From: Faisal Budiono Date: Wed, 26 Apr 2023 07:34:58 +0700 Subject: [PATCH 3/3] Remove excess whitespace --- app/Models/User/User.php | 1 - 1 file changed, 1 deletion(-) diff --git a/app/Models/User/User.php b/app/Models/User/User.php index df39d0b..6cf1daa 100644 --- a/app/Models/User/User.php +++ b/app/Models/User/User.php @@ -58,7 +58,6 @@ public static function findByIdOrFail(int $id): self $user = self::query()->where('id', $id)->first(); if (is_null($user)) { - throw new ModelNotFoundException(new ExceptionMessageStandard( 'User ID is not found', ExceptionErrorCode::MODEL_NOT_FOUND->value,