@@ -37,14 +37,14 @@ discard block |
||
| 37 | 37 | { |
| 38 | 38 | $owner = $this->getOwner(); |
| 39 | 39 | if ($owner->RequiresUUID || Config::inst()->get(HashCreator::class, 'always_require_uuid')) { |
| 40 | - if(!$owner->UUID) { |
|
| 40 | + if (!$owner->UUID) { |
|
| 41 | 41 | $owner->UUID = $this->getHashID(); |
| 42 | 42 | } |
| 43 | 43 | } else { |
| 44 | 44 | $this->UUIDNeverAgainRaceCondition = true; |
| 45 | 45 | $owner->UUID = ''; |
| 46 | 46 | } |
| 47 | - if (! $owner->PublicUUID || 'ERROR' === $owner->PublicUUID) { |
|
| 47 | + if (!$owner->PublicUUID || 'ERROR' === $owner->PublicUUID) { |
|
| 48 | 48 | $owner->PublicUUID = $this->calculatePublicUUID(); |
| 49 | 49 | } |
| 50 | 50 | } |
@@ -52,7 +52,7 @@ discard block |
||
| 52 | 52 | public function onAfterWrite() |
| 53 | 53 | { |
| 54 | 54 | $owner = $this->getOwner(); |
| 55 | - if (! $owner->UUID && false === $this->UUIDNeverAgainRaceCondition) { |
|
| 55 | + if (!$owner->UUID && false === $this->UUIDNeverAgainRaceCondition) { |
|
| 56 | 56 | $this->UUIDNeverAgainRaceCondition = true; |
| 57 | 57 | $owner->write(); |
| 58 | 58 | } |
@@ -66,7 +66,7 @@ discard block |
||
| 66 | 66 | public function updateCMSFields(FieldList $fields) |
| 67 | 67 | { |
| 68 | 68 | $owner = $this->owner; |
| 69 | - if (! ($owner instanceof SiteTree)) { |
|
| 69 | + if (!($owner instanceof SiteTree)) { |
|
| 70 | 70 | $this->updateCMSFieldsForHashId($fields); |
| 71 | 71 | } |
| 72 | 72 | } |