• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

phpolar / csrf-protection
99%
main: 97%

Build:
Build:
LAST BUILD BRANCH: dependabot/composer/phpunit/phpunit-12.0.9
DEFAULT BRANCH: main
Repo Added 18 Jan 2023 03:06AM CUT
Token orRZCMWypACbl6nfYRtZq6qvcl6LvCCmN regen
Build 210 Last
Files 9
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

LAST BUILD ON BRANCH token-check-refactor
branch: token-check-refactor
CHANGE BRANCH
x
Reset
Sync Branches
  • token-check-refactor
  • add-badges
  • add-ide-config
  • add-logo
  • add-security-policy
  • add-token-in-handler
  • allow-extending
  • allow-token-add-after-max
  • auto-merge-switch-token
  • bump-0.4.3
  • change-csrf-token-key
  • dependabot/composer/guzzlehttp/psr7-2.5.0
  • dependabot/composer/php-coveralls/php-coveralls-2.6.0
  • dependabot/composer/php-coveralls/php-coveralls-2.7.0
  • dependabot/composer/phpolar/csrf-response-filter-1.0.1
  • dependabot/composer/phpstan/phpstan-1.10.15
  • dependabot/composer/phpstan/phpstan-1.10.16
  • dependabot/composer/phpstan/phpstan-1.10.18
  • dependabot/composer/phpstan/phpstan-1.10.19
  • dependabot/composer/phpstan/phpstan-1.10.20
  • dependabot/composer/phpstan/phpstan-1.10.21
  • dependabot/composer/phpstan/phpstan-1.10.22
  • dependabot/composer/phpstan/phpstan-1.10.23
  • dependabot/composer/phpstan/phpstan-1.10.24
  • dependabot/composer/phpstan/phpstan-1.10.25
  • dependabot/composer/phpstan/phpstan-1.10.26
  • dependabot/composer/phpstan/phpstan-1.10.29
  • dependabot/composer/phpstan/phpstan-1.10.30
  • dependabot/composer/phpstan/phpstan-1.10.37
  • dependabot/composer/phpstan/phpstan-1.10.39
  • dependabot/composer/phpstan/phpstan-1.10.40
  • dependabot/composer/phpstan/phpstan-1.10.41
  • dependabot/composer/phpstan/phpstan-1.10.43
  • dependabot/composer/phpstan/phpstan-1.10.44
  • dependabot/composer/phpstan/phpstan-1.10.45
  • dependabot/composer/phpstan/phpstan-1.10.46
  • dependabot/composer/phpstan/phpstan-1.10.47
  • dependabot/composer/phpunit/phpunit-10.1.3
  • dependabot/composer/phpunit/phpunit-10.2.0
  • dependabot/composer/phpunit/phpunit-10.2.1
  • dependabot/composer/phpunit/phpunit-10.2.2
  • dependabot/composer/phpunit/phpunit-10.2.3
  • dependabot/composer/phpunit/phpunit-10.2.4
  • dependabot/composer/phpunit/phpunit-10.2.5
  • dependabot/composer/phpunit/phpunit-10.2.6
  • dependabot/composer/phpunit/phpunit-10.2.7
  • dependabot/composer/phpunit/phpunit-10.3.2
  • dependabot/composer/phpunit/phpunit-10.3.3
  • dependabot/composer/phpunit/phpunit-10.3.4
  • dependabot/composer/phpunit/phpunit-10.4.2
  • dependabot/composer/phpunit/phpunit-10.5.1
  • dependabot/composer/phpunit/phpunit-10.5.2
  • dependabot/composer/phpunit/phpunit-12.0.9
  • enhance-comments
  • ericfortmeyer-patch-1
  • exclude-files-in-pre-commit
  • fix-comment
  • fix-comments
  • fix-dist-build
  • fix-docs
  • fix-docs-link
  • implement-response-filter
  • improve-coverage
  • improve-path-coverage
  • inject-token
  • load-tokens
  • lowercase-created
  • main
  • minor-linting
  • no-token-dups
  • phpunit-upgrade
  • prune-dist
  • reduce-dist-size
  • reduce-max-tokens
  • refactor-middleware
  • refactor-session-storage
  • refs/pull/109/merge
  • refs/pull/110/merge
  • refs/pull/111/merge
  • refs/pull/113/merge
  • refs/pull/119/merge
  • refs/pull/122/merge
  • refs/pull/125/merge
  • refs/pull/126/merge
  • refs/pull/127/merge
  • refs/pull/128/merge
  • refs/pull/129/merge
  • refs/pull/130/merge
  • refs/pull/132/merge
  • refs/pull/133/merge
  • remove-dep
  • remove-logger
  • rename-classes
  • split-middleware
  • update-deps
  • update-linting-rules
  • update-project-size-threshold
  • update-readme
  • upgrade-deps
  • upgrade-php-version
  • upgrade-phpunit
  • use-dependabot
  • use-new-logo
  • use-php-contrib-response-filter
  • use-request-filter-library
  • use-response-filter

25 Feb 2023 09:51AM CUT coverage: 99.16% (+0.004%) from 99.156%
4269426743

Pull #32

github

GitHub
Merge c00c3b537 into d52f8e65f
Pull Request #32: refactor(CsrfToken): calculate expires on when created

2 of 2 new or added lines in 1 file covered. (100.0%)

236 of 238 relevant lines covered (99.16%)

15.72 hits per line

Relevant lines Covered
Build:
Build:
238 RELEVANT LINES 236 COVERED LINES
15.72 HITS PER LINE
Source Files on token-check-refactor
  • Tree
  • List 13
  • Changed 1
  • Source Changed 1
  • Coverage Changed 1
Loading...
Coverage∆FileLinesRelevantCoveredMissedHits/Line
0.0
src/constants.php9 2 0 2 0.0
100.0
src/CsrfToken.php50 + 35 + 15 + 10 2.0
100.0
src/Http/AbstractCsrfProtectionMiddleware.php107 17 17 0 12.0
100.0
src/Http/CsrfProtectionRequestHandler.php219 76 76 0 42.0
100.0
src/Http/CsrfRequestCheckMiddleware.php33 5 5 0 20.0
100.0
src/Http/CsrfResponseFilterMiddlewareFactory.php45 9 9 0 1.0
100.0
src/Http/CsrfResponseFilterMiddleware.php47 6 6 0 1.0
100.0
src/Http/ResponseFilterContext.php28 2 2 0 3.0
100.0
src/Http/ResponseFilterPatternStrategy.php55 27 27 0 2.0
100.0
src/Http/ResponseFilterScanStrategy.php157 78 78 0 1.0
Showing 1 to 10 of 13 entries
  • Previous
  • 1
  • 2
  • Next
  • ►
    99.16
    src/

Recent builds

Builds Branch Commit Type Ran Committer Via Coverage
4269426743 token-check-refactor Merge c00c3b537 into d52f8e65f Pull #32 25 Feb 2023 09:51AM CUT GitHub github
99.16
See All Builds (122)

Badge your Repo: csrf-protection

We detected this repo isn’t badged! Grab the embed code to the right, add it to your repo to show off your code coverage, and when the badge is live hit the refresh button to remove this message.

Could not find badge in README.

Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

Refresh
  • Settings
  • Repo on GitHub
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2025 Coveralls, Inc