for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
/**
* This file is part of the Zemit Framework.
*
* (c) Zemit Team <[email protected]>
* For the full copyright and license information, please view the LICENSE.txt
* file that was distributed with this source code.
*/
namespace Zemit\Mvc\Controller\Behavior\Skip;
use Phalcon\Events\Event;
use Zemit\Di\Injectable;
use Zemit\Mvc\Controller\Rest;
* Class SkipSoftDeleteCondition
* @author Julien Turbide <[email protected]>
* @copyright Zemit Team <[email protected]>
* @since 1.0
* @version 1.0
* @package Zemit\Mvc\Controller\Behavior\Skip
class SkipSoftDeleteCondition extends Injectable
{
* Stop operation
* @return false
public function getSoftDeleteCondition(Event $event, Rest $controller, $softDeleteCondition) {
$event
If this is a false-positive, you can also ignore this issue in your code via the ignore-unused annotation
ignore-unused
public function getSoftDeleteCondition(/** @scrutinizer ignore-unused */ Event $event, Rest $controller, $softDeleteCondition) {
This check looks for parameters that have been defined for a function or method, but which are not used in the method body.
$controller
public function getSoftDeleteCondition(Event $event, /** @scrutinizer ignore-unused */ Rest $controller, $softDeleteCondition) {
$softDeleteCondition
public function getSoftDeleteCondition(Event $event, Rest $controller, /** @scrutinizer ignore-unused */ $softDeleteCondition) {
return false;
}
This check looks for parameters that have been defined for a function or method, but which are not used in the method body.