for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace Subreality\Dilmun\Anshar\Http\UriParts;
class Query
{
private static $unreserved_pattern = '\w\-\.~';
$unreserved_pattern
This check marks private properties in classes that are never used. Those properties can be removed.
private static $pct_encoded_pattern = '%[A-Fa-f0-9]{2}';
$pct_encoded_pattern
private $query = "";
$query
public function __construct($query)
if (!is_string($query)) {
throw new \InvalidArgumentException("Query must be a string");
}
This check marks private properties in classes that are never used. Those properties can be removed.