@@ -1,5 +1,5 @@ |
||
| 1 | 1 | <?php |
| 2 | -declare (strict_types=1); |
|
| 2 | +declare(strict_types=1); |
|
| 3 | 3 | |
| 4 | 4 | namespace Tardigrades\SectionField\Service; |
| 5 | 5 | |
@@ -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 | |
@@ -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 | |
@@ -214,7 +214,7 @@ discard block |
||
| 214 | 214 | private function getRelationships(FullyQualifiedClassName $fullyQualifiedClassName): array |
| 215 | 215 | { |
| 216 | 216 | try { |
| 217 | - $fields = (string)$fullyQualifiedClassName; |
|
| 217 | + $fields = (string) $fullyQualifiedClassName; |
|
| 218 | 218 | $relationships = []; |
| 219 | 219 | foreach ($fields::FIELDS as $field) { |
| 220 | 220 | try { |