Commit 08bec953 authored by Jürgen Haas's avatar Jürgen Haas
Browse files

Issue #3268540 by jurgenhaas: Cleanup code to pass PHPCS tests

parent a279acee
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -99,7 +99,7 @@ class CronEvent extends Event implements ConditionalApplianceInterface {
      return $this->keyValueStore()->getCurrentTimestamp() > $cron->getNextRunDate($dt)->getTimestamp();
    }
    catch (\Exception $e) {
      // @todo: Log this exception.
      // @todo Log this exception.
    }
    return FALSE;
  }
+1 −1
Original line number Diff line number Diff line
@@ -33,7 +33,7 @@ class FormFieldValidateRefLeafTerms extends FormFieldValidateActionBase {
    $formState = $this->event->getFormState();
    $formObject = $formState->getFormObject();

    // @todo: can we find out the target type without referring to an entity?
    // @todo can we find out the target type without referring to an entity?
    $field_name = $this->configuration['field_name'];
    $field = NULL;
    if ($formObject instanceof EntityFormInterface) {
+1 −1
Original line number Diff line number Diff line
@@ -22,7 +22,7 @@ interface FormEventInterface {
   * This is needed, if the receiver of the form array had to modify the array
   * and needs to hand over the changes to the subsequent process.
   *
   * @todo: Analyse if we could change getForm() into a method that returns
   * @todo Analyse if we could change getForm() into a method that returns
   * the form array by reference.
   *
   * @param array $form
+1 −1
Original line number Diff line number Diff line
@@ -62,7 +62,7 @@ class TriggerEvent {
      $event_plugin = $this->eventPluginManager->createInstance($plugin_id);
    }
    catch (PluginException $e) {
      // @todo: Log this exception.
      // @todo Log this exception.
      return;
    }
    $event_class = $event_plugin->eventClass();
+2 −2
Original line number Diff line number Diff line
@@ -156,7 +156,7 @@ class Modellers {
        $model = $eca->getModel();
      }
      catch (InvalidPluginDefinitionException | PluginNotFoundException $e) {
        // @todo: Log this exception.
        // @todo Log this exception.
        continue;
      }
      $filename = $model->getFilename();
@@ -245,7 +245,7 @@ class Modellers {
        $model = $eca->getModel();
      }
      catch (InvalidPluginDefinitionException | PluginNotFoundException $e) {
        // @todo: Log this exception.
        // @todo Log this exception.
        continue;
      }
      if ($modeller->updateModel($model)) {