Skip to content

Commit 7ce0d37

Browse files
committedMar 29, 2025
CLI patch.
Changelog excerpt: - Spaced out the CLI switch file printouts to slightly improve readability.
1 parent 3b69d2d commit 7ce0d37

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed
 

‎Changelog.md

+1
Original file line numberDiff line numberDiff line change
@@ -176,3 +176,4 @@ __*Why "v3.0.0" instead of "v1.0.0?"*__ Prior to phpMussel v3, the "phpMussel Co
176176
#### Other changes.
177177
- [2025.03.24]: Applied entropy limits to some additional detections.
178178
- [2025.03.29]: Moved a small number of L10N strings from the front-end to the core due to being needed for some new CLI functionality.
179+
- [2025.03.29]: Spaced out the CLI switch file printouts to slightly improve readability.

‎src/Scanner.php

+3-1
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
* License: GNU/GPLv2
99
* @see LICENSE.txt
1010
*
11-
* This file: The scanner (last modified: 2025.03.28).
11+
* This file: The scanner (last modified: 2025.03.29).
1212
*/
1313

1414
namespace phpMussel\Core;
@@ -1457,6 +1457,8 @@ private function dataHandler(string $str = '', int $Depth = 0, string $OriginalF
14571457
if (!empty($this->Loader->InstanceCache['sf'])) {
14581458
if (!isset($this->Loader->InstanceCache['Print after CLI scan'])) {
14591459
$this->Loader->InstanceCache['Print after CLI scan'] = '';
1460+
} else {
1461+
$this->Loader->InstanceCache['Print after CLI scan'] .= "\n";
14601462
}
14611463
$this->Loader->InstanceCache['Print after CLI scan'] .= sprintf($this->Loader->L10N->getString('label.Flags set by the switch file while scanning %s'), $OriginalFilename) . "\n";
14621464
}

0 commit comments

Comments
 (0)