Showing 7 of 7 total issues
Method getAst
has 42 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function getAst($firstData, $secondData)
{
$keys1 = array_keys($firstData);
$keys2 = array_keys($secondData);
$allKeys = Collection\union($keys1, $keys2);
Method getRenderMethod
has 34 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function getRenderMethod($elementType)
{
$typeMethods = [
"nested" => function ($el, $spacesAmount, $renderFunc) {
["children" => $children, "key" => $key] = $el;
Method getRenderMethod
has 27 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function getRenderMethod($elementType)
{
$typeMethods = [
"nested" => function ($el, $path, $renderFunc) {
["children" => $children, "key" => $key] = $el;
Avoid too many return
statements within this method. Open
Open
return $typeMethods[$elementType];
Avoid too many return
statements within this method. Open
Open
return "Property '$propertyPath' was changed. From '$oldPropertyValue' to '$newPropertyValue'";
Avoid too many return
statements within this method. Open
Open
return $typeMethods[$elementType];
Avoid too many return
statements within this method. Open
Open
return ["$spaces+ $key: $stringNewValue", "$spaces- $key: $stringOldValue"];