← All changes
|
vendor/woocommerce/action-scheduler/classes/ActionScheduler_DateTime.php
+4
-4
1.5.3
→
trunk
View file →
| @@ -14,9 +14,9 @@ | ||
| 14 | 14 | * used, this will be set to 0. |
| 15 | 15 | * |
| 16 | 16 | * @var int |
| 17 | 17 | */ |
| 18 | - protected $utcOffset = 0; | |
| 18 | + protected $utcOffset = 0; // phpcs:ignore WordPress.NamingConventions.ValidVariableName.PropertyNotSnakeCase | |
| 19 | 19 | |
| 20 | 20 | /** |
| 21 | 21 | * Get the unix timestamp of the current object. |
| 22 | 22 | * |
| @@ -36,9 +36,9 @@ | ||
| 36 | 36 | * |
| 37 | 37 | * @param string|int $offset UTC offset value. |
| 38 | 38 | */ |
| 39 | 39 | public function setUtcOffset( $offset ) { |
| 40 | - $this->utcOffset = intval( $offset ); | |
| 40 | + $this->utcOffset = intval( $offset ); // phpcs:ignore WordPress.NamingConventions.ValidVariableName.UsedPropertyNotSnakeCase | |
| 41 | 41 | } |
| 42 | 42 | |
| 43 | 43 | /** |
| 44 | 44 | * Returns the timezone offset. |
| @@ -47,9 +47,9 @@ | ||
| 47 | 47 | * @link http://php.net/manual/en/datetime.getoffset.php |
| 48 | 48 | */ |
| 49 | 49 | #[\ReturnTypeWillChange] |
| 50 | 50 | public function getOffset() { |
| 51 | - return $this->utcOffset ? $this->utcOffset : parent::getOffset(); | |
| 51 | + return $this->utcOffset ? $this->utcOffset : parent::getOffset(); // phpcs:ignore WordPress.NamingConventions.ValidVariableName.UsedPropertyNotSnakeCase | |
| 52 | 52 | } |
| 53 | 53 | |
| 54 | 54 | /** |
| 55 | 55 | * Set the TimeZone associated with the DateTime |
| @@ -60,9 +60,9 @@ | ||
| 60 | 60 | * @link http://php.net/manual/en/datetime.settimezone.php |
| 61 | 61 | */ |
| 62 | 62 | #[\ReturnTypeWillChange] |
| 63 | 63 | public function setTimezone( $timezone ) { |
| 64 | - $this->utcOffset = 0; | |
| 64 | + $this->utcOffset = 0; // phpcs:ignore WordPress.NamingConventions.ValidVariableName.UsedPropertyNotSnakeCase | |
| 65 | 65 | parent::setTimezone( $timezone ); |
| 66 | 66 | |
| 67 | 67 | return $this; |
| 68 | 68 | } |