for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
/**
* Created by Gorlum 10.02.2017 0:28
*/
use Core\GlobalContainer;
* Class Storage
* @deprecated
class Storage {
* Storage constructor.
*
* @param GlobalContainer $gc
public function __construct(GlobalContainer $gc) {
$gc
If this is a false-positive, you can also ignore this issue in your code via the ignore-unused annotation
ignore-unused
public function __construct(/** @scrutinizer ignore-unused */ GlobalContainer $gc) {
This check looks for parameters that have been defined for a function or method, but which are not used in the method body.
}
* @param TextRecordDescription $recordDescription
* @param string|int $id
* @return array|null
public function loadById($recordDescription, $id) {
$dbq = new \DBAL\DbQuery($recordDescription->db);
$dbq
->setTable($recordDescription->table)
->setOneRow()
->setWhereArray(array($recordDescription->indexFieldName => $id));
return $recordDescription->db->dbqSelectAndFetch($dbq);
This check looks for parameters that have been defined for a function or method, but which are not used in the method body.