for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace Timegridio\Concierge\Calendar;
class VacancyFinder extends Calendar
{
protected $service = null;
protected $datetime = null;
protected $timezone = null;
protected $vacancies = null;
protected $find = null;
/////////////////////
// Vacancy Queries //
public function forServiceAndDateTime($service, $datetime = null, $timezone = null)
$timezone
This check looks from parameters that have been defined for a function or method, but which are not used in the method body.
$this->find = $this->filtered()->forDateTime($datetime)->forService($service->id);
return $this;
}
public function forDateTime($datetime = null, $timezone = null)
if ($datetime === null && $this->datetime !== null) {
$datetime = $this->datetime;
$this->find = $this->filtered()->forDateTime($datetime);
public function forService($service)
if ($service === null && $this->service !== null) {
$service = $this->service;
$this->find = $this->filtered()->forService($service->id);
public function find()
return $this->filtered()->first();
public function filtered()
if ($this->find === null) {
$this->find = $this->business->vacancies();
return $this->find;
This check looks from parameters that have been defined for a function or method, but which are not used in the method body.