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

webimpress / coding-standard
100%
master: 100%

Build:
Build:
LAST BUILD BRANCH: 1.4.0
DEFAULT BRANCH: master
Repo Added 20 Sep 2018 07:48AM UTC
Files 81
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 feature/operator-and-keyword-spacing
branch: feature/operator-and-keyword-spacing
CHANGE BRANCH
x
Reset
  • feature/operator-and-keyword-spacing
  • 1.0.0
  • 1.0.1
  • 1.0.2
  • 1.0.3
  • 1.0.4
  • 1.0.5
  • 1.0.6
  • 1.1.0
  • 1.1.1
  • 1.1.2
  • 1.1.3
  • 1.1.4
  • 1.1.6
  • 1.1.7
  • 1.2.0
  • 1.2.2
  • 1.2.3
  • 1.2.4
  • 1.3.0
  • 1.3.1
  • 1.3.2
  • 1.4.0
  • dependabot/add-v2-config-file
  • dependabot/composer/phpunit/phpunit-8.5.1
  • dependabot/composer/phpunit/phpunit-8.5.2
  • dependabot/composer/phpunit/phpunit-9.0.1
  • dependabot/composer/phpunit/phpunit-9.0.2
  • dependabot/composer/phpunit/phpunit-9.1.0
  • dependabot/composer/phpunit/phpunit-9.1.1
  • dependabot/composer/phpunit/phpunit-9.1.2
  • dependabot/composer/phpunit/phpunit-9.1.3
  • dependabot/composer/phpunit/phpunit-9.1.4
  • dependabot/composer/phpunit/phpunit-9.1.5
  • dependabot/composer/phpunit/phpunit-9.2.1
  • dependabot/composer/phpunit/phpunit-9.2.2
  • dependabot/composer/phpunit/phpunit-9.2.3
  • dependabot/composer/phpunit/phpunit-9.2.5
  • dependabot/composer/phpunit/phpunit-9.2.6
  • dependabot/composer/phpunit/phpunit-9.3.10
  • dependabot/composer/phpunit/phpunit-9.3.11
  • dependabot/composer/phpunit/phpunit-9.3.2
  • dependabot/composer/phpunit/phpunit-9.3.5
  • dependabot/composer/phpunit/phpunit-9.3.6
  • dependabot/composer/phpunit/phpunit-9.3.7
  • dependabot/composer/phpunit/phpunit-9.3.8
  • dependabot/composer/phpunit/phpunit-9.4.0
  • dependabot/composer/phpunit/phpunit-9.4.1
  • dependabot/composer/phpunit/phpunit-9.4.2
  • dependabot/composer/phpunit/phpunit-9.4.3
  • dependabot/composer/phpunit/phpunit-9.4.4
  • dependabot/composer/phpunit/phpunit-9.5.10
  • dependabot/composer/phpunit/phpunit-9.5.11
  • dependabot/composer/phpunit/phpunit-9.5.12
  • dependabot/composer/phpunit/phpunit-9.5.13
  • dependabot/composer/phpunit/phpunit-9.5.14
  • dependabot/composer/phpunit/phpunit-9.5.16
  • dependabot/composer/phpunit/phpunit-9.5.17
  • dependabot/composer/phpunit/phpunit-9.5.18
  • dependabot/composer/phpunit/phpunit-9.5.19
  • dependabot/composer/phpunit/phpunit-9.5.20
  • dependabot/composer/phpunit/phpunit-9.5.21
  • dependabot/composer/phpunit/phpunit-9.5.23
  • dependabot/composer/phpunit/phpunit-9.5.24
  • dependabot/composer/phpunit/phpunit-9.5.25
  • dependabot/composer/phpunit/phpunit-9.5.26
  • dependabot/composer/phpunit/phpunit-9.5.27
  • dependabot/composer/phpunit/phpunit-9.5.28
  • dependabot/composer/phpunit/phpunit-9.5.5
  • dependabot/composer/phpunit/phpunit-9.5.6
  • dependabot/composer/phpunit/phpunit-9.5.7
  • dependabot/composer/phpunit/phpunit-9.5.8
  • dependabot/composer/phpunit/phpunit-9.6.0
  • dependabot/composer/phpunit/phpunit-9.6.10
  • dependabot/composer/phpunit/phpunit-9.6.11
  • dependabot/composer/phpunit/phpunit-9.6.12
  • dependabot/composer/phpunit/phpunit-9.6.13
  • dependabot/composer/phpunit/phpunit-9.6.15
  • dependabot/composer/phpunit/phpunit-9.6.3
  • dependabot/composer/phpunit/phpunit-9.6.4
  • dependabot/composer/phpunit/phpunit-9.6.5
  • dependabot/composer/phpunit/phpunit-9.6.6
  • dependabot/composer/phpunit/phpunit-9.6.7
  • dependabot/composer/phpunit/phpunit-9.6.8
  • dependabot/composer/phpunit/phpunit-9.6.9
  • dependabot/composer/squizlabs/php_codesniffer-3.5.4
  • dependabot/composer/squizlabs/php_codesniffer-3.5.5
  • dependabot/composer/squizlabs/php_codesniffer-3.5.6
  • dependabot/composer/squizlabs/php_codesniffer-3.5.7
  • dependabot/composer/squizlabs/php_codesniffer-3.5.8
  • dependabot/composer/squizlabs/php_codesniffer-3.6.1
  • dependabot/composer/squizlabs/php_codesniffer-3.6.2
  • dependabot/composer/squizlabs/php_codesniffer-3.7.0
  • dependabot/composer/squizlabs/php_codesniffer-3.7.1
  • dependabot/composer/squizlabs/php_codesniffer-3.7.2
  • deps-update
  • develop
  • feat/php-disallow-fqn-dnf-types
  • feature/array-format
  • feature/camel-caps-functions
  • feature/camel-case-variables
  • feature/const-after-traits
  • feature/default-as-last
  • feature/disallow-curly-ffset-access-brace
  • feature/doc-comment-star
  • feature/duplicate-array-keys
  • feature/empty-comments
  • feature/null-as-last
  • feature/php-doc-tags
  • feature/property-before-method
  • feature/property-type-php7.4
  • feature/redundant-case
  • feature/static-callbacks
  • feature/traits-on-top
  • feature/unique-imports
  • fix/redundant-parenthesis-closure-instanceof
  • hotfix/32
  • hotfix/annotation-sniffs
  • hotfix/array-format-doc-block
  • hotfix/blank-line-before-doc-comment
  • hotfix/boolean-operator-at-the-end-of-the-line
  • hotfix/class-name-with-underscore
  • hotfix/comment-placement-first-column
  • hotfix/disallow-fqn-conflict
  • hotfix/disallow-fqn-missing-space
  • hotfix/disallow-fqn-unused-import-conflict
  • hotfix/doc-block-after-colon
  • hotfix/doc-block-empty-line-between
  • hotfix/doc-comment-indents-closing-bracket-annotations
  • hotfix/empty-structures
  • hotfix/fixer-conflicts
  • hotfix/invalid-type-php-doc
  • hotfix/line-after-sniff-doc-comment
  • hotfix/method-tag
  • hotfix/param-and-return-type-better-recognisation
  • hotfix/param-redundant-type
  • hotfix/php-docs-multiple-spaces
  • hotfix/redundant-parentheses-invoke-class
  • hotfix/redundant-semicolon
  • hotfix/return-type
  • hotfix/return-type-this
  • hotfix/scope-indent
  • hotfix/scope-indent-ternary
  • hotfix/self-parent-types
  • hotfix/sort-uses
  • hotfix/sorting-types
  • hotfix/string-class-reference-class-reg-exp
  • hotfix/string-reference
  • hotfix/unused-use-statement
  • hotfix/unused-use-statement-annotations
  • master
  • php-8.3
  • unused-use-statement

pending completion
141

push

travis-ci-com

Michał Bundyra
Feature: WhiteSpace\OperatorAndKeywordSpacing sniff

Replaces `Squiz.WhiteSpace.OperatorSpacing` as it was not possible to
configure to force space after (and before) some tokens only.

It still extends `Squiz.WhiteSpace.OperatorSpacing` but works also with
some PHP keywords (`as`, `insteadof`) and force one space before and after:
- `as`
- `insteadof`
- `instanceof`

Also, this new sniff allow only ONE empty line before operator,
and disallow empty line after opertator.
In case operator is at the end of the line it will be moved to next line
just before the non-empty content with single space.

5899 of 5914 relevant lines covered (99.75%)

1.13 hits per line

Relevant lines Covered
Build:
Build:
5914 RELEVANT LINES 5899 COVERED LINES
1.13 HITS PER LINE
Source Files on feature/operator-and-keyword-spacing
  • List 0
  • Changed 0
  • Source Changed 0
  • Coverage Changed 0
Coverage ∆ File Lines Relevant Covered Missed Hits/Line

Recent builds

Builds Branch Commit Type Ran Committer Via Coverage
141 feature/operator-and-keyword-spacing Feature: WhiteSpace\OperatorAndKeywordSpacing sniff Replaces `Squiz.WhiteSpace.OperatorSpacing` as it was not possible to configure to force space after (and before) some tokens only. It still extends `Squiz.WhiteSpace.OperatorSpacing` but works... push 13 Nov 2019 07:59PM UTC Michał Bundyra travis-ci-com pending completion  
See All Builds (748)
  • 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