A simple PHP API extension for DateTime.
1284 matches across 2 categories. Click a row to expand file-level details.
| Severity | File | Line | Snippet |
|---|---|---|---|
| LOW | sponsors.php | 16 | function getMaxHistoryMonthsByAmount($amount): int |
| LOW | sponsors.php | 53 | function getOpenCollectiveSponsors(): string |
| LOW | tests/AbstractTestCase.php | 227 | public function assertInstanceOfCarbonInterval($d): void |
| LOW | tests/PHPStan/Fixture.php | 20 | public function testCarbonMacroCalledStatically(): string |
| LOW | tests/PHPStan/Fixture.php | 25 | public function testCarbonMacroCalledDynamically(): string |
| LOW | tests/PHPStan/FeaturesTest.php | 41 | public function testAnalysesWithoutErrors(): void |
| LOW | tests/CarbonTimeZone/CreateTest.php | 67 | public function testSafeCreateDateTimeZoneWithoutStrictMode() |
| LOW | tests/CarbonTimeZone/ConversionsTest.php | 94 | public function testToOffsetNameDateAsParam(string $date, string $expectedOffset, string|int $timezone) |
| LOW | tests/CarbonTimeZone/ConversionsTest.php | 101 | public function testToOffsetNameFromDifferentCreationMethods() |
| LOW | tests/CarbonTimeZone/ConversionsTest.php | 141 | public function testInvalidRegionForOffset() |
| LOW | tests/CarbonTimeZone/ConversionsTest.php | 147 | public function testInvalidRegionForOffsetInStrictMode() |
| LOW | tests/CarbonPeriod/FilterTest.php | 49 | public function testUpdateInternalStateWhenBuiltInFiltersAreRemoved() |
| LOW | tests/CarbonPeriod/FilterTest.php | 113 | public function testRemoveFilterByInstance() |
| LOW | tests/CarbonPeriod/FilterTest.php | 271 | public function testChangeNumberOfRecurrences() |
| LOW | tests/CarbonPeriod/FilterTest.php | 313 | public function testThrowExceptionWhenNextValidDateCannotBeFound() |
| LOW | tests/CarbonPeriod/FilterTest.php | 388 | public function testAddFilterFromCarbonMethod() |
| LOW | tests/CarbonPeriod/FilterTest.php | 402 | public function testAddFilterFromCarbonMacro() |
| LOW | tests/CarbonPeriod/FilterTest.php | 423 | public function testAddFilterFromCarbonMethodWithArguments() |
| LOW | tests/CarbonPeriod/FilterTest.php | 437 | public function testRemoveFilterFromCarbonMethod() |
| LOW | tests/CarbonPeriod/FilterTest.php | 451 | public function testInvalidCarbonMethodShouldNotBeConvertedToCallback() |
| LOW | tests/CarbonPeriod/FilterTest.php | 479 | public function testRemoveCallableFilters() |
| LOW | tests/CarbonPeriod/MonthlyTest.php | 25 | public function testMonthlyWithoutParameters() |
| LOW | tests/CarbonPeriod/MonthlyTest.php | 98 | public function testMonthlyWithStartDateAndRecurrences() |
| LOW | tests/CarbonPeriod/MonthlyTest.php | 169 | public function testMonthlyWithTimestamps() |
| LOW | tests/CarbonPeriod/MonthlyTest.php | 211 | public function testMonthlyWithEndDateAndRecurrences() |
| LOW | tests/CarbonPeriod/AliasTest.php | 47 | public function testSetStartDateWithNamedParameters() |
| LOW | tests/CarbonPeriod/AliasTest.php | 112 | public function testSetEndDateWithNamedParameters() |
| LOW | tests/CarbonPeriod/AliasTest.php | 258 | public function testModifyIntervalSingular() |
| LOW | tests/CarbonPeriod/AliasTest.php | 298 | public function testOverrideDefaultInterval() |
| LOW | tests/CarbonPeriod/AliasTest.php | 311 | public function testModifyIntoEmptyDateInterval() |
| LOW | tests/CarbonPeriod/IteratorTest.php | 28 | public function testKeyAndCurrentAreCorrectlyInstantiated() |
| LOW | tests/CarbonPeriod/IteratorTest.php | 38 | public function testValidIsCorrectlyInstantiated() |
| LOW | tests/CarbonPeriod/IteratorTest.php | 45 | public function testCurrentIsAlwaysCarbonInstance() |
| LOW | tests/CarbonPeriod/IteratorTest.php | 73 | public function testElementsInLoopAreAlwaysValid() |
| LOW | tests/CarbonPeriod/IteratorTest.php | 82 | public function testKeyAndCurrentAreCorrectlyIterated() |
| LOW | tests/CarbonPeriod/IteratorTest.php | 93 | public function testKeyAndCurrentAreCorrectlyRewound() |
| LOW | tests/CarbonPeriod/IteratorTest.php | 105 | public function testKeyAndCurrentAreNullAfterIteration() |
| LOW | tests/CarbonPeriod/IteratorTest.php | 135 | public static function dataForIterateBackwardsArguments(): Generator |
| LOW | tests/CarbonPeriod/IteratorTest.php | 159 | public function testChangingParametersShouldNotCauseInfiniteLoop() |
| LOW | tests/CarbonPeriod/IteratorTest.php | 195 | public function testChangeEndDateDuringIteration() |
| LOW | tests/CarbonPeriod/IteratorTest.php | 224 | public function testKeepIncreasingRecurrencesDuringIteration() |
| LOW | tests/CarbonPeriod/IteratorTest.php | 253 | public function testChangeStartDateDuringIteration() |
| LOW | tests/CarbonPeriod/IteratorTest.php | 285 | public function testChangeDateIntervalDuringIteration() |
| LOW | tests/CarbonPeriod/IteratorTest.php | 312 | public function testValidateOncePerIteration() |
| LOW | tests/CarbonPeriod/IteratorTest.php | 330 | public function testInvalidateCurrentAfterChangingParameters() |
| LOW | tests/CarbonPeriod/IteratorTest.php | 342 | public function testTraversePeriodDynamically() |
| LOW | tests/CarbonPeriod/IteratorTest.php | 364 | public function testExtendCompletedIteration() |
| LOW | tests/CarbonPeriod/IteratorTest.php | 391 | public function testRevalidateCurrentAfterChangeOfParameters() |
| LOW | tests/CarbonPeriod/IteratorTest.php | 408 | public function testRevalidateCurrentAfterEndOfIteration() |
| LOW | tests/CarbonPeriod/IteratorTest.php | 423 | public function testChangeStartDateBeforeIteration() |
| LOW | tests/CarbonPeriod/IteratorTest.php | 433 | public function testChangeStartDateAfterStartedIteration() |
| LOW | tests/CarbonPeriod/IteratorTest.php | 446 | public function testInvertDateIntervalDuringIteration() |
| LOW | tests/CarbonPeriod/DynamicIntervalTest.php | 21 | public function testDynamicIntervalInPeriod() |
| LOW | tests/CarbonPeriod/MacroTest.php | 64 | public function testParameterOtherThanSelfIsNotGivenPeriodInstance() |
| LOW | tests/CarbonPeriod/MacroTest.php | 77 | public function testPassPeriodInstanceAfterOptionalParameters() |
| LOW | tests/CarbonPeriod/MacroTest.php | 96 | public function testMacroIsBindedToDatePeriodInstance() |
| LOW | tests/CarbonPeriod/MacroTest.php | 127 | public function testMacroIsBoundToDatePeriodClass() |
| LOW | tests/CarbonPeriod/MacroTest.php | 137 | public function testRegisterNonClosureMacro() |
| LOW | tests/CarbonPeriod/MacroTest.php | 173 | public function testCallNonExistingMacroStatically() |
| LOW | tests/CarbonPeriod/MacroTest.php | 193 | public function testInstantiateViaStaticMacroCall() |
| 1218 more matches not shown… | |||
| Severity | File | Line | Snippet |
|---|---|---|---|
| LOW | tests/Unit/UnitTest.php | 41 | #[TestWith([Unit::Quarter, 'quarters'])] |
| LOW | tests/Carbon/StartEndOfTest.php | 441 | { |
| LOW | tests/Carbon/StartEndOfTest.php | 461 | $this->assertCarbon($dt->startOfQuarter(), 2015, $startOfQuarterMonth, 1, 0, 0, 0); |
| LOW | tests/CarbonImmutable/StartEndOfTest.php | 361 | |
| LOW | tests/CarbonImmutable/StartEndOfTest.php | 381 | { |
| LOW | src/Carbon/Traits/Date.php | 921 | // @call setUnit |