src/Hodor/JobQueue/JobOptions/Validator.php
Avoid unused private methods such as 'validateQueueName'. Open
Open
private function validateQueueName(array $options)
{
if ($this->worker_config->hasWorkerConfig("worker", $options['queue_name'])) {
return;
}
- Read upRead up
- Create a ticketCreate a ticket
- Exclude checks
UnusedPrivateMethod
Since: 0.2
Unused Private Method detects when a private method is declared but is unused.
Example
class Something
{
private function foo() {} // unused
}
Source https://phpmd.org/rules/unusedcode.html#unusedprivatemethod
Avoid unused private methods such as 'validateRunAfter'. Open
Open
private function validateRunAfter(array $options)
{
if ($options['run_after'] instanceof DateTime) {
return;
}
- Read upRead up
- Create a ticketCreate a ticket
- Exclude checks
UnusedPrivateMethod
Since: 0.2
Unused Private Method detects when a private method is declared but is unused.
Example
class Something
{
private function foo() {} // unused
}
Source https://phpmd.org/rules/unusedcode.html#unusedprivatemethod
Avoid unused private methods such as 'validateMutexId'. Open
Open
private function validateMutexId(array $options)
{
if (is_scalar($options['mutex_id']) && strlen("{$options['mutex_id']}") >= 1) {
return;
}
- Read upRead up
- Create a ticketCreate a ticket
- Exclude checks
UnusedPrivateMethod
Since: 0.2
Unused Private Method detects when a private method is declared but is unused.
Example
class Something
{
private function foo() {} // unused
}
Source https://phpmd.org/rules/unusedcode.html#unusedprivatemethod
Avoid unused local variables such as '$option_value'. Open
Open
foreach ($options as $option_name => $option_value) {
- Read upRead up
- Create a ticketCreate a ticket
- Exclude checks
UnusedLocalVariable
Since: 0.2
Detects when a local variable is declared and/or assigned, but not used.
Example
class Foo {
public function doSomething()
{
$i = 5; // Unused
}
}
Source https://phpmd.org/rules/unusedcode.html#unusedlocalvariable
Avoid unused private methods such as 'validateJobRank'. Open
Open
private function validateJobRank(array $options)
{
if (is_int($options['job_rank'])
&& -20 <= $options['job_rank'] && $options['job_rank'] <= 19
) {
- Read upRead up
- Create a ticketCreate a ticket
- Exclude checks
UnusedPrivateMethod
Since: 0.2
Unused Private Method detects when a private method is declared but is unused.
Example
class Something
{
private function foo() {} // unused
}