Last active
August 29, 2015 13:56
-
-
Save gsherwood/9125496 to your computer and use it in GitHub Desktop.
Comparison of coding standards across some well known PHP projects
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"Arrays":{ | |
"Array keyword case":{ | |
"sniffs":{ | |
"0":"Squiz.Arrays.ArrayDeclaration" | |
}, | |
"total":94079, | |
"values":{ | |
"lower":94077, | |
"upper":2 | |
}, | |
"repos":{ | |
"lower":{ | |
"0":"squizlabs/PHP_CodeSniffer", | |
"1":"sebastianbergmann/phpunit", | |
"2":"sebastianbergmann/php-code-coverage", | |
"3":"symfony/symfony", | |
"4":"laravel/framework", | |
"5":"yiisoft/yii2", | |
"6":"guzzle/guzzle", | |
"7":"fabpot/Twig", | |
"8":"EllisLab/CodeIgniter", | |
"9":"piwik/piwik", | |
"10":"codeguy/Slim", | |
"11":"PHPMailer/PHPMailer", | |
"12":"padraic/mockery", | |
"13":"joomla/joomla-cms", | |
"14":"composer/composer", | |
"15":"cakephp/cakephp", | |
"16":"google/google-api-php-client", | |
"17":"Seldaek/monolog", | |
"18":"swiftmailer/swiftmailer", | |
"19":"doctrine/doctrine2", | |
"20":"zendframework/zf2", | |
"21":"pyrocms/pyrocms", | |
"22":"WordPress/WordPress", | |
"23":"drupal/drupal" | |
} | |
} | |
} | |
}, | |
"Classes":{ | |
"CamelCase class name":{ | |
"sniffs":{ | |
"0":"Squiz.Classes.ValidClassName" | |
}, | |
"total":15208, | |
"values":{ | |
"yes":11473, | |
"no":3735 | |
}, | |
"repos":{ | |
"no":{ | |
"0":"squizlabs/PHP_CodeSniffer", | |
"1":"sebastianbergmann/phpunit", | |
"2":"sebastianbergmann/php-code-coverage", | |
"3":"fabpot/Twig", | |
"4":"EllisLab/CodeIgniter", | |
"5":"google/google-api-php-client", | |
"6":"swiftmailer/swiftmailer", | |
"7":"pyrocms/pyrocms", | |
"8":"WordPress/WordPress" | |
}, | |
"yes":{ | |
"0":"symfony/symfony", | |
"1":"laravel/framework", | |
"2":"yiisoft/yii2", | |
"3":"guzzle/guzzle", | |
"4":"piwik/piwik", | |
"5":"codeguy/Slim", | |
"6":"PHPMailer/PHPMailer", | |
"7":"padraic/mockery", | |
"8":"joomla/joomla-cms", | |
"9":"composer/composer", | |
"10":"cakephp/cakephp", | |
"11":"Seldaek/monolog", | |
"12":"doctrine/doctrine2", | |
"13":"zendframework/zf2", | |
"14":"drupal/drupal" | |
} | |
} | |
}, | |
"One class per file":{ | |
"sniffs":{ | |
"0":"PSR1.Classes.ClassDeclaration" | |
}, | |
"total":15208, | |
"values":{ | |
"yes":12845, | |
"no":2363 | |
}, | |
"repos":{ | |
"yes":{ | |
"0":"squizlabs/PHP_CodeSniffer", | |
"1":"sebastianbergmann/phpunit", | |
"2":"sebastianbergmann/php-code-coverage", | |
"3":"symfony/symfony", | |
"4":"laravel/framework", | |
"5":"yiisoft/yii2", | |
"6":"guzzle/guzzle", | |
"7":"fabpot/Twig", | |
"8":"EllisLab/CodeIgniter", | |
"9":"piwik/piwik", | |
"10":"codeguy/Slim", | |
"11":"PHPMailer/PHPMailer", | |
"12":"padraic/mockery", | |
"13":"joomla/joomla-cms", | |
"14":"composer/composer", | |
"15":"cakephp/cakephp", | |
"16":"Seldaek/monolog", | |
"17":"swiftmailer/swiftmailer", | |
"18":"doctrine/doctrine2", | |
"19":"zendframework/zf2", | |
"20":"pyrocms/pyrocms", | |
"21":"WordPress/WordPress", | |
"22":"drupal/drupal" | |
}, | |
"no":{ | |
"0":"google/google-api-php-client" | |
} | |
} | |
}, | |
"Class defined in namespace":{ | |
"sniffs":{ | |
"0":"PSR1.Classes.ClassDeclaration" | |
}, | |
"total":15208, | |
"values":{ | |
"yes":9037, | |
"no":6171 | |
}, | |
"repos":{ | |
"no":{ | |
"0":"squizlabs/PHP_CodeSniffer", | |
"1":"sebastianbergmann/phpunit", | |
"2":"sebastianbergmann/php-code-coverage", | |
"3":"fabpot/Twig", | |
"4":"EllisLab/CodeIgniter", | |
"5":"PHPMailer/PHPMailer", | |
"6":"joomla/joomla-cms", | |
"7":"cakephp/cakephp", | |
"8":"google/google-api-php-client", | |
"9":"swiftmailer/swiftmailer", | |
"10":"pyrocms/pyrocms", | |
"11":"WordPress/WordPress" | |
}, | |
"yes":{ | |
"0":"symfony/symfony", | |
"1":"laravel/framework", | |
"2":"yiisoft/yii2", | |
"3":"guzzle/guzzle", | |
"4":"piwik/piwik", | |
"5":"codeguy/Slim", | |
"6":"padraic/mockery", | |
"7":"composer/composer", | |
"8":"Seldaek/monolog", | |
"9":"doctrine/doctrine2", | |
"10":"zendframework/zf2", | |
"11":"drupal/drupal" | |
} | |
} | |
} | |
}, | |
"ControlStructures":{ | |
"Control structure defined inline":{ | |
"sniffs":{ | |
"0":"Generic.ControlStructures.InlineControlStructure" | |
}, | |
"total":137884, | |
"values":{ | |
"no":127968, | |
"yes":9916 | |
}, | |
"repos":{ | |
"no":{ | |
"0":"squizlabs/PHP_CodeSniffer", | |
"1":"sebastianbergmann/phpunit", | |
"2":"sebastianbergmann/php-code-coverage", | |
"3":"symfony/symfony", | |
"4":"laravel/framework", | |
"5":"yiisoft/yii2", | |
"6":"guzzle/guzzle", | |
"7":"fabpot/Twig", | |
"8":"EllisLab/CodeIgniter", | |
"9":"piwik/piwik", | |
"10":"codeguy/Slim", | |
"11":"PHPMailer/PHPMailer", | |
"12":"padraic/mockery", | |
"13":"joomla/joomla-cms", | |
"14":"composer/composer", | |
"15":"cakephp/cakephp", | |
"16":"google/google-api-php-client", | |
"17":"Seldaek/monolog", | |
"18":"swiftmailer/swiftmailer", | |
"19":"doctrine/doctrine2", | |
"20":"zendframework/zf2", | |
"21":"pyrocms/pyrocms", | |
"22":"WordPress/WordPress", | |
"23":"drupal/drupal" | |
} | |
} | |
}, | |
"Use of ELSE IF or ELSEIF":{ | |
"sniffs":{ | |
"0":"PSR2.ControlStructures.ElseIfDeclaration" | |
}, | |
"total":7381, | |
"values":{ | |
"elseif":6623, | |
"else if":758 | |
}, | |
"repos":{ | |
"else if":{ | |
"0":"squizlabs/PHP_CodeSniffer", | |
"1":"piwik/piwik", | |
"2":"google/google-api-php-client", | |
"3":"doctrine/doctrine2" | |
}, | |
"elseif":{ | |
"0":"sebastianbergmann/phpunit", | |
"1":"sebastianbergmann/php-code-coverage", | |
"2":"symfony/symfony", | |
"3":"laravel/framework", | |
"4":"yiisoft/yii2", | |
"5":"guzzle/guzzle", | |
"6":"fabpot/Twig", | |
"7":"EllisLab/CodeIgniter", | |
"8":"codeguy/Slim", | |
"9":"PHPMailer/PHPMailer", | |
"10":"padraic/mockery", | |
"11":"joomla/joomla-cms", | |
"12":"composer/composer", | |
"13":"cakephp/cakephp", | |
"14":"Seldaek/monolog", | |
"15":"swiftmailer/swiftmailer", | |
"16":"zendframework/zf2", | |
"17":"pyrocms/pyrocms", | |
"18":"WordPress/WordPress", | |
"19":"drupal/drupal" | |
} | |
} | |
} | |
}, | |
"Files":{ | |
"Line length":{ | |
"sniffs":{ | |
"0":"Generic.Files.LineLength" | |
}, | |
"total":2708797, | |
"values":{ | |
"< 80":2541296, | |
"81-120":137209, | |
"121-150":18878, | |
"> 150":11414 | |
}, | |
"repos":{ | |
"< 80":{ | |
"0":"squizlabs/PHP_CodeSniffer", | |
"1":"sebastianbergmann/phpunit", | |
"2":"sebastianbergmann/php-code-coverage", | |
"3":"symfony/symfony", | |
"4":"laravel/framework", | |
"5":"yiisoft/yii2", | |
"6":"guzzle/guzzle", | |
"7":"fabpot/Twig", | |
"8":"EllisLab/CodeIgniter", | |
"9":"piwik/piwik", | |
"10":"codeguy/Slim", | |
"11":"PHPMailer/PHPMailer", | |
"12":"padraic/mockery", | |
"13":"joomla/joomla-cms", | |
"14":"composer/composer", | |
"15":"cakephp/cakephp", | |
"16":"google/google-api-php-client", | |
"17":"Seldaek/monolog", | |
"18":"swiftmailer/swiftmailer", | |
"19":"doctrine/doctrine2", | |
"20":"zendframework/zf2", | |
"21":"pyrocms/pyrocms", | |
"22":"WordPress/WordPress", | |
"23":"drupal/drupal" | |
} | |
} | |
}, | |
"EOL char":{ | |
"sniffs":{ | |
"0":"Generic.Files.LineEndings" | |
}, | |
"total":16956, | |
"values":{ | |
"\n":16774, | |
"\r\n":182 | |
}, | |
"repos":{ | |
"\n":{ | |
"0":"squizlabs/PHP_CodeSniffer", | |
"1":"sebastianbergmann/phpunit", | |
"2":"sebastianbergmann/php-code-coverage", | |
"3":"symfony/symfony", | |
"4":"laravel/framework", | |
"5":"yiisoft/yii2", | |
"6":"guzzle/guzzle", | |
"7":"fabpot/Twig", | |
"8":"EllisLab/CodeIgniter", | |
"9":"piwik/piwik", | |
"10":"codeguy/Slim", | |
"11":"PHPMailer/PHPMailer", | |
"12":"padraic/mockery", | |
"13":"joomla/joomla-cms", | |
"14":"composer/composer", | |
"15":"cakephp/cakephp", | |
"16":"google/google-api-php-client", | |
"17":"Seldaek/monolog", | |
"18":"swiftmailer/swiftmailer", | |
"19":"doctrine/doctrine2", | |
"20":"zendframework/zf2", | |
"21":"pyrocms/pyrocms", | |
"22":"WordPress/WordPress", | |
"23":"drupal/drupal" | |
} | |
} | |
}, | |
"Blank lines at EOF":{ | |
"sniffs":{ | |
"0":"PSR2.Files.EndFileNewline" | |
}, | |
"total":14962, | |
"values":{ | |
"1":14835, | |
"2":120, | |
"3":5, | |
"4":2 | |
}, | |
"repos":{ | |
"1":{ | |
"0":"squizlabs/PHP_CodeSniffer", | |
"1":"sebastianbergmann/phpunit", | |
"2":"sebastianbergmann/php-code-coverage", | |
"3":"symfony/symfony", | |
"4":"laravel/framework", | |
"5":"yiisoft/yii2", | |
"6":"guzzle/guzzle", | |
"7":"fabpot/Twig", | |
"8":"piwik/piwik", | |
"9":"codeguy/Slim", | |
"10":"PHPMailer/PHPMailer", | |
"11":"padraic/mockery", | |
"12":"joomla/joomla-cms", | |
"13":"composer/composer", | |
"14":"cakephp/cakephp", | |
"15":"google/google-api-php-client", | |
"16":"Seldaek/monolog", | |
"17":"swiftmailer/swiftmailer", | |
"18":"doctrine/doctrine2", | |
"19":"zendframework/zf2", | |
"20":"pyrocms/pyrocms", | |
"21":"WordPress/WordPress", | |
"22":"drupal/drupal" | |
} | |
} | |
}, | |
"Number of newlines at EOF":{ | |
"sniffs":{ | |
"0":"PSR2.Files.EndFileNewline" | |
}, | |
"total":15810, | |
"values":{ | |
"1":14835, | |
"0":848, | |
"2":120, | |
"3":5, | |
"4":2 | |
}, | |
"repos":{ | |
"1":{ | |
"0":"squizlabs/PHP_CodeSniffer", | |
"1":"sebastianbergmann/phpunit", | |
"2":"sebastianbergmann/php-code-coverage", | |
"3":"symfony/symfony", | |
"4":"yiisoft/yii2", | |
"5":"guzzle/guzzle", | |
"6":"fabpot/Twig", | |
"7":"piwik/piwik", | |
"8":"codeguy/Slim", | |
"9":"PHPMailer/PHPMailer", | |
"10":"padraic/mockery", | |
"11":"joomla/joomla-cms", | |
"12":"composer/composer", | |
"13":"cakephp/cakephp", | |
"14":"google/google-api-php-client", | |
"15":"Seldaek/monolog", | |
"16":"swiftmailer/swiftmailer", | |
"17":"doctrine/doctrine2", | |
"18":"zendframework/zf2", | |
"19":"pyrocms/pyrocms", | |
"20":"WordPress/WordPress", | |
"21":"drupal/drupal" | |
}, | |
"0":{ | |
"0":"laravel/framework", | |
"1":"EllisLab/CodeIgniter" | |
} | |
} | |
}, | |
"PHP closing tag at EOF":{ | |
"sniffs":{ | |
"0":"Zend.Files.ClosingTag" | |
}, | |
"total":16956, | |
"values":{ | |
"no":15674, | |
"yes":1282 | |
}, | |
"repos":{ | |
"yes":{ | |
"0":"squizlabs/PHP_CodeSniffer" | |
}, | |
"no":{ | |
"0":"sebastianbergmann/phpunit", | |
"1":"sebastianbergmann/php-code-coverage", | |
"2":"symfony/symfony", | |
"3":"laravel/framework", | |
"4":"yiisoft/yii2", | |
"5":"guzzle/guzzle", | |
"6":"fabpot/Twig", | |
"7":"EllisLab/CodeIgniter", | |
"8":"piwik/piwik", | |
"9":"codeguy/Slim", | |
"10":"PHPMailer/PHPMailer", | |
"11":"padraic/mockery", | |
"12":"joomla/joomla-cms", | |
"13":"composer/composer", | |
"14":"cakephp/cakephp", | |
"15":"google/google-api-php-client", | |
"16":"Seldaek/monolog", | |
"17":"swiftmailer/swiftmailer", | |
"18":"doctrine/doctrine2", | |
"19":"zendframework/zf2", | |
"20":"pyrocms/pyrocms", | |
"21":"WordPress/WordPress", | |
"22":"drupal/drupal" | |
} | |
} | |
}, | |
"Declarations and side effects mixed":{ | |
"sniffs":{ | |
"0":"PSR1.Files.SideEffects" | |
}, | |
"total":16956, | |
"values":{ | |
"no":14474, | |
"yes":2482 | |
}, | |
"repos":{ | |
"no":{ | |
"0":"squizlabs/PHP_CodeSniffer", | |
"1":"sebastianbergmann/phpunit", | |
"2":"sebastianbergmann/php-code-coverage", | |
"3":"symfony/symfony", | |
"4":"laravel/framework", | |
"5":"yiisoft/yii2", | |
"6":"guzzle/guzzle", | |
"7":"fabpot/Twig", | |
"8":"piwik/piwik", | |
"9":"codeguy/Slim", | |
"10":"PHPMailer/PHPMailer", | |
"11":"padraic/mockery", | |
"12":"composer/composer", | |
"13":"google/google-api-php-client", | |
"14":"Seldaek/monolog", | |
"15":"swiftmailer/swiftmailer", | |
"16":"doctrine/doctrine2", | |
"17":"zendframework/zf2", | |
"18":"pyrocms/pyrocms", | |
"19":"WordPress/WordPress", | |
"20":"drupal/drupal" | |
}, | |
"yes":{ | |
"0":"EllisLab/CodeIgniter", | |
"1":"joomla/joomla-cms", | |
"2":"cakephp/cakephp" | |
} | |
} | |
}, | |
"Newline at EOF":{ | |
"sniffs":{ | |
"0":"Generic.Files.EndFileNewline" | |
}, | |
"total":16956, | |
"values":{ | |
"yes":15930, | |
"no":1026 | |
}, | |
"repos":{ | |
"yes":{ | |
"0":"squizlabs/PHP_CodeSniffer", | |
"1":"sebastianbergmann/phpunit", | |
"2":"sebastianbergmann/php-code-coverage", | |
"3":"symfony/symfony", | |
"4":"yiisoft/yii2", | |
"5":"guzzle/guzzle", | |
"6":"fabpot/Twig", | |
"7":"piwik/piwik", | |
"8":"codeguy/Slim", | |
"9":"PHPMailer/PHPMailer", | |
"10":"padraic/mockery", | |
"11":"joomla/joomla-cms", | |
"12":"composer/composer", | |
"13":"cakephp/cakephp", | |
"14":"google/google-api-php-client", | |
"15":"Seldaek/monolog", | |
"16":"swiftmailer/swiftmailer", | |
"17":"doctrine/doctrine2", | |
"18":"zendframework/zf2", | |
"19":"pyrocms/pyrocms", | |
"20":"WordPress/WordPress", | |
"21":"drupal/drupal" | |
}, | |
"no":{ | |
"0":"laravel/framework", | |
"1":"EllisLab/CodeIgniter" | |
} | |
} | |
}, | |
"Lowercase filename":{ | |
"sniffs":{ | |
"0":"Generic.Files.LowercasedFilename" | |
}, | |
"total":16956, | |
"values":{ | |
"no":11382, | |
"yes":5574 | |
}, | |
"repos":{ | |
"no":{ | |
"0":"squizlabs/PHP_CodeSniffer", | |
"1":"sebastianbergmann/phpunit", | |
"2":"sebastianbergmann/php-code-coverage", | |
"3":"symfony/symfony", | |
"4":"laravel/framework", | |
"5":"yiisoft/yii2", | |
"6":"guzzle/guzzle", | |
"7":"fabpot/Twig", | |
"8":"piwik/piwik", | |
"9":"codeguy/Slim", | |
"10":"padraic/mockery", | |
"11":"composer/composer", | |
"12":"cakephp/cakephp", | |
"13":"google/google-api-php-client", | |
"14":"Seldaek/monolog", | |
"15":"swiftmailer/swiftmailer", | |
"16":"doctrine/doctrine2", | |
"17":"zendframework/zf2", | |
"18":"drupal/drupal" | |
}, | |
"yes":{ | |
"0":"EllisLab/CodeIgniter", | |
"1":"PHPMailer/PHPMailer", | |
"2":"joomla/joomla-cms", | |
"3":"pyrocms/pyrocms", | |
"4":"WordPress/WordPress" | |
} | |
} | |
}, | |
"Using byte order mark":{ | |
"sniffs":{ | |
"0":"Generic.Files.ByteOrderMark" | |
}, | |
"total":170, | |
"values":{ | |
"no":169, | |
"yes":1 | |
}, | |
"repos":{ | |
"no":{ | |
"0":"sebastianbergmann/phpunit", | |
"1":"symfony/symfony", | |
"2":"yiisoft/yii2", | |
"3":"piwik/piwik", | |
"4":"PHPMailer/PHPMailer", | |
"5":"joomla/joomla-cms", | |
"6":"cakephp/cakephp", | |
"7":"swiftmailer/swiftmailer", | |
"8":"pyrocms/pyrocms", | |
"9":"drupal/drupal" | |
} | |
} | |
} | |
}, | |
"Formatting":{ | |
"Spacing after cast statement":{ | |
"sniffs":{ | |
"0":"Generic.Formatting.SpaceAfterCast" | |
}, | |
"total":9177, | |
"values":{ | |
"1":8049, | |
"0":1126, | |
"2":2 | |
}, | |
"repos":{ | |
"1":{ | |
"0":"squizlabs/PHP_CodeSniffer", | |
"1":"sebastianbergmann/phpunit", | |
"2":"sebastianbergmann/php-code-coverage", | |
"3":"symfony/symfony", | |
"4":"laravel/framework", | |
"5":"guzzle/guzzle", | |
"6":"fabpot/Twig", | |
"7":"EllisLab/CodeIgniter", | |
"8":"codeguy/Slim", | |
"9":"padraic/mockery", | |
"10":"joomla/joomla-cms", | |
"11":"composer/composer", | |
"12":"google/google-api-php-client", | |
"13":"Seldaek/monolog", | |
"14":"swiftmailer/swiftmailer", | |
"15":"doctrine/doctrine2", | |
"16":"zendframework/zf2", | |
"17":"pyrocms/pyrocms", | |
"18":"WordPress/WordPress", | |
"19":"drupal/drupal" | |
}, | |
"0":{ | |
"0":"yiisoft/yii2", | |
"1":"piwik/piwik", | |
"2":"PHPMailer/PHPMailer", | |
"3":"cakephp/cakephp" | |
} | |
} | |
} | |
}, | |
"Functions":{ | |
"Function openning brace placement":{ | |
"sniffs":{ | |
"0":"Generic.Functions.OpeningFunctionBraceBsdAllman", | |
"1":"Generic.Functions.OpeningFunctionBraceKernighanRitchie", | |
"2":"PEAR.Functions.FunctionDeclaration", | |
"3":"Squiz.Functions.MultiLineFunctionDeclaration" | |
}, | |
"total":93699, | |
"values":{ | |
"new line":70827, | |
"same line":22872 | |
}, | |
"repos":{ | |
"new line":{ | |
"0":"squizlabs/PHP_CodeSniffer", | |
"1":"sebastianbergmann/phpunit", | |
"2":"sebastianbergmann/php-code-coverage", | |
"3":"symfony/symfony", | |
"4":"laravel/framework", | |
"5":"yiisoft/yii2", | |
"6":"guzzle/guzzle", | |
"7":"fabpot/Twig", | |
"8":"EllisLab/CodeIgniter", | |
"9":"piwik/piwik", | |
"10":"codeguy/Slim", | |
"11":"PHPMailer/PHPMailer", | |
"12":"padraic/mockery", | |
"13":"joomla/joomla-cms", | |
"14":"composer/composer", | |
"15":"google/google-api-php-client", | |
"16":"Seldaek/monolog", | |
"17":"swiftmailer/swiftmailer", | |
"18":"doctrine/doctrine2", | |
"19":"zendframework/zf2", | |
"20":"pyrocms/pyrocms" | |
}, | |
"same line":{ | |
"0":"cakephp/cakephp", | |
"1":"WordPress/WordPress", | |
"2":"drupal/drupal" | |
} | |
} | |
} | |
}, | |
"Methods":{ | |
"CamelCase method name":{ | |
"sniffs":{ | |
"0":"Generic.NamingConventions.CamelCapsFunctionName", | |
"1":"PSR1.Methods.CamelCapsMethodName" | |
}, | |
"total":95885, | |
"values":{ | |
"yes":89511, | |
"no":6374 | |
}, | |
"repos":{ | |
"yes":{ | |
"0":"squizlabs/PHP_CodeSniffer", | |
"1":"sebastianbergmann/phpunit", | |
"2":"sebastianbergmann/php-code-coverage", | |
"3":"symfony/symfony", | |
"4":"laravel/framework", | |
"5":"yiisoft/yii2", | |
"6":"guzzle/guzzle", | |
"7":"fabpot/Twig", | |
"8":"piwik/piwik", | |
"9":"codeguy/Slim", | |
"10":"PHPMailer/PHPMailer", | |
"11":"padraic/mockery", | |
"12":"joomla/joomla-cms", | |
"13":"composer/composer", | |
"14":"cakephp/cakephp", | |
"15":"google/google-api-php-client", | |
"16":"Seldaek/monolog", | |
"17":"swiftmailer/swiftmailer", | |
"18":"doctrine/doctrine2", | |
"19":"zendframework/zf2", | |
"20":"pyrocms/pyrocms", | |
"21":"drupal/drupal" | |
}, | |
"no":{ | |
"0":"EllisLab/CodeIgniter", | |
"1":"WordPress/WordPress" | |
} | |
} | |
} | |
}, | |
"NamingConventions":{ | |
"Constant name case":{ | |
"sniffs":{ | |
"0":"Generic.NamingConventions.UpperCaseConstantName" | |
}, | |
"total":5151, | |
"values":{ | |
"upper":5128, | |
"mixed":20, | |
"lower":3 | |
}, | |
"repos":{ | |
"upper":{ | |
"0":"squizlabs/PHP_CodeSniffer", | |
"1":"sebastianbergmann/phpunit", | |
"2":"symfony/symfony", | |
"3":"laravel/framework", | |
"4":"yiisoft/yii2", | |
"5":"guzzle/guzzle", | |
"6":"fabpot/Twig", | |
"7":"EllisLab/CodeIgniter", | |
"8":"piwik/piwik", | |
"9":"codeguy/Slim", | |
"10":"PHPMailer/PHPMailer", | |
"11":"padraic/mockery", | |
"12":"joomla/joomla-cms", | |
"13":"composer/composer", | |
"14":"cakephp/cakephp", | |
"15":"google/google-api-php-client", | |
"16":"Seldaek/monolog", | |
"17":"swiftmailer/swiftmailer", | |
"18":"doctrine/doctrine2", | |
"19":"zendframework/zf2", | |
"20":"pyrocms/pyrocms", | |
"21":"WordPress/WordPress", | |
"22":"drupal/drupal" | |
} | |
} | |
}, | |
"CamelCase method name":{ | |
"sniffs":{ | |
"0":"Generic.NamingConventions.CamelCapsFunctionName", | |
"7":"PSR1.Methods.CamelCapsMethodName" | |
}, | |
"total":614, | |
"values":{ | |
"yes":580, | |
"no":34 | |
}, | |
"repos":{ | |
"yes":{ | |
"0":"sebastianbergmann/phpunit", | |
"1":"symfony/symfony", | |
"2":"laravel/framework", | |
"3":"EllisLab/CodeIgniter", | |
"4":"piwik/piwik", | |
"5":"PHPMailer/PHPMailer", | |
"6":"joomla/joomla-cms", | |
"7":"composer/composer", | |
"8":"cakephp/cakephp", | |
"9":"swiftmailer/swiftmailer", | |
"10":"pyrocms/pyrocms", | |
"11":"WordPress/WordPress", | |
"12":"drupal/drupal" | |
} | |
} | |
}, | |
"CamelCase function name":{ | |
"sniffs":{ | |
"0":"Generic.NamingConventions.CamelCapsFunctionName" | |
}, | |
"total":4443, | |
"values":{ | |
"no":4443 | |
}, | |
"repos":{ | |
"no":{ | |
"0":"sebastianbergmann/phpunit", | |
"1":"symfony/symfony", | |
"2":"laravel/framework", | |
"3":"fabpot/Twig", | |
"4":"EllisLab/CodeIgniter", | |
"5":"piwik/piwik", | |
"6":"PHPMailer/PHPMailer", | |
"7":"joomla/joomla-cms", | |
"8":"cakephp/cakephp", | |
"9":"swiftmailer/swiftmailer", | |
"10":"pyrocms/pyrocms", | |
"11":"WordPress/WordPress", | |
"12":"drupal/drupal" | |
} | |
} | |
} | |
}, | |
"PHP":{ | |
"PHP short open tag used":{ | |
"sniffs":{ | |
"0":"Generic.PHP.DisallowShortOpenTag" | |
}, | |
"total":41931, | |
"values":{ | |
"no":41931 | |
}, | |
"repos":{ | |
"no":{ | |
"0":"squizlabs/PHP_CodeSniffer", | |
"1":"sebastianbergmann/phpunit", | |
"2":"sebastianbergmann/php-code-coverage", | |
"3":"symfony/symfony", | |
"4":"laravel/framework", | |
"5":"yiisoft/yii2", | |
"6":"guzzle/guzzle", | |
"7":"fabpot/Twig", | |
"8":"EllisLab/CodeIgniter", | |
"9":"piwik/piwik", | |
"10":"codeguy/Slim", | |
"11":"PHPMailer/PHPMailer", | |
"12":"padraic/mockery", | |
"13":"joomla/joomla-cms", | |
"14":"composer/composer", | |
"15":"cakephp/cakephp", | |
"16":"google/google-api-php-client", | |
"17":"Seldaek/monolog", | |
"18":"swiftmailer/swiftmailer", | |
"19":"doctrine/doctrine2", | |
"20":"zendframework/zf2", | |
"21":"pyrocms/pyrocms", | |
"22":"WordPress/WordPress", | |
"23":"drupal/drupal" | |
} | |
} | |
}, | |
"PHP keyword case":{ | |
"sniffs":{ | |
"0":"Generic.PHP.LowerCaseKeyword" | |
}, | |
"total":771905, | |
"values":{ | |
"lower":770280, | |
"upper":1578, | |
"mixed":47 | |
}, | |
"repos":{ | |
"lower":{ | |
"0":"squizlabs/PHP_CodeSniffer", | |
"1":"sebastianbergmann/phpunit", | |
"2":"sebastianbergmann/php-code-coverage", | |
"3":"symfony/symfony", | |
"4":"laravel/framework", | |
"5":"yiisoft/yii2", | |
"6":"guzzle/guzzle", | |
"7":"fabpot/Twig", | |
"8":"EllisLab/CodeIgniter", | |
"9":"piwik/piwik", | |
"10":"codeguy/Slim", | |
"11":"PHPMailer/PHPMailer", | |
"12":"padraic/mockery", | |
"13":"joomla/joomla-cms", | |
"14":"composer/composer", | |
"15":"cakephp/cakephp", | |
"16":"google/google-api-php-client", | |
"17":"Seldaek/monolog", | |
"18":"swiftmailer/swiftmailer", | |
"19":"doctrine/doctrine2", | |
"20":"zendframework/zf2", | |
"21":"pyrocms/pyrocms", | |
"22":"WordPress/WordPress", | |
"23":"drupal/drupal" | |
} | |
} | |
}, | |
"PHP constant case":{ | |
"sniffs":{ | |
"0":"Generic.PHP.LowerCaseConstant", | |
"1":"Generic.PHP.UpperCaseConstant", | |
"2":"Squiz.NamingConventions.ConstantCase" | |
}, | |
"total":90163, | |
"values":{ | |
"lower":74383, | |
"upper":15780 | |
}, | |
"repos":{ | |
"lower":{ | |
"0":"squizlabs/PHP_CodeSniffer", | |
"1":"sebastianbergmann/phpunit", | |
"2":"sebastianbergmann/php-code-coverage", | |
"3":"symfony/symfony", | |
"4":"laravel/framework", | |
"5":"yiisoft/yii2", | |
"6":"guzzle/guzzle", | |
"7":"fabpot/Twig", | |
"8":"piwik/piwik", | |
"9":"codeguy/Slim", | |
"10":"PHPMailer/PHPMailer", | |
"11":"padraic/mockery", | |
"12":"joomla/joomla-cms", | |
"13":"composer/composer", | |
"14":"cakephp/cakephp", | |
"15":"google/google-api-php-client", | |
"16":"Seldaek/monolog", | |
"17":"swiftmailer/swiftmailer", | |
"18":"doctrine/doctrine2", | |
"19":"zendframework/zf2", | |
"20":"pyrocms/pyrocms", | |
"21":"WordPress/WordPress" | |
}, | |
"upper":{ | |
"0":"EllisLab/CodeIgniter", | |
"1":"drupal/drupal" | |
} | |
} | |
} | |
}, | |
"Strings":{ | |
"Spacing before string concat":{ | |
"sniffs":{ | |
"0":"Squiz.Strings.ConcatenationSpacing" | |
}, | |
"total":82401, | |
"values":{ | |
"1":62752, | |
"0":16898, | |
"newline":2710, | |
"2":26, | |
"3":4, | |
"4":3, | |
"9":3, | |
"6":2, | |
"5":1, | |
"7":1, | |
"11":1 | |
}, | |
"repos":{ | |
"0":{ | |
"0":"squizlabs/PHP_CodeSniffer", | |
"1":"symfony/symfony", | |
"2":"laravel/framework", | |
"3":"fabpot/Twig", | |
"4":"EllisLab/CodeIgniter", | |
"5":"composer/composer", | |
"6":"Seldaek/monolog", | |
"7":"pyrocms/pyrocms" | |
}, | |
"1":{ | |
"0":"sebastianbergmann/phpunit", | |
"1":"sebastianbergmann/php-code-coverage", | |
"2":"yiisoft/yii2", | |
"3":"guzzle/guzzle", | |
"4":"piwik/piwik", | |
"5":"codeguy/Slim", | |
"6":"PHPMailer/PHPMailer", | |
"7":"padraic/mockery", | |
"8":"joomla/joomla-cms", | |
"9":"cakephp/cakephp", | |
"10":"google/google-api-php-client", | |
"11":"swiftmailer/swiftmailer", | |
"12":"doctrine/doctrine2", | |
"13":"zendframework/zf2", | |
"14":"WordPress/WordPress", | |
"15":"drupal/drupal" | |
} | |
} | |
}, | |
"Spacing after string concat":{ | |
"sniffs":{ | |
"0":"Squiz.Strings.ConcatenationSpacing" | |
}, | |
"total":82401, | |
"values":{ | |
"1":57492, | |
"0":17092, | |
"newline":7668, | |
"2":46, | |
"5":22, | |
"11":12, | |
"8":11, | |
"9":11, | |
"26":7, | |
"13":7, | |
"4":5, | |
"12":5, | |
"15":5, | |
"7":4, | |
"10":4, | |
"17":4, | |
"14":3, | |
"3":2, | |
"16":1 | |
}, | |
"repos":{ | |
"0":{ | |
"0":"squizlabs/PHP_CodeSniffer", | |
"1":"symfony/symfony", | |
"2":"laravel/framework", | |
"3":"fabpot/Twig", | |
"4":"EllisLab/CodeIgniter", | |
"5":"composer/composer", | |
"6":"Seldaek/monolog", | |
"7":"pyrocms/pyrocms" | |
}, | |
"1":{ | |
"0":"sebastianbergmann/phpunit", | |
"1":"sebastianbergmann/php-code-coverage", | |
"2":"yiisoft/yii2", | |
"3":"guzzle/guzzle", | |
"4":"piwik/piwik", | |
"5":"codeguy/Slim", | |
"6":"PHPMailer/PHPMailer", | |
"7":"padraic/mockery", | |
"8":"joomla/joomla-cms", | |
"9":"cakephp/cakephp", | |
"10":"google/google-api-php-client", | |
"11":"swiftmailer/swiftmailer", | |
"12":"doctrine/doctrine2", | |
"13":"WordPress/WordPress", | |
"14":"drupal/drupal" | |
}, | |
"newline":{ | |
"0":"zendframework/zf2" | |
} | |
} | |
}, | |
"Brackets around echoed strings":{ | |
"sniffs":{ | |
"0":"Squiz.Strings.EchoedStrings" | |
}, | |
"total":15691, | |
"values":{ | |
"no":15635, | |
"yes":56 | |
}, | |
"repos":{ | |
"no":{ | |
"0":"squizlabs/PHP_CodeSniffer", | |
"1":"symfony/symfony", | |
"2":"laravel/framework", | |
"3":"yiisoft/yii2", | |
"4":"fabpot/Twig", | |
"5":"EllisLab/CodeIgniter", | |
"6":"piwik/piwik", | |
"7":"codeguy/Slim", | |
"8":"PHPMailer/PHPMailer", | |
"9":"joomla/joomla-cms", | |
"10":"composer/composer", | |
"11":"cakephp/cakephp", | |
"12":"swiftmailer/swiftmailer", | |
"13":"doctrine/doctrine2", | |
"14":"zendframework/zf2", | |
"15":"pyrocms/pyrocms", | |
"16":"WordPress/WordPress", | |
"17":"drupal/drupal" | |
} | |
} | |
} | |
}, | |
"WhiteSpace":{ | |
"Spaces after control structure open parenthesis":{ | |
"sniffs":{ | |
"0":"PSR2.ControlStructures.ControlStructureSpacing", | |
"1":"Squiz.WhiteSpace.ControlStructureSpacing" | |
}, | |
"total":130647, | |
"values":{ | |
"0":113268, | |
"1":17335, | |
"3":39, | |
"2":5 | |
}, | |
"repos":{ | |
"0":{ | |
"0":"squizlabs/PHP_CodeSniffer", | |
"1":"sebastianbergmann/phpunit", | |
"2":"sebastianbergmann/php-code-coverage", | |
"3":"symfony/symfony", | |
"4":"laravel/framework", | |
"5":"yiisoft/yii2", | |
"6":"guzzle/guzzle", | |
"7":"fabpot/Twig", | |
"8":"EllisLab/CodeIgniter", | |
"9":"piwik/piwik", | |
"10":"codeguy/Slim", | |
"11":"PHPMailer/PHPMailer", | |
"12":"padraic/mockery", | |
"13":"joomla/joomla-cms", | |
"14":"composer/composer", | |
"15":"cakephp/cakephp", | |
"16":"google/google-api-php-client", | |
"17":"Seldaek/monolog", | |
"18":"swiftmailer/swiftmailer", | |
"19":"doctrine/doctrine2", | |
"20":"zendframework/zf2", | |
"21":"pyrocms/pyrocms", | |
"22":"drupal/drupal" | |
}, | |
"1":{ | |
"0":"WordPress/WordPress" | |
} | |
} | |
}, | |
"Spaces before control structure close parenthesis":{ | |
"sniffs":{ | |
"0":"PSR2.ControlStructures.ControlStructureSpacing", | |
"1":"Squiz.WhiteSpace.ControlStructureSpacing" | |
}, | |
"total":130519, | |
"values":{ | |
"0":115503, | |
"1":14978, | |
"2":23, | |
"9":3, | |
"11":3, | |
"12":2, | |
"5":2, | |
"7":2, | |
"3":1, | |
"8":1, | |
"10":1 | |
}, | |
"repos":{ | |
"0":{ | |
"0":"squizlabs/PHP_CodeSniffer", | |
"1":"sebastianbergmann/phpunit", | |
"2":"sebastianbergmann/php-code-coverage", | |
"3":"symfony/symfony", | |
"4":"laravel/framework", | |
"5":"yiisoft/yii2", | |
"6":"guzzle/guzzle", | |
"7":"fabpot/Twig", | |
"8":"EllisLab/CodeIgniter", | |
"9":"piwik/piwik", | |
"10":"codeguy/Slim", | |
"11":"PHPMailer/PHPMailer", | |
"12":"padraic/mockery", | |
"13":"joomla/joomla-cms", | |
"14":"composer/composer", | |
"15":"cakephp/cakephp", | |
"16":"google/google-api-php-client", | |
"17":"Seldaek/monolog", | |
"18":"swiftmailer/swiftmailer", | |
"19":"doctrine/doctrine2", | |
"20":"zendframework/zf2", | |
"21":"pyrocms/pyrocms", | |
"22":"drupal/drupal" | |
}, | |
"1":{ | |
"0":"WordPress/WordPress" | |
} | |
} | |
}, | |
"Space before operator":{ | |
"sniffs":{ | |
"0":"Squiz.WhiteSpace.OperatorSpacing" | |
}, | |
"total":89225, | |
"values":{ | |
"1":84765, | |
"0":2930, | |
"newline":1218, | |
"5":55, | |
"2":46, | |
"3":39, | |
"4":27, | |
"22":18, | |
"15":16, | |
"8":15, | |
"29":14, | |
"19":11, | |
"6":10, | |
"24":10, | |
"9":8, | |
"10":7, | |
"7":6, | |
"28":5, | |
"13":4, | |
"17":4, | |
"16":4, | |
"11":4, | |
"14":4, | |
"21":2, | |
"20":2, | |
"12":1 | |
}, | |
"repos":{ | |
"1":{ | |
"0":"squizlabs/PHP_CodeSniffer", | |
"1":"sebastianbergmann/phpunit", | |
"2":"sebastianbergmann/php-code-coverage", | |
"3":"symfony/symfony", | |
"4":"laravel/framework", | |
"5":"yiisoft/yii2", | |
"6":"guzzle/guzzle", | |
"7":"fabpot/Twig", | |
"8":"EllisLab/CodeIgniter", | |
"9":"piwik/piwik", | |
"10":"codeguy/Slim", | |
"11":"PHPMailer/PHPMailer", | |
"12":"padraic/mockery", | |
"13":"joomla/joomla-cms", | |
"14":"composer/composer", | |
"15":"cakephp/cakephp", | |
"16":"google/google-api-php-client", | |
"17":"Seldaek/monolog", | |
"18":"swiftmailer/swiftmailer", | |
"19":"doctrine/doctrine2", | |
"20":"zendframework/zf2", | |
"21":"pyrocms/pyrocms", | |
"22":"WordPress/WordPress", | |
"23":"drupal/drupal" | |
} | |
} | |
}, | |
"Space after operator":{ | |
"sniffs":{ | |
"0":"Squiz.WhiteSpace.OperatorSpacing" | |
}, | |
"total":554223, | |
"values":{ | |
"1":550016, | |
"0":2797, | |
"2":692, | |
"newline":433, | |
"3":90, | |
"27":31, | |
"8":26, | |
"25":22, | |
"30":21, | |
"7":15, | |
"9":12, | |
"4":10, | |
"5":8, | |
"10":7, | |
"23":7, | |
"15":5, | |
"6":5, | |
"12":5, | |
"11":5, | |
"29":3, | |
"18":3, | |
"32":2, | |
"21":2, | |
"35":2, | |
"17":2, | |
"13":1, | |
"28":1 | |
}, | |
"repos":{ | |
"1":{ | |
"0":"squizlabs/PHP_CodeSniffer", | |
"1":"sebastianbergmann/phpunit", | |
"2":"sebastianbergmann/php-code-coverage", | |
"3":"symfony/symfony", | |
"4":"laravel/framework", | |
"5":"yiisoft/yii2", | |
"6":"guzzle/guzzle", | |
"7":"fabpot/Twig", | |
"8":"EllisLab/CodeIgniter", | |
"9":"piwik/piwik", | |
"10":"codeguy/Slim", | |
"11":"PHPMailer/PHPMailer", | |
"12":"padraic/mockery", | |
"13":"joomla/joomla-cms", | |
"14":"composer/composer", | |
"15":"cakephp/cakephp", | |
"16":"google/google-api-php-client", | |
"17":"Seldaek/monolog", | |
"18":"swiftmailer/swiftmailer", | |
"19":"doctrine/doctrine2", | |
"20":"zendframework/zf2", | |
"21":"pyrocms/pyrocms", | |
"22":"WordPress/WordPress", | |
"23":"drupal/drupal" | |
} | |
} | |
}, | |
"Line indent":{ | |
"sniffs":{ | |
"0":"Generic.WhiteSpace.DisallowSpaceIndent", | |
"1":"Generic.WhiteSpace.DisallowTabIndent" | |
}, | |
"total":1395931, | |
"values":{ | |
"spaces":821309, | |
"tabs":574622 | |
}, | |
"repos":{ | |
"spaces":{ | |
"0":"squizlabs/PHP_CodeSniffer", | |
"1":"sebastianbergmann/phpunit", | |
"2":"sebastianbergmann/php-code-coverage", | |
"3":"symfony/symfony", | |
"4":"guzzle/guzzle", | |
"5":"fabpot/Twig", | |
"6":"piwik/piwik", | |
"7":"codeguy/Slim", | |
"8":"PHPMailer/PHPMailer", | |
"9":"padraic/mockery", | |
"10":"composer/composer", | |
"11":"google/google-api-php-client", | |
"12":"Seldaek/monolog", | |
"13":"swiftmailer/swiftmailer", | |
"14":"doctrine/doctrine2", | |
"15":"zendframework/zf2", | |
"16":"drupal/drupal" | |
}, | |
"tabs":{ | |
"0":"laravel/framework", | |
"1":"yiisoft/yii2", | |
"2":"EllisLab/CodeIgniter", | |
"3":"joomla/joomla-cms", | |
"4":"cakephp/cakephp", | |
"5":"pyrocms/pyrocms", | |
"6":"WordPress/WordPress" | |
} | |
} | |
}, | |
"Spacing before object operator":{ | |
"sniffs":{ | |
"0":"Squiz.WhiteSpace.ObjectOperatorSpacing" | |
}, | |
"total":387222, | |
"values":{ | |
"0":378185, | |
"newline":9035, | |
"1":2 | |
}, | |
"repos":{ | |
"0":{ | |
"0":"squizlabs/PHP_CodeSniffer", | |
"1":"sebastianbergmann/phpunit", | |
"2":"sebastianbergmann/php-code-coverage", | |
"3":"symfony/symfony", | |
"4":"laravel/framework", | |
"5":"yiisoft/yii2", | |
"6":"guzzle/guzzle", | |
"7":"fabpot/Twig", | |
"8":"EllisLab/CodeIgniter", | |
"9":"piwik/piwik", | |
"10":"codeguy/Slim", | |
"11":"PHPMailer/PHPMailer", | |
"12":"padraic/mockery", | |
"13":"joomla/joomla-cms", | |
"14":"composer/composer", | |
"15":"cakephp/cakephp", | |
"16":"google/google-api-php-client", | |
"17":"Seldaek/monolog", | |
"18":"swiftmailer/swiftmailer", | |
"19":"doctrine/doctrine2", | |
"20":"zendframework/zf2", | |
"21":"pyrocms/pyrocms", | |
"22":"WordPress/WordPress", | |
"23":"drupal/drupal" | |
} | |
} | |
}, | |
"Spacing after object operator":{ | |
"sniffs":{ | |
"0":"Squiz.WhiteSpace.ObjectOperatorSpacing" | |
}, | |
"total":387222, | |
"values":{ | |
"0":387221, | |
"1":1 | |
}, | |
"repos":{ | |
"0":{ | |
"0":"squizlabs/PHP_CodeSniffer", | |
"1":"sebastianbergmann/phpunit", | |
"2":"sebastianbergmann/php-code-coverage", | |
"3":"symfony/symfony", | |
"4":"laravel/framework", | |
"5":"yiisoft/yii2", | |
"6":"guzzle/guzzle", | |
"7":"fabpot/Twig", | |
"8":"EllisLab/CodeIgniter", | |
"9":"piwik/piwik", | |
"10":"codeguy/Slim", | |
"11":"PHPMailer/PHPMailer", | |
"12":"padraic/mockery", | |
"13":"joomla/joomla-cms", | |
"14":"composer/composer", | |
"15":"cakephp/cakephp", | |
"16":"google/google-api-php-client", | |
"17":"Seldaek/monolog", | |
"18":"swiftmailer/swiftmailer", | |
"19":"doctrine/doctrine2", | |
"20":"zendframework/zf2", | |
"21":"pyrocms/pyrocms", | |
"22":"WordPress/WordPress", | |
"23":"drupal/drupal" | |
} | |
} | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment