From a5d5fb7860c0f9053d6602140a6894b8b2b4c8eb Mon Sep 17 00:00:00 2001 From: Gabriel Solomon Date: Mon, 18 Feb 2019 12:52:50 +0000 Subject: [PATCH] Apply fixes from StyleCI --- src/Elements/Timeselect.php | 8 ++++---- src/Traits/HasDisplayGroupsTrait.php | 1 - 2 files changed, 4 insertions(+), 5 deletions(-) diff --git a/src/Elements/Timeselect.php b/src/Elements/Timeselect.php index 7478315..021bd9c 100644 --- a/src/Elements/Timeselect.php +++ b/src/Elements/Timeselect.php @@ -13,7 +13,7 @@ public function init() public function initSelects() { - if ( ! isset($this->elements['hours'])) { + if (! isset($this->elements['hours'])) { $hoursElement = $this->getForm()->getNewSelectElement(); $hoursElement->addOption('-', 'HH'); @@ -26,7 +26,7 @@ public function initSelects() } - if ( ! isset($this->elements['minutes'])) { + if (! isset($this->elements['minutes'])) { $minutesElement = $this->getForm()->getNewSelectElement(); $minutesElement->addOption('-', 'MM'); @@ -38,7 +38,7 @@ public function initSelects() $this->elements['minutes'] = $minutesElement; } - if ( ! isset($this->elements['seconds'])) { + if (! isset($this->elements['seconds'])) { $secondsElement = $this->getForm()->getNewSelectElement(); $secondsElement->addOption('-', 'SS'); @@ -110,7 +110,7 @@ public function getDataFromRequest($request) public function validate() { parent::validate(); - if ( ! $this->isError()) { + if (! $this->isError()) { $value = $this->getValue(); if ($value) { $expectedValue = str_pad(intval($this->elements['hours']->getValue()), 2, "0", STR_PAD_LEFT); diff --git a/src/Traits/HasDisplayGroupsTrait.php b/src/Traits/HasDisplayGroupsTrait.php index 6dce8d5..6ec290c 100644 --- a/src/Traits/HasDisplayGroupsTrait.php +++ b/src/Traits/HasDisplayGroupsTrait.php @@ -73,5 +73,4 @@ public function getDisplayGroups() { return $this->_displayGroups; } - }