Skip to content
Draft
Show file tree
Hide file tree
Changes from 3 commits
Commits
Show all changes
52 commits
Select commit Hold shift + click to select a range
03c44ad
ignore apm_fallback.log
fadrian06 Sep 10, 2025
86250f9
fix warning about optional parameter before required parameter in php…
fadrian06 Sep 10, 2025
d2bb4c3
composer require flightphp/apm:^0.4.1 flightphp/core:^3.17 -W & compo…
fadrian06 Sep 10, 2025
16fbe8f
composer rector
fadrian06 Sep 10, 2025
81dfe72
npx @biomejs/biome check --write **/*.js **/*.css **/*.json
fadrian06 Sep 10, 2025
83bcc1c
ensure newline at end of files
fadrian06 Sep 10, 2025
3c26c75
phpcbf --standard=PSR12 app/ public/index.php rector.php swoole_serve…
fadrian06 Sep 10, 2025
6844c95
rename CustomFlight -> CustomEngine
fadrian06 Sep 10, 2025
8dce425
change require to require_once in swoole_server.php
fadrian06 Sep 10, 2025
19d1d5a
add type coercions in translate_content.php
fadrian06 Sep 10, 2025
294ed2d
composer require symfony/var-dumper:^7.3 --dev -W
fadrian06 Sep 11, 2025
c045a59
mb_internal_encoding and setlocale were added since php 4
fadrian06 Sep 11, 2025
75e8a9e
middleware usage simplification
fadrian06 Sep 11, 2025
fac2984
simplify $app declaration in config_sample.php
fadrian06 Sep 11, 2025
1ae39b4
$rootDir variable extraction in config_sample.php
fadrian06 Sep 11, 2025
fa09cc3
Tracy\Debugger::DEVELOPMENT @deprecated use Debugger::Development
fadrian06 Sep 11, 2025
10a22a5
reduce line lengths in config_sample.php
fadrian06 Sep 11, 2025
7245c72
mark HeaderSecurityMiddleware as final
fadrian06 Sep 11, 2025
7608763
documented HeaderSecurityMiddleware::$nonce
fadrian06 Sep 11, 2025
08955d2
apply code style in HeaderSecurityMiddleware::before
fadrian06 Sep 11, 2025
6f5d0cc
treat nullable $executedRoute in HeaderSecurityMiddleware
fadrian06 Sep 11, 2025
e3d92c5
extract $oneDay variable in HeaderSecurityMiddleware::after
fadrian06 Sep 11, 2025
d36fc8b
composer require flightphp/container -W
fadrian06 Sep 11, 2025
31cf17f
fix autoload of app/utils/CustomEngine
fadrian06 Sep 11, 2025
e7a3ac2
simplify notFound route
fadrian06 Sep 11, 2025
a319e99
sort DocsLogic members
fadrian06 Sep 11, 2025
c46a506
replace $this->app->latte by $this->latte from the container
fadrian06 Sep 11, 2025
d7b7b5a
add void return types in HeaderSecurityMiddleware
fadrian06 Sep 11, 2025
c1c3d05
add Swoole\Engine validation
fadrian06 Sep 11, 2025
76abc35
change fqcn SwooleServerDriver usage for local use
fadrian06 Sep 11, 2025
d63d2df
normalize line spacing in routes.php
fadrian06 Sep 11, 2025
dfafd26
mark CustomEngine class as final
fadrian06 Sep 11, 2025
568b234
add rector --dry-run to composer lint script
fadrian06 Sep 11, 2025
30d7038
ignore StringClassNameToClassConstantRector rector rule
fadrian06 Sep 11, 2025
eab7601
remove DocsLogic::latte property for compatibility with DocsController
fadrian06 Sep 11, 2025
e240bb0
mark DocsController as final readonly and $app property as private
fadrian06 Sep 11, 2025
101fbac
set lang html attribute dinamically
fadrian06 Sep 11, 2025
f343b80
improve format of layout.latte -> head
fadrian06 Sep 11, 2025
ffaa83a
improve format of links.latte
fadrian06 Sep 11, 2025
56cea79
improve spacing in DocsLogic::compileScrollspyPage
fadrian06 Sep 11, 2025
4dddbe1
update bootstrap and bootstrap-icons
fadrian06 Sep 11, 2025
da82b9e
remove $ds variable
fadrian06 Sep 11, 2025
3a4e624
remove $app usage in config_sample.php
fadrian06 Sep 11, 2025
edea803
remove $app usage in bootstrap.php - variable remains for compatibility
fadrian06 Sep 11, 2025
fe292fb
remove $app usage in routes.php
fadrian06 Sep 12, 2025
f1a24db
fix /single-page in windows
fadrian06 Sep 12, 2025
00f736c
fix /search in windows
fadrian06 Sep 12, 2025
4a028c3
add cache singleton in the container
fadrian06 Sep 12, 2025
d7005be
empty comment to force brackets in different lines in sublime text ls…
fadrian06 Sep 12, 2025
54d6b75
improve naming in services.php
fadrian06 Sep 14, 2025
b65d78f
simplify DocsController, improve naming, typing and remove unnecesary…
fadrian06 Sep 14, 2025
af4d9de
improve spacing
fadrian06 Sep 16, 2025
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -8,4 +8,5 @@ app/cache/
*.sublime-*
biome.*
.runway-config.json
apm.db*
apm.db*
apm_fallback.log
2 changes: 1 addition & 1 deletion app/utils/Text.php
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ public static function slugify(string $text): string {
* @param string $section_file_path [description]
* @return string
*/
public static function generateAndConvertHeaderListFromHtml(string $markdown_html, array &$heading_data = [], string $section_file_path): string {
public static function generateAndConvertHeaderListFromHtml(string $markdown_html, array &$heading_data, string $section_file_path): string {
Copy link

Copilot AI Sep 10, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Removing the default value = [] from the &$heading_data parameter is a breaking change. Callers that previously relied on this parameter being optional will now get a fatal error. Consider keeping the default value or updating all call sites to explicitly pass an array.

Suggested change
public static function generateAndConvertHeaderListFromHtml(string $markdown_html, array &$heading_data, string $section_file_path): string {
public static function generateAndConvertHeaderListFromHtml(string $markdown_html, array &$heading_data = [], string $section_file_path): string {

Copilot uses AI. Check for mistakes.

$heading_data = [];
$last_h2_key = null;

Expand Down
8 changes: 4 additions & 4 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,10 +13,10 @@
"php": "^8.2",
"ext-json": "*",
"erusev/parsedown": "^1.7",
"flightphp/apm": "^0.4",
"flightphp/apm": "^0.4.1",
"flightphp/async": "^0.1.1",
"flightphp/cache": "^1.0",
"flightphp/core": "^3.15",
"flightphp/core": "^3.17",
"latte/latte": "^3.0",
"tracy/tracy": "^2.10"
},
Expand All @@ -38,9 +38,9 @@
"rector": "rector"
},
"require-dev": {
"flightphp/tracy-extensions": "^0.2.3",
"flightphp/tracy-extensions": "^0.2.7",
"phpstan/extension-installer": "^1.4",
"phpstan/phpstan": "^2.1",
"rector/rector": "^2.0"
"rector/rector": "^2.1"
}
}
30 changes: 15 additions & 15 deletions composer.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.