Oouhuou - je suis une référence
01-cyclomatic-complexity
L'analyse statique est un examen automatisé du code sans exécution visant à détecter des erreurs potentielles et à évaluer la qualité.
vanity
01-nombre-de-lignes.md
find . -name "*.php" -print0 | xargs -0 cat | wc -lfind . -name "*.php" -print0 | xargs -0 cat | wc -l01-nombre-de-lignes.md
du -h . | sort -rh | head -1501-nombre-de-lignes.md
du -h . | sort -rh | head -1501-nombre-de-lignes.md
public function getTitle(Html $html): string
{
/**
* I dont care, i just want to silence warnings
*/
@$this->domDocument->loadHTML($html);
$elements = $this->domDocument->getElementsByTagName('title');
$title = $elements[0]->nodeValue;
return $title ?? 'undefined';
}
public function getTitle(Html $html): string
{
/**
* I dont care, i just want to silence warnings
*/
@$this->domDocument->loadHTML($html);
$elements = $this->domDocument->getElementsByTagName('title');
$title = $elements[0]->nodeValue;
return $title ?? 'undefined';
}
02-répartition-du-code.md
wget https://phar.phpunit.de/phploc.phar
php phploc.phar --versionphp phploc.phar . | grep "Size" -A402-répartition-du-code.md
01-volume
01-volume
Le niveau zéro mais néanmoins utile de l’analyse statique
02-phploc
wget https://phar.phpunit.de/phploc.phar
php phploc.phar --versionphp phploc.phar app | grep "Cyclomatic Complexity" -A501-cyclomatic-complexity