Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix DocBlocks (Boolean -> bool) #237

Merged
merged 1 commit into from
Jul 2, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/Behat/Gherkin/Cache/CacheInterface.php
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ interface CacheInterface
* @param string $path Feature path
* @param integer $timestamp The last time feature was updated
*
* @return Boolean
* @return bool
*/
public function isFresh($path, $timestamp);

Expand Down
2 changes: 1 addition & 1 deletion src/Behat/Gherkin/Cache/FileCache.php
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ public function __construct($path)
* @param string $path Feature path
* @param integer $timestamp The last time feature was updated
*
* @return Boolean
* @return bool
*/
public function isFresh($path, $timestamp)
{
Expand Down
2 changes: 1 addition & 1 deletion src/Behat/Gherkin/Cache/MemoryCache.php
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ class MemoryCache implements CacheInterface
* @param string $path Feature path
* @param integer $timestamp The last time feature was updated
*
* @return Boolean
* @return bool
*/
public function isFresh($path, $timestamp)
{
Expand Down
2 changes: 1 addition & 1 deletion src/Behat/Gherkin/Filter/ComplexFilterInterface.php
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ interface ComplexFilterInterface extends FeatureFilterInterface
* @param FeatureNode $feature Feature node instance
* @param ScenarioInterface $scenario Scenario or Outline node instance
*
* @return Boolean
* @return bool
*/
public function isScenarioMatch(FeatureNode $feature, ScenarioInterface $scenario);
}
2 changes: 1 addition & 1 deletion src/Behat/Gherkin/Filter/FeatureFilterInterface.php
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ interface FeatureFilterInterface
*
* @param FeatureNode $feature Feature instance
*
* @return Boolean
* @return bool
*/
public function isFeatureMatch(FeatureNode $feature);

Expand Down
2 changes: 1 addition & 1 deletion src/Behat/Gherkin/Filter/FilterInterface.php
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ interface FilterInterface extends FeatureFilterInterface
*
* @param ScenarioInterface $scenario Scenario or Outline node instance
*
* @return Boolean
* @return bool
*/
public function isScenarioMatch(ScenarioInterface $scenario);
}
4 changes: 2 additions & 2 deletions src/Behat/Gherkin/Filter/LineFilter.php
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ public function __construct($filterLine)
*
* @param FeatureNode $feature Feature instance
*
* @return Boolean
* @return bool
*/
public function isFeatureMatch(FeatureNode $feature)
{
Expand All @@ -51,7 +51,7 @@ public function isFeatureMatch(FeatureNode $feature)
*
* @param ScenarioInterface $scenario Scenario or Outline node instance
*
* @return Boolean
* @return bool
*/
public function isScenarioMatch(ScenarioInterface $scenario)
{
Expand Down
4 changes: 2 additions & 2 deletions src/Behat/Gherkin/Filter/LineRangeFilter.php
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ public function __construct($filterMinLine, $filterMaxLine)
*
* @param FeatureNode $feature Feature instance
*
* @return Boolean
* @return bool
*/
public function isFeatureMatch(FeatureNode $feature)
{
Expand All @@ -59,7 +59,7 @@ public function isFeatureMatch(FeatureNode $feature)
*
* @param ScenarioInterface $scenario Scenario or Outline node instance
*
* @return Boolean
* @return bool
*/
public function isScenarioMatch(ScenarioInterface $scenario)
{
Expand Down
4 changes: 2 additions & 2 deletions src/Behat/Gherkin/Filter/NameFilter.php
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ public function __construct($filterString)
*
* @param FeatureNode $feature Feature instance
*
* @return Boolean
* @return bool
*/
public function isFeatureMatch(FeatureNode $feature)
{
Expand All @@ -53,7 +53,7 @@ public function isFeatureMatch(FeatureNode $feature)
*
* @param ScenarioInterface $scenario Scenario or Outline node instance
*
* @return Boolean
* @return bool
*/
public function isScenarioMatch(ScenarioInterface $scenario)
{
Expand Down
4 changes: 2 additions & 2 deletions src/Behat/Gherkin/Filter/NarrativeFilter.php
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ public function __construct($regex)
*
* @param FeatureNode $feature Feature instance
*
* @return Boolean
* @return bool
*/
public function isFeatureMatch(FeatureNode $feature)
{
Expand All @@ -52,7 +52,7 @@ public function isFeatureMatch(FeatureNode $feature)
*
* @param ScenarioInterface $scenario Scenario or Outline node instance
*
* @return Boolean
* @return bool
*/
public function isScenarioMatch(ScenarioInterface $scenario)
{
Expand Down
2 changes: 1 addition & 1 deletion src/Behat/Gherkin/Filter/PathsFilter.php
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ function ($realpath) {
*
* @param FeatureNode $feature Feature instance
*
* @return Boolean
* @return bool
*/
public function isFeatureMatch(FeatureNode $feature)
{
Expand Down
2 changes: 1 addition & 1 deletion src/Behat/Gherkin/Filter/RoleFilter.php
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ public function __construct($role)
*
* @param FeatureNode $feature Feature instance
*
* @return Boolean
* @return bool
*/
public function isFeatureMatch(FeatureNode $feature)
{
Expand Down
6 changes: 3 additions & 3 deletions src/Behat/Gherkin/Filter/TagFilter.php
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ public function filterFeature(FeatureNode $feature)
*
* @param FeatureNode $feature Feature instance
*
* @return Boolean
* @return bool
*/
public function isFeatureMatch(FeatureNode $feature)
{
Expand All @@ -102,7 +102,7 @@ public function isFeatureMatch(FeatureNode $feature)
* @param FeatureNode $feature Feature node instance
* @param ScenarioInterface $scenario Scenario or Outline node instance
*
* @return Boolean
* @return bool
*/
public function isScenarioMatch(FeatureNode $feature, ScenarioInterface $scenario)
{
Expand All @@ -124,7 +124,7 @@ public function isScenarioMatch(FeatureNode $feature, ScenarioInterface $scenari
*
* @param string[] $tags
*
* @return Boolean
* @return bool
*/
protected function isTagsMatchCondition($tags)
{
Expand Down
32 changes: 16 additions & 16 deletions src/Behat/Gherkin/Keywords/KeywordsDumper.php
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ public function __construct(KeywordsInterface $keywords)
/**
* Sets keywords mapper function.
*
* Callable should accept 2 arguments (array $keywords and Boolean $isShort)
* Callable should accept 2 arguments (array $keywords and bool $isShort)
*
* @param callable $mapper Mapper function
*/
Expand All @@ -46,8 +46,8 @@ public function setKeywordsDumperFunction($mapper)
/**
* Defaults keywords dumper.
*
* @param array $keywords Keywords list
* @param Boolean $isShort Is short version
* @param array $keywords Keywords list
* @param bool $isShort Is short version
*
* @return string
*/
Expand All @@ -63,9 +63,9 @@ public function dumpKeywords(array $keywords, $isShort)
/**
* Dumps keyworded feature into string.
*
* @param string $language Keywords language
* @param Boolean $short Dump short version
* @param bool $excludeAsterisk
* @param string $language Keywords language
* @param bool $short Dump short version
* @param bool $excludeAsterisk
*
* @return string|array String for short version and array of features for extended
*/
Expand Down Expand Up @@ -98,7 +98,7 @@ public function dump($language, $short = true, $excludeAsterisk = false)
* Dumps feature example.
*
* @param string $keyword Item keyword
* @param Boolean $short Dump short version?
* @param bool $short Dump short version?
*
* @return string
*/
Expand Down Expand Up @@ -153,8 +153,8 @@ protected function dumpFeature($keyword, $short = true, $excludeAsterisk = false
/**
* Dumps background example.
*
* @param string $keyword Item keyword
* @param Boolean $short Dump short version?
* @param string $keyword Item keyword
* @param bool $short Dump short version?
*
* @return string
*/
Expand Down Expand Up @@ -187,8 +187,8 @@ protected function dumpBackground($keyword, $short = true, $excludeAsterisk = fa
/**
* Dumps scenario example.
*
* @param string $keyword Item keyword
* @param Boolean $short Dump short version?
* @param string $keyword Item keyword
* @param bool $short Dump short version?
*
* @return string
*/
Expand Down Expand Up @@ -245,8 +245,8 @@ protected function dumpScenario($keyword, $short = true, $excludeAsterisk = fals
/**
* Dumps outline example.
*
* @param string $keyword Item keyword
* @param Boolean $short Dump short version?
* @param string $keyword Item keyword
* @param bool $short Dump short version?
*
* @return string
*/
Expand Down Expand Up @@ -318,9 +318,9 @@ protected function dumpOutline($keyword, $short = true, $excludeAsterisk = false
/**
* Dumps step example.
*
* @param string $keywords Item keyword
* @param string $text Step text
* @param Boolean $short Dump short version?
* @param string $keywords Item keyword
* @param string $text Step text
* @param bool $short Dump short version?
*
* @return string
*/
Expand Down
2 changes: 1 addition & 1 deletion src/Behat/Gherkin/Loader/ArrayLoader.php
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ class ArrayLoader implements LoaderInterface
*
* @param mixed $resource Resource to load
*
* @return Boolean
* @return bool
*/
public function supports($resource)
{
Expand Down
2 changes: 1 addition & 1 deletion src/Behat/Gherkin/Loader/DirectoryLoader.php
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ public function __construct(Gherkin $gherkin)
*
* @param mixed $path Resource to load
*
* @return Boolean
* @return bool
*/
public function supports($path)
{
Expand Down
2 changes: 1 addition & 1 deletion src/Behat/Gherkin/Loader/GherkinFileLoader.php
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ public function setCache(CacheInterface $cache)
*
* @param mixed $path Resource to load
*
* @return Boolean
* @return bool
*/
public function supports($path)
{
Expand Down
2 changes: 1 addition & 1 deletion src/Behat/Gherkin/Loader/LoaderInterface.php
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ interface LoaderInterface
*
* @param mixed $resource Resource to load
*
* @return Boolean
* @return bool
*/
public function supports($resource);

Expand Down
2 changes: 1 addition & 1 deletion src/Behat/Gherkin/Loader/YamlFileLoader.php
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ public function __construct()
*
* @param mixed $path Resource to load
*
* @return Boolean
* @return bool
*/
public function supports($path)
{
Expand Down
2 changes: 1 addition & 1 deletion src/Behat/Gherkin/Node/BackgroundNode.php
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ public function getTitle()
/**
* Checks if background has steps.
*
* @return Boolean
* @return bool
*/
public function hasSteps()
{
Expand Down
6 changes: 3 additions & 3 deletions src/Behat/Gherkin/Node/ExampleNode.php
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@ public function getTitle()
*
* @param string $tag
*
* @return Boolean
* @return bool
*/
public function hasTag($tag)
{
Expand All @@ -111,7 +111,7 @@ public function hasTag($tag)
/**
* Checks if outline has tags (both inherited from feature and own).
*
* @return Boolean
* @return bool
*/
public function hasTags()
{
Expand All @@ -131,7 +131,7 @@ public function getTags()
/**
* Checks if outline has steps.
*
* @return Boolean
* @return bool
*/
public function hasSteps()
{
Expand Down
10 changes: 5 additions & 5 deletions src/Behat/Gherkin/Node/FeatureNode.php
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,7 @@ public function getTitle()
/**
* Checks if feature has a description.
*
* @return Boolean
* @return bool
*/
public function hasDescription()
{
Expand All @@ -138,7 +138,7 @@ public function getDescription()
*
* @param string $tag
*
* @return Boolean
* @return bool
*/
public function hasTag($tag)
{
Expand All @@ -148,7 +148,7 @@ public function hasTag($tag)
/**
* Checks if feature has tags.
*
* @return Boolean
* @return bool
*/
public function hasTags()
{
Expand All @@ -168,7 +168,7 @@ public function getTags()
/**
* Checks if feature has background.
*
* @return Boolean
* @return bool
*/
public function hasBackground()
{
Expand All @@ -188,7 +188,7 @@ public function getBackground()
/**
* Checks if feature has scenarios.
*
* @return Boolean
* @return bool
*/
public function hasScenarios()
{
Expand Down
Loading