Skip to content
This repository has been archived by the owner on Jun 7, 2024. It is now read-only.

Commit

Permalink
Patch PHP preg_match
Browse files Browse the repository at this point in the history
  • Loading branch information
mickaelandrieu committed Nov 23, 2016
1 parent acda7e9 commit 50f0af1
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions src/AppBundle/PullRequests/BodyParser.php
Original file line number Diff line number Diff line change
Expand Up @@ -105,39 +105,39 @@ public function willDeprecateCode()
*/
public function isAFeature()
{
return true === preg_match('/feature/', $this->getType());
return 1 === preg_match('/feature/', $this->getType());
}

/**
* @return bool
*/
public function isAnImprovement()
{
return true === preg_match('/improvement/', $this->getType());
return 1 === preg_match('/improvement/', $this->getType());
}

/**
* @return bool
*/
public function isABugFix()
{
return true === preg_match('/bug fix/', $this->getType());
return 1 === preg_match('/bug fix/', $this->getType());
}

/**
* @return bool
*/
public function isASmallFix()
{
return true === preg_match('/small fix/', $this->getType());
return 1 === preg_match('/small fix/', $this->getType());
}

/**
* @return bool
*/
public function isARefacto()
{
return true === preg_match('/refacto/', $this->getType());
return 1 === preg_match('/refacto/', $this->getType());
}

/**
Expand Down

0 comments on commit 50f0af1

Please sign in to comment.