JMSSecurityExtraBundle icon indicating copy to clipboard operation
JMSSecurityExtraBundle copied to clipboard

Insights Code scanning report

Open RenierLewis opened this issue 7 years ago • 0 comments
trafficstars

Hi

Thank you for your great work with this bundle and your contribution to the open source community.

I have put the bundle through Sensiolabs Insights code scanning and just wanted to share the findings with you.

The scanning found 1 Major, 1 minor issue and 1 info issue.

They are:

Absolute path constants DIR and FILE should not be used MajorBugrisk in Drivers/ShmDriver.php, line 52 $key = ftok(FILE, 'm');

DIR and FILE constants may conflict with the Symfony resource overriding system

For more information see https://insight.sensiolabs.com/what-we-analyse/symfony.dependency_injection.use_dir_file_constant


Object parameters should be type hinted MinorBugrisk in Drivers/Query/PdoQuery.php, line 115 protected function prepareStatement($db, $query) The parameter db, which is an object, should be typehinted.

For more information see https://insight.sensiolabs.com/what-we-analyse/php.object_parameter_not_type_hinted


Methods and properties visibility should always be explicitly defined 5 InfoReadability in Drivers/Query/PdoQuery.php, line 40 abstract function createTableQuery(); This method has no explicit visibility which may lead to maintenability issues. You should always declare a visibility for methods and properties.

For more information see https://insight.sensiolabs.com/what-we-analyse/php.method_or_property_missing_visibility

If possible for you to fix these issues/comments/recommendations with a future commit, it will be appreciated.

Kind Regards Renier Lewis

RenierLewis avatar Apr 16 '18 19:04 RenierLewis