@@ -36,13 +36,13 @@ discard block |
||
| 36 | 36 | { |
| 37 | 37 | $owner = $this->getOwner(); |
| 38 | 38 | if ($owner->RequiresUUID) { |
| 39 | - if(!$owner->UUID) { |
|
| 39 | + if (!$owner->UUID) { |
|
| 40 | 40 | $owner->UUID = $this->getHashID(); |
| 41 | 41 | } |
| 42 | 42 | } else { |
| 43 | 43 | $owner->UUID = ''; |
| 44 | 44 | } |
| 45 | - if (! $owner->PublicUUID || 'ERROR' === $owner->PublicUUID) { |
|
| 45 | + if (!$owner->PublicUUID || 'ERROR' === $owner->PublicUUID) { |
|
| 46 | 46 | $owner->PublicUUID = $this->calculatePublicUUID(); |
| 47 | 47 | } |
| 48 | 48 | } |
@@ -50,7 +50,7 @@ discard block |
||
| 50 | 50 | public function onAfterWrite() |
| 51 | 51 | { |
| 52 | 52 | $owner = $this->getOwner(); |
| 53 | - if (! $owner->UUID && false === ! $this->UUIDNeverAgainRaceCondition) { |
|
| 53 | + if (!$owner->UUID && false === !$this->UUIDNeverAgainRaceCondition) { |
|
| 54 | 54 | $this->UUIDNeverAgainRaceCondition = true; |
| 55 | 55 | $owner->write(); |
| 56 | 56 | } |
@@ -64,7 +64,7 @@ discard block |
||
| 64 | 64 | public function updateCMSFields(FieldList $fields) |
| 65 | 65 | { |
| 66 | 66 | $owner = $this->owner; |
| 67 | - if (! ($owner instanceof SiteTree)) { |
|
| 67 | + if (!($owner instanceof SiteTree)) { |
|
| 68 | 68 | $this->updateCMSFieldsForHashId($fields); |
| 69 | 69 | } |
| 70 | 70 | } |