for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
/**
* GEOSWKTWriter class stub.
*
* These stubs are required for IDEs to provide autocompletion and static code analysis during development.
* They are not required for production.
* @see https://github.com/libgeos/libgeos/blob/svn-trunk/php/geos.c
*/
class GEOSWKTWriter
{
* Constructor.
public function __construct() {}
* @param GEOSGeometry $geom
* @return string
* @throws \Exception
public function write(GEOSGeometry $geom) {}
$geom
If this is a false-positive, you can also ignore this issue in your code via the ignore-unused annotation
ignore-unused
public function write(/** @scrutinizer ignore-unused */ GEOSGeometry $geom) {}
This check looks for parameters that have been defined for a function or method, but which are not used in the method body.
* @param bool $trim
* @return void
public function setTrim($trim) {}
$trim
public function setTrim(/** @scrutinizer ignore-unused */ $trim) {}
* @param int $prec
public function setRoundingPrecision($prec) {}
$prec
public function setRoundingPrecision(/** @scrutinizer ignore-unused */ $prec) {}
* @param int $dim
public function setOutputDimension($dim) {}
$dim
public function setOutputDimension(/** @scrutinizer ignore-unused */ $dim) {}
* @return int
public function getOutputDimension() {}
* @param bool $val
public function setOld3D($val) {}
$val
public function setOld3D(/** @scrutinizer ignore-unused */ $val) {}
}
This check looks for parameters that have been defined for a function or method, but which are not used in the method body.