Code Quality Tools
Tom Adam
jakub-onderka/php-parallel-lint
PHP Parallel Lint
PHP 5.6.20 | 10 parallel jobs
X..X. 5/5 (100 %)
Checked 5 files in 0.3 seconds
Syntax error found in 2 files
------------------------------------------------------------
Parse error: php-parallel-lint/tests/examples/example-03/example.php:4
2|
3| $myInteger = 1;
> 4| echo $;
5|
Unexpected ';', expecting variable (T_VARIABLE) or '$'
------------------------------------------------------------
Parse error: php-parallel-lint/tests/examples/example-04/dir1/dir2/index.php:3
1| <?php
2| $foo ='bar'
> 3| echo $foo;
4|
Unexpected 'echo' (T_ECHO)
friendsofphp/php-cs-fixer
PHP Coding Standards Fixer
Loaded config from "/vagrant/.php_cs"
F
Legend: ?-unknown, I-invalid file syntax, file ignored, .-no changes, F-fixed, E-error
1) Mailer/Mailer.php (whitespacy_lines, unalign_equals, phpdoc_params)
Fixed all files in 1.100 seconds, 10.250 MB memory used
#.php_cs
<?php
$finder = Symfony\CS\Finder\Symfony23Finder::create();
return Symfony\CS\Config\Config::create()
->setUsingCache(true)
->level(\Symfony\CS\FixerInterface::SYMFONY_LEVEL)
->fixers([
'ordered_use',
'phpdoc_order',
'short_array_syntax',
'-phpdoc_short_description',
])
->finder($finder);
Enable the cache!
sensiolabs/security-checker
SensioLabs Security Checker
Security Check Report
~~~~~~~~~~~~~~~~~~~~~
Checked file: /vagrant/composer.lock
[CRITICAL]
1 package has known vulnerabilities
symfony/symfony (v3.0.5)
------------------------
* CVE-2016-4423: Large username storage in session
http://symfony.com/blog/cve-2016-4423-large-username-storage-in-session
jakub-onderka/php-var-dump-check
PHP VarDump Check
...................X...
Checked 23 files in 0.1 second, dump found in 1 file
------------------------------------------------------------
Forgotten dump 'var_dump' found in ./test.php:36
34| $functionsToCheck = $this->prepareFunctionCheck($this->settings->functionsToCheck);
35|
> 36| var_dump($functionsToCheck);
37|
38| foreach ($tokens as $key => $token) {
asm89/twig-lint
Twig Lint
KO in src/AppBundle/Resources/views/auth/login.html.twig (line 7)
5
6 {% block body %}
>> 7 {% extends '::admin.html.twig' %}
>> Cannot extend from a block.
8 <div class="login_wrapper">
9 <div class="container">
OK in src/AppBundle/Resources/views/auth/access_denied.html.twig
phpmetrics/phpmetrics
PHP Metrics
sensiolabs-de/deprecation-detector
SensioLabs Deprecation Detector
+---+------------------------------------------------------------------------------------------------+--------------------------+-------------------------------------------------------------------------------+
| # | Usage | Line | Comment |
+---+------------------------------------------------------------------------------------------------+--------------------------+-------------------------------------------------------------------------------+
| | /vagrant/CustomerType.php |
+---+------------------------------------------------------------------------------------------------+--------------------------+-------------------------------------------------------------------------------+
| 1 | Calling deprecated static method Symfony\Component\Form\FormTypeInterface::setDefaultOptions() | 113 | since version 2.7, to be renamed in 3.0. |
| | | | Use the method configureOptions instead. This method will be |
| | | | added to the FormTypeInterface with Symfony 3.0. |
| 2 | Using deprecated interface Symfony\Component\OptionsResolver\OptionsResolverInterface | 111 | since version 2.6, to be removed in 3.0. Use {@link OptionsResolver} instead. |
| 3 | Overriding deprecated method CustomerType->setDefaultOptions() | 111 | since version 2.7, to be renamed in 3.0. |
| | | | Use the method configureOptions instead. This method will be |
| | | | added to the FormTypeInterface with Symfony 3.0. |
+---+------------------------------------------------------------------------------------------------+--------------------------+-------------------------------------------------------------------------------+
Code Quality Tools
By tomadam
Code Quality Tools
- 1,296