for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
declare(strict_types = 1);
namespace PurpleBooth\GitGithubLint\Status;
use PurpleBooth\GitGithubLint\Validator\SeperateSubjectFromBodyWithABlankLineValidator;
/**
* This is the status returned when the SeperateSubjectFromBodyWithABlankLineValidator identifies a problem
*
* @see SeperateSubjectFromBodyWithABlankLineValidator
* @package PurpleBooth\GitGithubLint\Status
*/
class SeperateSubjectFromBodyWithABlankLineStatus implements Status
{
* Get the importance of this status.
* The lower the value the less important it is, the higher the more important.
* @return int
public function getWeight() : int
return Status::WEIGHT_ERROR;
}
* The GitHub equivalent of this state
* Can be one of pending, success, error, or failure.
* @return string
public function getState() : string
return Status::STATE_FAILURE;
* A human readable message that describes this state
* This will be displayed to the user via the GitHub state
public function getMessage() : string
return 'Please put a single blank line between the subject and body of the commit message';
* Is true if the status on GitHub would be success
* @return boolean
public function isPositive() : bool
return $this->getState() == Status::STATE_SUCCESS;