Skip to content

Commit

Permalink
docs: fix PedroTroller/phpspec documentation
Browse files Browse the repository at this point in the history
  • Loading branch information
PedroTroller committed Oct 29, 2019
1 parent 2b4e9ff commit f378406
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 1 deletion.
4 changes: 4 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -1274,7 +1274,11 @@ return $config;

## PedroTroller/phpspec

Phpspec scenario functions MUST NOT have a return type declaration.

Phpspec scenario functions MUST NOT have a scope.

The methods of the phpspec specification classes MUST BE sorted (let, letGo, its_*, it_*, getMatchers and the rest of the methods)


### Available options
Expand Down
9 changes: 8 additions & 1 deletion src/PedroTroller/CS/Fixer/PhpspecFixer.php
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,14 @@ public function getPriority()

public function getDocumentation()
{
return '';
return implode(
"\n\n",
[
'Phpspec scenario functions MUST NOT have a return type declaration.',
'Phpspec scenario functions MUST NOT have a scope.',
'The methods of the phpspec specification classes MUST BE sorted (let, letGo, its_*, it_*, getMatchers and the rest of the methods)',
]
);
}

/**
Expand Down

0 comments on commit f378406

Please sign in to comment.