Maybe you can try compressing these lines with something like that

```php
if (substr($ResqueLib, 0, 1) !== '/') {
        $ResqueLib = $pluginPath . 'vendor' . DS . $ResqueLib;
}
$ResqueLib += DS . 'lib' . DS;

require_once realpath($ResqueLib . 'Resque.php');
require_once realpath($ResqueLib . 'Worker.php');

if (substr($SchedulerLib, 0, 1) !== '/') {
        $SchedulerLib = $pluginPath . 'vendor' . DS . $SchedulerLib;
}
$SchedulerLib += DS . 'lib' . DS . 'ResqueScheduler' . DS;

require_once realpath($SchedulerLib . 'ResqueScheduler.php');
require_once realpath($SchedulerLib . 'Stat.php');
require_once realpath($SchedulerLib . 'Job' . DS . 'Status.php');
```