for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace GeminiLabs\SiteReviews\Modules\Html\Partials;
use GeminiLabs\SiteReviews\Database;
use GeminiLabs\SiteReviews\Modules\Html\Builder;
use GeminiLabs\SiteReviews\Modules\Rating;
use GeminiLabs\SiteReviews\Modules\Schema;
class SiteReviews
{
/**
* @var array
*/
protected $args;
* @var float
protected $rating;
* @var object
protected $reviews;
* @return void|string
public function build( $name, array $args = [] )
$name
If this is a false-positive, you can also ignore this issue in your code via the ignore-unused annotation
ignore-unused
public function build( /** @scrutinizer ignore-unused */ $name, array $args = [] )
This check looks for parameters that have been defined for a function or method, but which are not used in the method body.
$this->args = $args;
$this->reviews = glsr( Database::class )->getReviews( $args );
$this->rating = glsr( Rating::class )->getAverage( $this->reviews->results );
}
This check looks for parameters that have been defined for a function or method, but which are not used in the method body.