mirror of
https://github.com/usetrmnl/byos_laravel.git
synced 2026-01-13 23:18:10 +00:00
Compare commits
No commits in common. "58fad59301c22e39990ecfc305dff686e0d1d8cd" and "fb506fa84681707c95cf560ee6205eec973d8cdf" have entirely different histories.
58fad59301
...
fb506fa846
8 changed files with 432 additions and 416 deletions
|
|
@ -39,7 +39,7 @@ class TemplateTag extends TagBlock
|
|||
$templateNameExpression = $context->params->expression();
|
||||
|
||||
$this->templateName = match (true) {
|
||||
is_string($templateNameExpression) => mb_trim($templateNameExpression),
|
||||
is_string($templateNameExpression) => trim($templateNameExpression),
|
||||
is_numeric($templateNameExpression) => (string) $templateNameExpression,
|
||||
$templateNameExpression instanceof VariableLookup => (string) $templateNameExpression,
|
||||
default => throw new SyntaxException('Template name must be a string, number, or variable'),
|
||||
|
|
|
|||
|
|
@ -111,11 +111,11 @@ class Plugin extends Model
|
|||
if ($this->polling_header) {
|
||||
// Resolve Liquid variables in the polling header
|
||||
$resolvedHeader = $this->resolveLiquidVariables($this->polling_header);
|
||||
$headerLines = explode("\n", mb_trim($resolvedHeader));
|
||||
$headerLines = explode("\n", trim($resolvedHeader));
|
||||
foreach ($headerLines as $line) {
|
||||
$parts = explode(':', $line, 2);
|
||||
if (count($parts) === 2) {
|
||||
$headers[mb_trim($parts[0])] = mb_trim($parts[1]);
|
||||
$headers[trim($parts[0])] = trim($parts[1]);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -46,7 +46,7 @@ class OidcProvider extends AbstractProvider implements ProviderInterface
|
|||
if (str_ends_with($endpoint, '/.well-known/openid-configuration')) {
|
||||
$this->baseUrl = str_replace('/.well-known/openid-configuration', '', $endpoint);
|
||||
} else {
|
||||
$this->baseUrl = mb_rtrim($endpoint, '/');
|
||||
$this->baseUrl = rtrim($endpoint, '/');
|
||||
}
|
||||
|
||||
$this->scopes = $scopes ?: ['openid', 'profile', 'email'];
|
||||
|
|
|
|||
|
|
@ -144,7 +144,7 @@ class PluginExportService
|
|||
$markup = preg_replace('/^<div class="view view--\{\{ size \}\}">\s*/', '', $markup);
|
||||
$markup = preg_replace('/\s*<\/div>\s*$/', '', $markup);
|
||||
|
||||
return mb_trim($markup);
|
||||
return trim($markup);
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
|
|||
69
composer.lock
generated
69
composer.lock
generated
|
|
@ -62,16 +62,16 @@
|
|||
},
|
||||
{
|
||||
"name": "aws/aws-sdk-php",
|
||||
"version": "3.356.5",
|
||||
"version": "3.356.3",
|
||||
"source": {
|
||||
"type": "git",
|
||||
"url": "https://github.com/aws/aws-sdk-php.git",
|
||||
"reference": "5872ccb5100c4afb0dae3db0bd46636f63ae8147"
|
||||
"reference": "9c61b26408664c76d51101381bb64feda9bcfe2e"
|
||||
},
|
||||
"dist": {
|
||||
"type": "zip",
|
||||
"url": "https://api.github.com/repos/aws/aws-sdk-php/zipball/5872ccb5100c4afb0dae3db0bd46636f63ae8147",
|
||||
"reference": "5872ccb5100c4afb0dae3db0bd46636f63ae8147",
|
||||
"url": "https://api.github.com/repos/aws/aws-sdk-php/zipball/9c61b26408664c76d51101381bb64feda9bcfe2e",
|
||||
"reference": "9c61b26408664c76d51101381bb64feda9bcfe2e",
|
||||
"shasum": ""
|
||||
},
|
||||
"require": {
|
||||
|
|
@ -153,9 +153,9 @@
|
|||
"support": {
|
||||
"forum": "https://github.com/aws/aws-sdk-php/discussions",
|
||||
"issues": "https://github.com/aws/aws-sdk-php/issues",
|
||||
"source": "https://github.com/aws/aws-sdk-php/tree/3.356.5"
|
||||
"source": "https://github.com/aws/aws-sdk-php/tree/3.356.3"
|
||||
},
|
||||
"time": "2025-08-26T18:05:04+00:00"
|
||||
"time": "2025-08-22T18:13:45+00:00"
|
||||
},
|
||||
{
|
||||
"name": "bnussbau/laravel-trmnl-blade",
|
||||
|
|
@ -1691,16 +1691,16 @@
|
|||
},
|
||||
{
|
||||
"name": "laravel/framework",
|
||||
"version": "v12.26.2",
|
||||
"version": "v12.25.0",
|
||||
"source": {
|
||||
"type": "git",
|
||||
"url": "https://github.com/laravel/framework.git",
|
||||
"reference": "56c5fc46cfb1005d0aaa82c7592d63edb776a787"
|
||||
"reference": "2ee2ba94ae60efd24c7a787cbb1a2f82f714bb20"
|
||||
},
|
||||
"dist": {
|
||||
"type": "zip",
|
||||
"url": "https://api.github.com/repos/laravel/framework/zipball/56c5fc46cfb1005d0aaa82c7592d63edb776a787",
|
||||
"reference": "56c5fc46cfb1005d0aaa82c7592d63edb776a787",
|
||||
"url": "https://api.github.com/repos/laravel/framework/zipball/2ee2ba94ae60efd24c7a787cbb1a2f82f714bb20",
|
||||
"reference": "2ee2ba94ae60efd24c7a787cbb1a2f82f714bb20",
|
||||
"shasum": ""
|
||||
},
|
||||
"require": {
|
||||
|
|
@ -1742,7 +1742,7 @@
|
|||
"symfony/mime": "^7.2.0",
|
||||
"symfony/polyfill-php83": "^1.31",
|
||||
"symfony/polyfill-php84": "^1.31",
|
||||
"symfony/polyfill-php85": "^1.33",
|
||||
"symfony/polyfill-php85": "^1.31",
|
||||
"symfony/process": "^7.2.0",
|
||||
"symfony/routing": "^7.2.0",
|
||||
"symfony/uid": "^7.2.0",
|
||||
|
|
@ -1904,7 +1904,7 @@
|
|||
"issues": "https://github.com/laravel/framework/issues",
|
||||
"source": "https://github.com/laravel/framework"
|
||||
},
|
||||
"time": "2025-08-26T18:04:56+00:00"
|
||||
"time": "2025-08-18T22:20:52+00:00"
|
||||
},
|
||||
{
|
||||
"name": "laravel/prompts",
|
||||
|
|
@ -2857,16 +2857,16 @@
|
|||
},
|
||||
{
|
||||
"name": "livewire/flux",
|
||||
"version": "v2.2.6",
|
||||
"version": "v2.2.4",
|
||||
"source": {
|
||||
"type": "git",
|
||||
"url": "https://github.com/livewire/flux.git",
|
||||
"reference": "a0e8f33a5cd54ead4d8e27721961425ccbae2e33"
|
||||
"reference": "af81b5fd34c6490d5b5e05ed0f8140c0250e5069"
|
||||
},
|
||||
"dist": {
|
||||
"type": "zip",
|
||||
"url": "https://api.github.com/repos/livewire/flux/zipball/a0e8f33a5cd54ead4d8e27721961425ccbae2e33",
|
||||
"reference": "a0e8f33a5cd54ead4d8e27721961425ccbae2e33",
|
||||
"url": "https://api.github.com/repos/livewire/flux/zipball/af81b5fd34c6490d5b5e05ed0f8140c0250e5069",
|
||||
"reference": "af81b5fd34c6490d5b5e05ed0f8140c0250e5069",
|
||||
"shasum": ""
|
||||
},
|
||||
"require": {
|
||||
|
|
@ -2878,9 +2878,6 @@
|
|||
"php": "^8.1",
|
||||
"symfony/console": "^6.0|^7.0"
|
||||
},
|
||||
"conflict": {
|
||||
"livewire/blaze": "<0.1.0"
|
||||
},
|
||||
"type": "library",
|
||||
"extra": {
|
||||
"laravel": {
|
||||
|
|
@ -2917,9 +2914,9 @@
|
|||
],
|
||||
"support": {
|
||||
"issues": "https://github.com/livewire/flux/issues",
|
||||
"source": "https://github.com/livewire/flux/tree/v2.2.6"
|
||||
"source": "https://github.com/livewire/flux/tree/v2.2.4"
|
||||
},
|
||||
"time": "2025-08-27T02:05:01+00:00"
|
||||
"time": "2025-08-09T01:46:51+00:00"
|
||||
},
|
||||
{
|
||||
"name": "livewire/livewire",
|
||||
|
|
@ -9106,16 +9103,16 @@
|
|||
},
|
||||
{
|
||||
"name": "pestphp/pest",
|
||||
"version": "v4.0.3",
|
||||
"version": "v4.0.2",
|
||||
"source": {
|
||||
"type": "git",
|
||||
"url": "https://github.com/pestphp/pest.git",
|
||||
"reference": "e54e4a0178889209a928f7bee63286149d4eb707"
|
||||
"reference": "7f11ace329581ca168f99d9d7f70556c191d2be8"
|
||||
},
|
||||
"dist": {
|
||||
"type": "zip",
|
||||
"url": "https://api.github.com/repos/pestphp/pest/zipball/e54e4a0178889209a928f7bee63286149d4eb707",
|
||||
"reference": "e54e4a0178889209a928f7bee63286149d4eb707",
|
||||
"url": "https://api.github.com/repos/pestphp/pest/zipball/7f11ace329581ca168f99d9d7f70556c191d2be8",
|
||||
"reference": "7f11ace329581ca168f99d9d7f70556c191d2be8",
|
||||
"shasum": ""
|
||||
},
|
||||
"require": {
|
||||
|
|
@ -9127,12 +9124,12 @@
|
|||
"pestphp/pest-plugin-mutate": "^4.0.1",
|
||||
"pestphp/pest-plugin-profanity": "^4.0.1",
|
||||
"php": "^8.3.0",
|
||||
"phpunit/phpunit": "^12.3.6",
|
||||
"phpunit/phpunit": "^12.3.5",
|
||||
"symfony/process": "^7.3.0"
|
||||
},
|
||||
"conflict": {
|
||||
"filp/whoops": "<2.18.3",
|
||||
"phpunit/phpunit": ">12.3.6",
|
||||
"phpunit/phpunit": ">12.3.5",
|
||||
"sebastian/exporter": "<7.0.0",
|
||||
"webmozart/assert": "<1.11.0"
|
||||
},
|
||||
|
|
@ -9206,7 +9203,7 @@
|
|||
],
|
||||
"support": {
|
||||
"issues": "https://github.com/pestphp/pest/issues",
|
||||
"source": "https://github.com/pestphp/pest/tree/v4.0.3"
|
||||
"source": "https://github.com/pestphp/pest/tree/v4.0.2"
|
||||
},
|
||||
"funding": [
|
||||
{
|
||||
|
|
@ -9218,7 +9215,7 @@
|
|||
"type": "github"
|
||||
}
|
||||
],
|
||||
"time": "2025-08-24T14:17:23+00:00"
|
||||
"time": "2025-08-22T10:34:24+00:00"
|
||||
},
|
||||
{
|
||||
"name": "pestphp/pest-plugin",
|
||||
|
|
@ -10369,16 +10366,16 @@
|
|||
},
|
||||
{
|
||||
"name": "phpunit/phpunit",
|
||||
"version": "12.3.6",
|
||||
"version": "12.3.5",
|
||||
"source": {
|
||||
"type": "git",
|
||||
"url": "https://github.com/sebastianbergmann/phpunit.git",
|
||||
"reference": "a2cab3224f687150ac2f3cc13d99b64ba1e1d088"
|
||||
"reference": "f10ba5f12a256026ad3c7ee4894ffe47f60d7dc7"
|
||||
},
|
||||
"dist": {
|
||||
"type": "zip",
|
||||
"url": "https://api.github.com/repos/sebastianbergmann/phpunit/zipball/a2cab3224f687150ac2f3cc13d99b64ba1e1d088",
|
||||
"reference": "a2cab3224f687150ac2f3cc13d99b64ba1e1d088",
|
||||
"url": "https://api.github.com/repos/sebastianbergmann/phpunit/zipball/f10ba5f12a256026ad3c7ee4894ffe47f60d7dc7",
|
||||
"reference": "f10ba5f12a256026ad3c7ee4894ffe47f60d7dc7",
|
||||
"shasum": ""
|
||||
},
|
||||
"require": {
|
||||
|
|
@ -10398,7 +10395,7 @@
|
|||
"phpunit/php-text-template": "^5.0.0",
|
||||
"phpunit/php-timer": "^8.0.0",
|
||||
"sebastian/cli-parser": "^4.0.0",
|
||||
"sebastian/comparator": "^7.1.3",
|
||||
"sebastian/comparator": "^7.1.2",
|
||||
"sebastian/diff": "^7.0.0",
|
||||
"sebastian/environment": "^8.0.3",
|
||||
"sebastian/exporter": "^7.0.0",
|
||||
|
|
@ -10446,7 +10443,7 @@
|
|||
"support": {
|
||||
"issues": "https://github.com/sebastianbergmann/phpunit/issues",
|
||||
"security": "https://github.com/sebastianbergmann/phpunit/security/policy",
|
||||
"source": "https://github.com/sebastianbergmann/phpunit/tree/12.3.6"
|
||||
"source": "https://github.com/sebastianbergmann/phpunit/tree/12.3.5"
|
||||
},
|
||||
"funding": [
|
||||
{
|
||||
|
|
@ -10470,7 +10467,7 @@
|
|||
"type": "tidelift"
|
||||
}
|
||||
],
|
||||
"time": "2025-08-20T14:43:23+00:00"
|
||||
"time": "2025-08-16T05:20:09+00:00"
|
||||
},
|
||||
{
|
||||
"name": "sebastian/cli-parser",
|
||||
|
|
|
|||
765
package-lock.json
generated
765
package-lock.json
generated
File diff suppressed because it is too large
Load diff
|
|
@ -514,7 +514,7 @@ Route::post('custom_plugins/{plugin_uuid}', function (string $plugin_uuid) {
|
|||
})->name('api.custom_plugins.webhook');
|
||||
|
||||
Route::get('plugin_settings/{trmnlp_id}/archive', function (Request $request, string $trmnlp_id) {
|
||||
if (! $trmnlp_id || mb_trim($trmnlp_id) === '') {
|
||||
if (! $trmnlp_id || trim($trmnlp_id) === '') {
|
||||
return response()->json([
|
||||
'message' => 'trmnlp_id is required',
|
||||
], 400);
|
||||
|
|
|
|||
|
|
@ -287,7 +287,7 @@ it('maintains correct yaml field order', function () {
|
|||
$fieldLines = [];
|
||||
|
||||
foreach ($lines as $line) {
|
||||
$line = mb_trim($line);
|
||||
$line = trim($line);
|
||||
if (preg_match('/^([a-zA-Z_]+):/', $line, $matches)) {
|
||||
$fieldLines[] = $matches[1].':';
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue