|
@@ 74-84 (lines=11) @@
|
| 71 |
|
|
| 72 |
|
$atLeastOneTimerDeleted = false; |
| 73 |
|
|
| 74 |
|
foreach ($this->implementedServicesForFeature('delete') as $service) { |
| 75 |
|
$functionName = 'delete' . ucfirst($service) . 'Timer'; |
| 76 |
|
|
| 77 |
|
if (call_user_func_array(['AlfredTime', $functionName], [$timerId]) === true) { |
| 78 |
|
if ($timerId === $this->config['workflow']['timer_' . $service . '_id']) { |
| 79 |
|
$this->config['workflow']['timer_' . $service . '_id'] = null; |
| 80 |
|
$atLeastOneTimerDeleted = true; |
| 81 |
|
} |
| 82 |
|
} |
| 83 |
|
|
| 84 |
|
$message .= $this->getLastMessage() . "\r\n"; |
| 85 |
|
} |
| 86 |
|
|
| 87 |
|
if ($atLeastOneTimerDeleted === true) { |
|
@@ 363-371 (lines=9) @@
|
| 360 |
|
|
| 361 |
|
$atLeastOneTimerDeleted = false; |
| 362 |
|
|
| 363 |
|
foreach ($this->servicesToUndo() as $service) { |
| 364 |
|
$functionName = 'delete' . ucfirst($service) . 'Timer'; |
| 365 |
|
|
| 366 |
|
if (call_user_func_array(['AlfredTime', $functionName], [$this->config['workflow']['timer_' . $service . '_id']]) === true) { |
| 367 |
|
$this->config['workflow']['timer_' . $service . '_id'] = null; |
| 368 |
|
$atLeastOneTimerDeleted = true; |
| 369 |
|
} |
| 370 |
|
|
| 371 |
|
$message .= $this->getLastMessage() . "\r\n"; |
| 372 |
|
} |
| 373 |
|
|
| 374 |
|
if ($atLeastOneTimerDeleted === true) { |