@@ -1,6 +1,6 @@ discard block |
||
| 1 | 1 | <?php |
| 2 | 2 | |
| 3 | -declare (strict_types=1); |
|
| 3 | +declare(strict_types=1); |
|
| 4 | 4 | |
| 5 | 5 | namespace Tardigrades\SectionField\Service; |
| 6 | 6 | |
@@ -47,7 +47,7 @@ discard block |
||
| 47 | 47 | string $enabled = 'false' |
| 48 | 48 | ) { |
| 49 | 49 | $this->cache = $cache; |
| 50 | - $this->enabled = $enabled === 'false' ? false : true ; |
|
| 50 | + $this->enabled = $enabled === 'false' ? false : true; |
|
| 51 | 51 | $this->item = null; |
| 52 | 52 | $this->sectionHandle = null; |
| 53 | 53 | $this->fieldKey = null; |
@@ -67,14 +67,14 @@ discard block |
||
| 67 | 67 | try { |
| 68 | 68 | $this->item = $this->cache->getItem( |
| 69 | 69 | $this->getItemKey( |
| 70 | - (string)$fullyQualifiedClassName, |
|
| 70 | + (string) $fullyQualifiedClassName, |
|
| 71 | 71 | $requestedFields, |
| 72 | 72 | $context, |
| 73 | 73 | $id |
| 74 | 74 | ) |
| 75 | 75 | ); |
| 76 | 76 | $this->context = sha1($context); |
| 77 | - $this->sectionHandle = sha1((string)$fullyQualifiedClassName); |
|
| 77 | + $this->sectionHandle = sha1((string) $fullyQualifiedClassName); |
|
| 78 | 78 | $this->fieldKey = $this->getFieldKey($requestedFields); |
| 79 | 79 | $this->relationships = $this->getRelationships($fullyQualifiedClassName); |
| 80 | 80 | } catch (\Exception $exception) { |
@@ -128,7 +128,7 @@ discard block |
||
| 128 | 128 | public function invalidateForSection(FullyQualifiedClassName $fullyQualifiedClassName): void |
| 129 | 129 | { |
| 130 | 130 | if ($this->enabled) { |
| 131 | - $this->cache->invalidateTags([sha1((string)$fullyQualifiedClassName)]); |
|
| 131 | + $this->cache->invalidateTags([sha1((string) $fullyQualifiedClassName)]); |
|
| 132 | 132 | } |
| 133 | 133 | } |
| 134 | 134 | |
@@ -213,7 +213,7 @@ discard block |
||
| 213 | 213 | private function getRelationships(FullyQualifiedClassName $fullyQualifiedClassName): array |
| 214 | 214 | { |
| 215 | 215 | try { |
| 216 | - $fields = (string)$fullyQualifiedClassName; |
|
| 216 | + $fields = (string) $fullyQualifiedClassName; |
|
| 217 | 217 | $relationships = []; |
| 218 | 218 | foreach ($fields::FIELDS as $field) { |
| 219 | 219 | try { |