for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace Fi\CoreBundle\Utils;
class GrigliaExtraFunzioniUtils
{
public static function getColonneLink($paricevuti, &$modellocolonne)
$output = GrigliaParametriUtils::getOuputType($paricevuti);
This check looks for multiple assignments in successive lines of code. It will report an issue if the operators are not in a straight line.
To visualize
$a = "a"; $ab = "ab"; $abc = "abc";
will produce issues in the first and second line, while this second example
will produce no issues.
$colonne_link = isset($paricevuti['colonne_link']) ? $paricevuti['colonne_link'] : array();
if (($output == 'stampa') || !isset($colonne_link)) {
return;
}
foreach ($colonne_link as $colonna_link) {
foreach ($colonna_link as $nomecolonna => $parametricolonna) {
foreach ($modellocolonne as $key => $value) {
foreach ($value as $keyv => $valuev) {
if (($keyv == 'name') && ($valuev == $nomecolonna)) {
$modellocolonne[$key]['formatter'] = 'showlink';
$modellocolonne[$key]['formatoptions'] = $parametricolonna;
This check looks for multiple assignments in successive lines of code. It will report an issue if the operators are not in a straight line.
To visualize
will produce issues in the first and second line, while this second example
will produce no issues.