Skip to content

Commit 6beb7e3

Browse files
committed
typos
1 parent da14314 commit 6beb7e3

File tree

3 files changed

+6
-6
lines changed

3 files changed

+6
-6
lines changed

consistence-coding-standard.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -559,7 +559,7 @@ interface Exception extends \Consistence\Exception
559559
* Implemented as classes, class name describes the use-case and should be very specific.
560560
* Use-case exception implements "namespace exception" of the namespace where it is defined.
561561
* It may implement any other interfaces.
562-
* Inheritance is used used for implementation purposes - such as `Consistence\PhpException`, where `$code` argument is skipped.
562+
* Inheritance is used for implementation purposes - such as `Consistence\PhpException`, where `$code` argument is skipped.
563563
* Constructor requires only arguments, which are needed, the rest of the message is composed in the constructor.
564564
* All exceptions should support exceptions chaining (allow optional `\Exception` as last argument).
565565
* Arguments should be stored in private properties and available via public methods, so that exception handling may use this data.

readme.md

+3-3
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ Consistence Coding Standard
33

44
> **Complete standard is described in a [separate document](consistence-coding-standard.md)**.
55
6-
This is a custom coding standard which is used by all Consistence projects. It is also suitable to be used with any other project or as a foundation for your own standard.
6+
This is a custom coding standard, which is used by all Consistence projects. It is also suitable to be used with any other project or as a foundation for your own standard.
77

88
The main objectives of this standard are:
99

@@ -30,7 +30,7 @@ Coding Standard document should be considered the source of truth and main objec
3030
* `MINOR` version will be incremented if new sniffs are implemented to check for existing described rules.
3131
* `PATCH` version will be incremented for bug fixing - fixing a bug is considered everything which does not conform to the document - this may even lead to (temporarily) disabling an existing sniff - or part of it, until a better check is available or it is properly fixed.
3232

33-
None of the implementation of the automatic checks (both custom sniffs and the ruleset.xml file) are not subject to the SemVer and may change over time to accommodate changes in PHP_CodeSniffer and provided default sniffs, which are used also by this standard.
33+
The implementation of the automatic checks (both custom sniffs and the ruleset.xml file) are not subject to the SemVer and may change over time to accommodate changes in PHP_CodeSniffer and provided default sniffs, which are used also by this standard.
3434

3535
Recommended dependency on this package is on `MINOR` version (e.g. `~1.0.0`), which means effectively:
3636
* No new rules will be added.
@@ -51,4 +51,4 @@ Then run `phpcs` with this standard:
5151
vendor/bin/phpcs --standard=vendor/consistence/coding-standard/Consistence/ruleset.xml --extensions=php --encoding=utf-8 -sp src
5252
```
5353

54-
For further usage options see the [PHP_CodeSniffer documentation](https://github.com/squizlabs/PHP_CodeSniffer/wiki).
54+
For further usage options see the [PHP_CodeSniffer documentation](https://github.com/squizlabs/PHP_CodeSniffer/wiki).

tests/Sniffs/TestCase.php

+2-2
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ abstract class TestCase extends \PHPUnit_Framework_TestCase
99
{
1010

1111
/**
12-
* @param string $name
12+
* @param string|null $name
1313
* @param mixed[] $data
1414
* @param string $dataName
1515
*/
@@ -120,7 +120,7 @@ protected function assertSniffError(PHP_CodeSniffer_File $resultFile, $line, $co
120120
* @param string|null $message
121121
* @return boolean
122122
*/
123-
private function hasError(array $errorsForLine, $code, $message = null)
123+
private function hasError(array $errorsForLine, $code, $message)
124124
{
125125
foreach ($errorsForLine as $errorsForPosition) {
126126
foreach ($errorsForPosition as $error) {

0 commit comments

Comments
 (0)