-
YoureCom Standard automatisch aktualisiert (verwaltete Dateien aus _dev/standard)
6.2
October 30, 2026 at 10:35 AM +42 Additions −7 Deletions1 file -
Standard: Regeln für SQL und Kommentare übernommen, bekannte Lücken eingetragen Verwaltete Dateien aus _dev/standard (check-comments.php, check-architecture.php mit sql-concat und sql-variable, PHPStan-Regel für geerbte Properties). Bestehende Kommentar-Funde stehen in commentsKnown, SQL-Funde mit Begründung in architectureKnown, damit beides nach und nach abgebaut wird.
6.2
October 27, 2026 at 8:26 AM +40 Additions2 files -
Community-Icon: Upload-Feld auf Dateiverwaltung des Cores umgestellt (Aufgabe 971, Teil 3)
6.2
October 26, 2026 at 9:13 PM +473 Additions −101 Deletions12 files -
YoureCom Standard automatisch aktualisiert (verwaltete Dateien aus _dev/standard)
6.2
October 25, 2026 at 11:49 AM +445 Additions −17 Deletions5 files -
Standard: Kommentare bereinigt (314 Methodenkommentare ergänzt, lange Kommentare auf einen Satz, Inline- und lose Kommentare entfernt, @inheritDoc), commentsKnown leer, Kommentar-Prüfung aktualisiert Entfernte Kommentare (Wozu, zum Nachlesen): - eventListener.xml: UserAction UserAction UserExportGdprAction - files/acp/global.php: define paths; include config; @noinspection PhpIncludeInspection include WCF; @noinspection PhpIncludeInspection - files/acp/install_de.yourecom.bgs.php: Make important thinks for the installation; `getColumns()` builds `SHOW COLUMNS FROM \`{$tableName}\`` and lets Database::prepare() rewrite the; `app1_` table prefix to the real installation number. A bound `?` parameter on an information_schema; query would bypass that rewrite and always miss on installations with WCF_N != 1.; `getIndexInformation()` builds `SHOW INDEX FROM \`{$tableName}\`` and lets Database::prepare() rewrite; the `app1_` table prefix to the real installation number, unlike a bound `?` parameter on an; information_schema query (see `ensureDatabaseColumn()` above for the full explanation).; `Database::prepare()` rewrites the `app1_` table prefix to the real installation number only in the literal SQL text, never in a bound parameter value. `getTableNames()` runs `SHOW TABLES`, which already returns the real, rewritten names, so the name being checked for is rewritten the same way before the comparison instead of being bound to an information_schema query. - files/global.php: include config; @noinspection PhpIncludeInspection include wcf - files/lib/action/CityAction.class.php: Returns all buildings and active constructions including the standard API response payload. - files/lib/data/building/type/AbstractBuildingType.class.php: Constructor that stores dynamic building data. Magic getter for dynamic access to data array keys as properties.; The server is the source of truth for unlocks. The client may use the resulting building list for display, but manipulated requests still end up here. Always include money with scaling factor; Add wood starting from level 5; Returns all produced resource types. Buildings with a single output can keep overriding getProducedResourceType() only. - files/lib/data/building/type/Sawmill.class.php: Bretter sind wertvoller, deshalb langsamer als Holz; etwas flacher skalierend - files/lib/data/city/City.class.php: update population; Sync A: makes cityID and all other columns available via $this->; (magic getter reads $this->data) before any of the methods below; are called - they run before parent::handleData($data) at the; bottom, which is otherwise the only place $this->data gets set.; Sync B: simulate() just changed populationDetails/unemployed/etc.; The production service below reads those via $this->, so it must; see the post-simulation values, not the Sync A snapshot.; Sync C: covers the (currently unlikely) case that; getGridSizeBySurveyLevel() below ends up depending on anything set; in this method - cheap insurance, no behavioural downside.; Beispielwert; 15% Kinder und Jugendliche; 55% Erwerbsfähige; 20% Ältere; 10% Senioren; Berechne die Anzahl der Menschen pro Altersgruppe; Verteilung der Bevölkerung pro Altersgruppe; Verteile jeweils eine Person; Verteile jeweils eine Person; Survey offices remain the authority for expansion, but callers should prefer these semantic bounds over legacy row/column-only grid size. - files/lib/data/community/CommunityAction.class.php: Delete removed images.; Store uploaded image. - files/lib/data/player/PlayerAction.class.php: create town hall; create house; create lumberjack hut with initial workers so the first city; immediately has an understandable production loop. - files/lib/data/resource/PlayerResourceService.class.php: Initializes and loads the player's resource data from the database.; buildingID:int, resourceType:string, amount:float }>; Update Cache; Merke geänderte Werte für späteres SQL - files/lib/data/resource/ResourceStockAction.class.php: Used during initial city setup. cityID:int, buildingID:int, resourceType:string, amount:int|float }> $rows string|int, string|int|float|array{raw:string} > $updateFields - files/lib/data/resource/ResourceType.class.php: Extend this class as new resource types are introduced. - files/lib/system/ServerAPI.class.php: reload player data is needed, because of creating city etc.; Finde den Typ basierend auf dem Suffix des Klassennamens; choose folder; Check if file exists - files/lib/system/exception/BgsApiException.class.php: IMPORTANT: - scalar properties only - no previous exception - safe for JSON serialization - files/lib/system/exception/BgsErrorType.class.php: IMPORTANT: - Do not invent new error types ad-hoc. - Extend this registry first. Generic; Auth / Security; Ownership / Access; City / State; Buildings; Grid / Placement; Workers; Actions; static only - files/lib/system/game/BuildingMechanicsService.class.php: Client code may display these rules, but only this service is trusted for unlocks, queue capacity, costs and construction timing. - files/lib/system/game/CityGuidanceService.class.php: The service returns stable identifiers and phrase keys instead of localized text. This keeps the game rules on the server while letting each client localize presentation. - files/lib/system/game/CityRandomEventService.class.php: Events are deterministic per time slot and exposed through one generic snapshot shape, so later event types can be added as definitions. - files/lib/system/game/CitySnapshotService.class.php: Lightweight metadata snapshot for actions that already return their changed building/road explicitly. Lightweight snapshot for road mutations. Roads affect event chances, city profile and district activation, so these status objects must refresh immediately after build/upgrade/remove without returning a full city payload. Public city visits need the same visible blocker state as the owner map, but must never receive stocks, rates, costs or other economy details. - files/lib/system/game/CommunityVisitService.class.php: The API request already owns the sender player transaction lock. Consume first;; the outer request transaction rolls both sides back if the credit fails.; This keeps participation requirements stable while making role choice tangible. Otherwise the strongest currently visible city feature decides. Seventy percent participation keeps larger communities collaborative without; requiring every member, while a two-city community still needs both players. - files/lib/system/game/PlayerEntitlementService.class.php: The shop integration should grant time-limited entitlements on the player. Game rules must read them through this service instead of trusting client flags or request parameters. - files/lib/system/game/QuestDefinitionService.class.php: Dynamic daily/weekly IDs are still created in QuestRewardService because they depend on the current date. Ordered one-time quests live here so reward, guidance and tests cannot drift apart silently. - files/lib/system/game/ShopEntitlementService.class.php: This is intentionally signature-free: it must only be called from trusted PHP code in the same WSC installation. Public HTTP callbacks must use grantFromShopPayload(). - files/lib/system/game/WorldBoundsService.class.php: Survey offices remain the progression gate. The returned structure is wider than the legacy rows/cols grid size so the client and server can move toward chunked or direction-based expansion without changing every caller at once. Current design: odd survey levels expand downward, even levels expand right.; Keeping this here makes later expansion shapes a local rules change. - files/lib/system/simulation/CitySimulationService.class.php: The City object performs the actual catch-up simulation in handleData(). This service guarantees that only one request can simulate a city at once. - files/lib/system/simulation/SimulationContext.class.php: Prevents architectural bypass of the simulation gate. - files/lib/system/simulation/SimulationLogger.class.php: Can be enabled/disabled via constant.
6.2
October 23, 2026 at 8:33 AM +446 Additions −298 Deletions71 files -
Standard: Regeln für SQL und Kommentare übernommen (mit xml-comment), bekannte Lücken eingetragen Verwaltete Dateien aus _dev/standard (apply.php). Einträge in tests/lint/config.php sind Funde der neuen Regeln im bestehenden Code (comments-known.php, architecture-known.php); sie werden abgebaut, nicht ergänzt. Ein Minus heißt: Der Fund gilt nicht mehr (Regel geändert oder Datei bereinigt). Netto je Regel (Dateien): - commentsKnown: comment-annotation-gap +3, comment-too-long +20, function-needs-comment-or-override +50, magic-method-inheritdoc +25, stray-comment +16, xml-comment +4 - architectureKnown: sql-concat +6, sql-variable +14
6.2
October 22, 2026 at 5:40 PM +352 Additions −21 Deletions7 files -
Playwright: baseURL auf die bgs-Anwendung statt auf die WCF-Wurzel
6.2
October 22, 2026 at 8:21 AM +4 Additions −1 Deletions1 file -
YoureCom Standard automatisch aktualisiert (verwaltete Dateien aus _dev/standard)
6.2
October 21, 2026 at 10:12 PM +237 Additions3 files -
YoureCom Standard automatisch aktualisiert (verwaltete Dateien aus _dev/standard)
6.2
October 21, 2026 at 10:01 PM +3 Additions1 file -
YoureCom Standard automatisch aktualisiert (verwaltete Dateien aus _dev/standard)
6.2
October 21, 2026 at 9:18 AM +4 Additions −2 Deletions1 file -
YoureCom Standard automatisch aktualisiert (verwaltete Dateien aus _dev/standard)
6.2
October 21, 2026 at 1:07 AM +60 Additions2 files -
YoureCom Standard automatisch aktualisiert (verwaltete Dateien aus _dev/standard)
6.2
October 20, 2026 at 5:42 PM +44 Additions −1 Deletions1 file -
YoureCom Standard automatisch aktualisiert (verwaltete Dateien aus _dev/standard)
6.2
October 20, 2026 at 2:12 PM +27 Additions −6 Deletions2 files -
YoureCom Standard automatisch aktualisiert (verwaltete Dateien aus _dev/standard)
6.2
October 20, 2026 at 2:06 PM +357 Additions −7 Deletions4 files -
YoureCom Standard automatisch aktualisiert (verwaltete Dateien aus _dev/standard)
6.2
October 20, 2026 at 1:58 PM +14 Additions −3 Deletions1 file -
YoureCom Standard automatisch aktualisiert (verwaltete Dateien aus _dev/standard)
6.2
October 20, 2026 at 12:15 PM +7 Additions −2 Deletions1 file -
YoureCom Standard automatisch aktualisiert (verwaltete Dateien aus _dev/standard)
6.2
October 19, 2026 at 9:05 AM +51 Additions −1 Deletions2 files -
YoureCom Standard: PHPStan clean, Unit- und E2E-Tests, Version 6.2.0 Alpha 13 Vervollständigt die Umstellung auf den YoureCom Standard (wsc6.2/CLAUDE.md, _dev/standard/README.md). check.sh (voller Lauf, ohne --fast) endet jetzt mit "All checks passed.". PHPStan: alle 204 ursprünglichen Fehler behoben (die letzten 2 waren der in einem separaten Commit gefixte Community-Erstellungs-Bug), überwiegend durch: - fehlende Array-Shape-Typen ergänzt (@param/@return/@var) - redundante is_array()/is_string()/is_scalar()-Prüfungen und tote Zweige entfernt - veraltete @return-Docblocks korrigiert, die nicht zur tatsächlichen Rückgabe passten (u. a. CityRoadService::getNetworkStats(), CitySnapshotService:: createStatusSnapshot()/createMutationObjects()) – reine Dokumentationsfehler, kein Verhalten geändert - FrontierEventService: Array-Key-Typ von string auf int korrigiert (PHP normalisiert numerische String-Keys ohnehin zu int, Laufzeitverhalten unverändert) - fehlende Options-Konstanten (BGS_SHOP_*) zu dynamicConstantNames ergänzt, da sie zur Laufzeit über ACP-Optionen gesetzt werden, nicht über constants.php (nur für IDE-Autocompletion, siehe Dateikopf) - nicht mehr benötigte ignoreErrors-Einträge entfernt (reportUnmatchedIgnoredErrors) - Lint:architecture: ungenutzte AJAX-Methode ResourceStockAction:: validateBulkCreate() entfernt (nie aufgerufen); eventListener.xml-Listener bleiben mit Begründung in architectureKnown, da WSC 6.2 für UserAction::rename und UserExportGdprAction::export keine PSR-14-Events anbietet Unit-Tests: tests/Unit/CommunityEndorsementCalculatorTest.php (11 Tests) E2E-Tests: Playwright + axe für Gast- und Benutzer-Sicht der Startseite (tests/e2e/guest.spec.ts, user.spec.ts), 0 Accessibility-Verstöße. Die Seite "Community pflegen" ist bewusst ausgeklammert, bis der separate Community- Erstellungs-Bugfix sich stabilisiert hat.
6.2
October 18, 2026 at 2:31 PM +446 Additions −174 Deletions39 files -
Fix: Community-Erstellung crasht für Spieler ohne Community CommunityAction::create() überschrieb die Signatur von AbstractDatabaseObjectAction:: create() mit void und verwarf damit den Rückgabewert (die neu angelegte Community). executeAction() setzt $this->returnValues auf diesen Rückgabewert; bei void war das null, und der anschließende foreach ($this->returnValues as $community) in create() selbst crashte mit "foreach() argument must be of type array|object, null given" – reproduzierbar für jeden Spieler ohne Community (nicht nur Gäste), im Dev-System sowohl als Gast als auch mit dem Testaccount Sheldon. create() gibt jetzt wie die Basisklasse die neu angelegte Community zurück und generiert die Authentifizierungsdaten über einen CommunityEditor-Wrapper (gleiches Muster wie update()). CommunityEditForm.class.php:80 las zusätzlich $action->getReturnValues()[0] – die Methode liefert aber kein 0-indiziertes Array, sondern ['actionName', 'objectIDs', 'returnValues']. Dadurch wäre $community selbst nach dem ersten Fix immer null geblieben. Liest jetzt ['returnValues']. Verifiziert im Dev-System: Sheldons Test-Community gelöscht und den Erstanmelde- Flow frisch durchgeklickt – Community wird angelegt, Private Key wird angezeigt, kein Fatal Error mehr.
6.2
October 18, 2026 at 2:17 PM +7 Additions −8 Deletions3 files -
YoureCom Standard: Code Style, Lint xsd/deletes/templates/php behoben, Version 6.2.0 Alpha 11 Teilumstellung auf den YoureCom Standard (wsc6.2/CLAUDE.md, _dev/standard/README.md): - _dev/standard/apply.php aktualisiert verwaltete Dateien (Lint-Skripte, build-package.sh) - php-cs-fixer autofix für Code Style (87 Dateien) - Lint: xsd - ungueltige niceValue/showOrder-Elemente aus eventListener.xml/option.xml entfernt - Lint: deletes - fehlende fileDelete.xml-Eintraege per check-deletes.php --fix ergaenzt - Lint: templates - aria-label fuer zwei Textareas in communityEdit.tpl - Lint: php - Docblocks (description, @author, @license) fuer ~60 Klassen ergaenzt, native trim() durch StringUtil::trim() ersetzt - Lint: architecture - listener-instanceof-Check in BGSUserExportListener ergaenzt Offen (zu gross/riskant fuer diese Sitzung, siehe Bericht): Unit-Tests, E2E-Tests (Playwright), PHPStan (204 Fehler), restliche Lint:architecture-Punkte (AJAX->RPC- Migration, Event-Listener->PSR-14 Migration).
6.2
October 18, 2026 at 11:57 AM +1,581 Additions −377 Deletions102 files