A simple PHP API extension for DateTime.
This report summarizes scanner evidence for briannesbitt/Carbon, a PHP project with 16,585 GitHub stars. SynthScan examined 338,559 lines of code across 2039 source files, recording 1366 pattern matches distributed across 2 syntactic categories. The legacy adjusted pattern signal is 4.2 (Low pattern signal); it is not an authorship estimate.
Use the findings to ask whether maintainers can explain intent, verify dependencies, simplify unnecessary scaffolding, and focus review effort. Risk Payload v1 adds ownership, supply-chain, over-engineering, and review-effort vectors when available. These are prompts for human verification, not probabilities, security findings, or measured maintenance costs.
Use each vector to guide manual verification of the underlying findings.
Payload schema: 1.0.0 · Engine: 2.0.0 · Scoring: heuristic-density-v1 · Scan date: 2026-10-31.
Can maintainers explain intent, assumptions, and trade-offs? 1366 finding(s).
Are imports declared and package/API names verified? 0 finding(s).
Are wrappers, guards, and repeated structures necessary? 1359 finding(s).
Which changes need focused human review? 1366 finding(s).
This chart tracks the legacy adjusted pattern score across scan runs. Changes can reflect source changes, scan coverage, or detector/scoring versions; they do not measure AI adoption or prove that a team refactored code. Compare runs only when their scoring versions are compatible. The dashed line tracks the raw pattern-hit count.
Groups findings by configured severity weight. Severity is not a confidence estimate, security rating, or proof that a package is missing. Verify imports against the project's manifests and inspect each finding in its local design context.
This horizontal bar chart shows where configured pattern scores accumulate across directories. Treat the bars as locations to inspect, not as evidence of authorship or code quality. Use the file-level findings to decide whether a directory needs a focused ownership, dependency, complexity, or review check.
The scanner identified 1366 distinct pattern matches across 2 syntactic categories. Each entry below represents a discrete location in the source code where the engine recorded a detector match to inspect in context. Expand any category row to inspect the individual file paths, line numbers, code snippets, and the lexical context (CODE, COMMENT, or STRING) in which each match was detected.
Reading the findings table: The Severity column indicates the configured finding weight (CRITICAL / HIGH / MEDIUM / LOW). The Context column identifies whether the match occurred inside executable code, an inline comment, or a string literal — legacy comment-context matches receive a ×1.5 score weight. The ⚡ bolt icon marks clustered matches: three or more patterns within a 10-line window, each receiving an additional ×1.5 density multiplier under the legacy scoring model.
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | sponsors.php | 16 | function getMaxHistoryMonthsByAmount($amount): int | CODE |
| LOW | sponsors.php | 53 | function getOpenCollectiveSponsors(): string | CODE |
| LOW | tests/AbstractTestCase.php | 227 | public function assertInstanceOfCarbonInterval($d): void | CODE |
| LOW | tests/PHPStan/Fixture.php | 20 | public function testCarbonMacroCalledStatically(): string | CODE |
| LOW | tests/PHPStan/Fixture.php | 25 | public function testCarbonMacroCalledDynamically(): string | CODE |
| LOW | tests/PHPStan/FeaturesTest.php | 41 | public function testAnalysesWithoutErrors(): void | CODE |
| LOW | tests/CarbonTimeZone/CreateTest.php | 67 | public function testSafeCreateDateTimeZoneWithoutStrictMode() | CODE |
| LOW | tests/CarbonTimeZone/ConversionsTest.php | 94 | public function testToOffsetNameDateAsParam(string $date, string $expectedOffset, string|int $timezone) | CODE |
| LOW | tests/CarbonTimeZone/ConversionsTest.php | 101 | public function testToOffsetNameFromDifferentCreationMethods() | CODE |
| LOW | tests/CarbonTimeZone/ConversionsTest.php | 141 | public function testInvalidRegionForOffset() | CODE |
| LOW | tests/CarbonTimeZone/ConversionsTest.php | 147 | public function testInvalidRegionForOffsetInStrictMode() | CODE |
| LOW | tests/CarbonPeriod/FilterTest.php | 49 | public function testUpdateInternalStateWhenBuiltInFiltersAreRemoved() | CODE |
| LOW | tests/CarbonPeriod/FilterTest.php | 113 | public function testRemoveFilterByInstance() | CODE |
| LOW | tests/CarbonPeriod/FilterTest.php | 271 | public function testChangeNumberOfRecurrences() | CODE |
| LOW | tests/CarbonPeriod/FilterTest.php | 313 | public function testThrowExceptionWhenNextValidDateCannotBeFound() | CODE |
| LOW | tests/CarbonPeriod/FilterTest.php | 388 | public function testAddFilterFromCarbonMethod() | CODE |
| LOW | tests/CarbonPeriod/FilterTest.php | 402 | public function testAddFilterFromCarbonMacro() | CODE |
| LOW | tests/CarbonPeriod/FilterTest.php | 423 | public function testAddFilterFromCarbonMethodWithArguments() | CODE |
| LOW | tests/CarbonPeriod/FilterTest.php | 437 | public function testRemoveFilterFromCarbonMethod() | CODE |
| LOW | tests/CarbonPeriod/FilterTest.php | 451 | public function testInvalidCarbonMethodShouldNotBeConvertedToCallback() | CODE |
| LOW | tests/CarbonPeriod/FilterTest.php | 479 | public function testRemoveCallableFilters() | CODE |
| LOW | tests/CarbonPeriod/MonthlyTest.php | 29 | public function testMonthlyWithoutParameters() | CODE |
| LOW | tests/CarbonPeriod/MonthlyTest.php | 102 | public function testMonthlyWithStartDateAndRecurrences() | CODE |
| LOW | tests/CarbonPeriod/MonthlyTest.php | 173 | public function testMonthlyWithTimestamps() | CODE |
| LOW | tests/CarbonPeriod/MonthlyTest.php | 206 | public function testMonthlyWithOtherDateRepresentations( | CODE |
| LOW | tests/CarbonPeriod/MonthlyTest.php | 229 | public function testMonthlyWithEndDateAndRecurrences() | CODE |
| LOW | tests/CarbonPeriod/AliasTest.php | 48 | public function testSetStartDateWithNamedParameters() | CODE |
| LOW | tests/CarbonPeriod/AliasTest.php | 113 | public function testSetEndDateWithNamedParameters() | CODE |
| LOW | tests/CarbonPeriod/AliasTest.php | 259 | public function testModifyIntervalSingular() | CODE |
| LOW | tests/CarbonPeriod/AliasTest.php | 303 | public function testOverrideDefaultInterval() | CODE |
| LOW | tests/CarbonPeriod/AliasTest.php | 316 | public function testModifyIntoEmptyDateInterval() | CODE |
| LOW⚡ | tests/CarbonPeriod/IteratorTest.php | 29 | public function testKeyAndCurrentAreCorrectlyInstantiated() | CODE |
| LOW⚡ | tests/CarbonPeriod/IteratorTest.php | 39 | public function testValidIsCorrectlyInstantiated() | CODE |
| LOW⚡ | tests/CarbonPeriod/IteratorTest.php | 46 | public function testCurrentIsAlwaysCarbonInstance() | CODE |
| LOW | tests/CarbonPeriod/IteratorTest.php | 74 | public function testElementsInLoopAreAlwaysValid() | CODE |
| LOW | tests/CarbonPeriod/IteratorTest.php | 83 | public function testKeyAndCurrentAreCorrectlyIterated() | CODE |
| LOW | tests/CarbonPeriod/IteratorTest.php | 94 | public function testKeyAndCurrentAreCorrectlyRewound() | CODE |
| LOW | tests/CarbonPeriod/IteratorTest.php | 106 | public function testKeyAndCurrentAreNullAfterIteration() | CODE |
| LOW | tests/CarbonPeriod/IteratorTest.php | 136 | public static function dataForIterateBackwardsArguments(): Generator | CODE |
| LOW | tests/CarbonPeriod/IteratorTest.php | 160 | public function testChangingParametersShouldNotCauseInfiniteLoop() | CODE |
| LOW | tests/CarbonPeriod/IteratorTest.php | 196 | public function testChangeEndDateDuringIteration() | CODE |
| LOW | tests/CarbonPeriod/IteratorTest.php | 225 | public function testKeepIncreasingRecurrencesDuringIteration() | CODE |
| LOW | tests/CarbonPeriod/IteratorTest.php | 254 | public function testChangeStartDateDuringIteration() | CODE |
| LOW | tests/CarbonPeriod/IteratorTest.php | 286 | public function testChangeDateIntervalDuringIteration() | CODE |
| LOW | tests/CarbonPeriod/IteratorTest.php | 313 | public function testValidateOncePerIteration() | CODE |
| LOW | tests/CarbonPeriod/IteratorTest.php | 331 | public function testInvalidateCurrentAfterChangingParameters() | CODE |
| LOW | tests/CarbonPeriod/IteratorTest.php | 343 | public function testTraversePeriodDynamically() | CODE |
| LOW | tests/CarbonPeriod/IteratorTest.php | 365 | public function testExtendCompletedIteration() | CODE |
| LOW | tests/CarbonPeriod/IteratorTest.php | 392 | public function testRevalidateCurrentAfterChangeOfParameters() | CODE |
| LOW | tests/CarbonPeriod/IteratorTest.php | 409 | public function testRevalidateCurrentAfterEndOfIteration() | CODE |
| LOW | tests/CarbonPeriod/IteratorTest.php | 424 | public function testChangeStartDateBeforeIteration() | CODE |
| LOW | tests/CarbonPeriod/IteratorTest.php | 434 | public function testChangeStartDateAfterStartedIteration() | CODE |
| LOW | tests/CarbonPeriod/IteratorTest.php | 447 | public function testInvertDateIntervalDuringIteration() | CODE |
| LOW | tests/CarbonPeriod/IteratorTest.php | 592 | public function testReverseOrderWithDynamicStep() | CODE |
| LOW | tests/CarbonPeriod/IteratorTest.php | 619 | public function testBackAndForthWithRecurrences() | CODE |
| LOW | tests/CarbonPeriod/DynamicIntervalTest.php | 21 | public function testDynamicIntervalInPeriod() | CODE |
| LOW | tests/CarbonPeriod/MacroTest.php | 64 | public function testParameterOtherThanSelfIsNotGivenPeriodInstance() | CODE |
| LOW | tests/CarbonPeriod/MacroTest.php | 77 | public function testPassPeriodInstanceAfterOptionalParameters() | CODE |
| LOW | tests/CarbonPeriod/MacroTest.php | 96 | public function testMacroIsBindedToDatePeriodInstance() | CODE |
| LOW | tests/CarbonPeriod/MacroTest.php | 127 | public function testMacroIsBoundToDatePeriodClass() | CODE |
| 1299 more matches not shown… | ||||
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | tests/Unit/UnitTest.php | 41 | #[TestWith([Unit::Quarter, 'quarters'])] | COMMENT |
| LOW | tests/Carbon/StartEndOfTest.php | 441 | { | COMMENT |
| LOW | tests/Carbon/StartEndOfTest.php | 461 | $this->assertCarbon($dt->startOfQuarter(), 2015, $startOfQuarterMonth, 1, 0, 0, 0); | COMMENT |
| LOW | tests/CarbonImmutable/StartEndOfTest.php | 361 | COMMENT | |
| LOW | tests/CarbonImmutable/StartEndOfTest.php | 381 | { | COMMENT |
| LOW | tests/CarbonImmutable/NoDiscardTest.php | 21 | use PHPUnit\Framework\Attributes\TestWith; | COMMENT |
| LOW | src/Carbon/Traits/Date.php | 921 | // @call addUnit | COMMENT |