for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
/*
* Changelog keeper
*
* @link https://github.com/hiqdev/chkipper
* @package chkipper
* @license BSD-3-Clause
* @copyright Copyright (c) 2016, HiQDev (http://hiqdev.com/)
*/
namespace hiqdev\chkipper\history;
/**
* Abstract history renderer.
* @author Andrii Vasyliev <[email protected]>
abstract class AbstractRenderer
{
public function setHistory($value)
$this->_history = $value;
_history
In PHP it is possible to write to properties without declaring them. For example, the following is perfectly valid PHP code:
class MyClass { } $x = new MyClass(); $x->foo = true;
Generally, it is a good practice to explictly declare properties to avoid accidental typos and provide IDE auto-completion:
class MyClass { public $foo; } $x = new MyClass(); $x->foo = true;
}
public function getHistory()
return $this->_history;
abstract public function render(History $history);
public static function skipCommit(Commit $commit)
$comment = $commit['comment'];
static $equals = [
'' => 1,
'minor' => 1,
];
if ($equals[$comment]) {
return true;
static $starts = [
'version bump',
'bumped version',
"merge branch 'master'",
foreach ($starts as $start) {
if (strtolower(substr($comment, 0, strlen($start))) === $start) {
return false;
In PHP it is possible to write to properties without declaring them. For example, the following is perfectly valid PHP code:
Generally, it is a good practice to explictly declare properties to avoid accidental typos and provide IDE auto-completion: