X-Git-Url: https://yaffs.net/gitweb/?a=blobdiff_plain;f=vendor%2Fdrush%2Fdrush%2Ftests%2Fresources%2Fmodules%2Fd8%2Fwoot%2Fsrc%2FPlugin%2FQueueWorker%2FWootRequeueException.php;fp=vendor%2Fdrush%2Fdrush%2Ftests%2Fresources%2Fmodules%2Fd8%2Fwoot%2Fsrc%2FPlugin%2FQueueWorker%2FWootRequeueException.php;h=5ee43fe9106bf605507d0bbcd50c9d1f07ac4a18;hb=af6d1fb995500ae68849458ee10d66abbdcfb252;hp=6830e56d02f53963570f1de65611d1965bba68fc;hpb=680c79a86e3ed402f263faeac92e89fb6d9edcc0;p=yaffs-website diff --git a/vendor/drush/drush/tests/resources/modules/d8/woot/src/Plugin/QueueWorker/WootRequeueException.php b/vendor/drush/drush/tests/resources/modules/d8/woot/src/Plugin/QueueWorker/WootRequeueException.php index 6830e56d0..5ee43fe91 100644 --- a/vendor/drush/drush/tests/resources/modules/d8/woot/src/Plugin/QueueWorker/WootRequeueException.php +++ b/vendor/drush/drush/tests/resources/modules/d8/woot/src/Plugin/QueueWorker/WootRequeueException.php @@ -14,20 +14,20 @@ use Drupal\Core\Queue\RequeueException; * cron = {"time" = 60} * ) */ -class WootRequeueException extends QueueWorkerBase { +class WootRequeueException extends QueueWorkerBase +{ /** * {@inheritdoc} */ - public function processItem($data) { - $state = \Drupal::state(); - if (!$state->get('woot_requeue_exception')) { - $state->set('woot_requeue_exception', 1); - throw new RequeueException('I am not done yet!'); + public function processItem($data) + { + $state = \Drupal::state(); + if (!$state->get('woot_requeue_exception')) { + $state->set('woot_requeue_exception', 1); + throw new RequeueException('I am not done yet!'); + } else { + $state->set('woot_requeue_exception', 2); + } } - else { - $state->set('woot_requeue_exception', 2); - } - } - }