for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
/**
* This file is part of the Code-Insight library.
* For the full copyright and license information, please view
* the LICENSE file that was distributed with this source code.
*
* @copyright Alexander Obuhovich <[email protected]>
* @link https://github.com/console-helpers/code-insight
*/
namespace ConsoleHelpers\CodeInsight\BackwardsCompatibility\Reporter;
abstract class AbstractReporter
{
* Returns reporter name.
* @return string
abstract public function getName();
* Generates report.
* @param array $bc_breaks BC breaks.
abstract public function generate(array $bc_breaks);
* Groups BC breaks by type.
* @return array
protected function groupByType(array $bc_breaks)
$ret = array();
foreach ( $bc_breaks as $bc_break_data ) {
$type = $bc_break_data['type'];
if ( !isset($ret[$type]) ) {
$ret[$type] = array();
}
$ret[$type][] = $bc_break_data;
return $ret;