Skip to content

Commit 7fb0c1f

Browse files
committed
fix
1 parent cd7fb2e commit 7fb0c1f

File tree

13 files changed

+71
-69
lines changed

13 files changed

+71
-69
lines changed

composer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@
2424
"laravellux/html": "^7.1",
2525
"mockery/mockery": "^1.0",
2626
"nesbot/carbon": "^1.26.3 || ^2.0",
27-
"phpunit/phpunit": "^9.5",
27+
"phpunit/phpunit": "^11.5.3",
2828
"ramsey/uuid": "^3.9|^4.0"
2929
},
3030
"autoload": {

src/Artisan/Background.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
<?php
2+
23
/**
34
* https://github.com/dmitry-ivanov/laravel-helper-functions.
45
*/

src/Artisan/SessionGarbageCollector.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
<?php
2+
23
/*
34
* Copyright (c) $year.
45
* @author IT Can (Michiel Vugteveen) <info@it-can.nl>

src/GlobalHelpersServiceProvider.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,7 @@ static function ($sql, $binding) {
9494

9595
return preg_replace(
9696
'/\?/',
97-
is_string($binding) ? "'" . $binding . "'" : $binding,
97+
is_string($binding) ? "'".$binding."'" : $binding,
9898
$sql,
9999
1
100100
);
@@ -165,7 +165,7 @@ function () {
165165
}
166166
}, 200, [
167167
'Content-Type' => 'application/pdf',
168-
'Content-Disposition' => 'inline; filename="' . $fileName ?? basename($filePath) . '"',
168+
'Content-Disposition' => 'inline; filename="'.$fileName ?? basename($filePath).'"',
169169
]);
170170
});
171171
}

src/Helpers/CryptHelper.php

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -27,8 +27,6 @@ public static function encrypt($sourcePath, $destPath, $deleteSourceFile = false
2727
}
2828

2929
/**
30-
* @param $sourcePath
31-
* @param $destPath
3230
* @return bool
3331
*
3432
* @throws \Exception
@@ -41,7 +39,6 @@ public static function decrypt($sourcePath, $destPath = null)
4139
}
4240

4341
/**
44-
* @param $sourcePath
4542
* @return bool
4643
*
4744
* @throws \Exception

src/Helpers/FileEncrypter.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -119,6 +119,7 @@ public function encrypt($sourcePath, $destPath)
119119
|| ($i + 1 == $numberOfChunks && $fileSize !== strlen($plaintext) + $chunkSize * $i)
120120
) {
121121
fseek($fpIn, $chunkSize * $i);
122+
122123
continue;
123124
}
124125

@@ -170,6 +171,7 @@ public function decrypt($sourcePath, $destPath)
170171
|| ($i + 1 == $numberOfChunks && $fileSize !== strlen($ciphertext) + $chunkSize * $i)
171172
) {
172173
fseek($fpIn, 16 + 16 * (self::FILE_ENCRYPTION_BLOCKS + 1) * $i);
174+
173175
continue;
174176
}
175177

src/Helpers/Macros/Trim.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
<?php
2+
23
/*
34
* Copyright (c) $year.
45
* @author IT Can (Michiel Vugteveen) <info@it-can.nl>

src/Middleware/ValidateJson.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,10 +33,10 @@ public function handle($request, Closure $next)
3333

3434
json_decode($request->getContent());
3535

36-
if (JSON_ERROR_NONE !== json_last_error()) {
36+
if (json_last_error() !== JSON_ERROR_NONE) {
3737
throw new RuntimeException(
3838
'Unable to parse JSON data: '
39-
. json_last_error_msg()
39+
.json_last_error_msg()
4040
);
4141
}
4242

src/Providers/CarbonServiceProvider.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ public function boot(): void
4848

4949
// Loop through each method and define a macro
5050
foreach ($methods as $method) {
51-
$macro = 'int' . ucfirst($method);
51+
$macro = 'int'.ucfirst($method);
5252

5353
Carbon::macro($macro, function (...$args) use ($method) {
5454
return (int) abs(call_user_func_array([$this, $method], $args));

src/Response/PdfResponse.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ public function __construct($content, $filename, $extraHeaders = [])
1010
{
1111
$headers = [
1212
'Content-Type' => 'application/pdf',
13-
'Content-Disposition' => 'inline; filename="' . $filename . '"',
13+
'Content-Disposition' => 'inline; filename="'.$filename.'"',
1414
];
1515

1616
if (is_array($extraHeaders)) {

0 commit comments

Comments
 (0)