Commit ba6fa129 authored by Benni Mack's avatar Benni Mack Committed by Wouter Wolters
Browse files

[BUGFIX] Fix spelling in InheritancesResolverService

Resolves: #84862
Releases: master
Change-Id: I40bff1e106efad9c43780e2df1e6ddb54b64fd1f
Reviewed-on: https://review.typo3.org/56800

Reviewed-by: Andreas Fernandez's avatarAndreas Fernandez <a.fernandez@scripting-base.de>
Tested-by: Andreas Fernandez's avatarAndreas Fernandez <a.fernandez@scripting-base.de>
Reviewed-by: Wouter Wolters's avatarWouter Wolters <typo3@wouterwolters.nl>
Tested-by: Wouter Wolters's avatarWouter Wolters <typo3@wouterwolters.nl>
Tested-by: default avatarTYPO3com <no-reply@typo3.com>
parent 03848901
...@@ -89,7 +89,7 @@ class InheritancesResolverService ...@@ -89,7 +89,7 @@ class InheritancesResolverService
* *
* @var string * @var string
*/ */
protected $inheritancePathToCkeck = ''; protected $inheritancePathToCheck = '';
/** /**
* Returns an instance of this service. Additionally the configuration * Returns an instance of this service. Additionally the configuration
...@@ -119,7 +119,7 @@ class InheritancesResolverService ...@@ -119,7 +119,7 @@ class InheritancesResolverService
{ {
$this->referenceConfiguration = []; $this->referenceConfiguration = [];
$this->inheritanceStack = []; $this->inheritanceStack = [];
$this->inheritancePathToCkeck = ''; $this->inheritancePathToCheck = '';
return $this; return $this;
} }
...@@ -162,13 +162,13 @@ class InheritancesResolverService ...@@ -162,13 +162,13 @@ class InheritancesResolverService
* *
* @param array $configuration - a mapped YAML configuration (full or partial) * @param array $configuration - a mapped YAML configuration (full or partial)
* @param array $pathStack - an identifier for YAML key as array (Form.part1.key => {Form, part1, key}) * @param array $pathStack - an identifier for YAML key as array (Form.part1.key => {Form, part1, key})
* @param bool $setInheritancePathToCkeck * @param bool $setInheritancePathToCheck
* @return array * @return array
*/ */
protected function resolve( protected function resolve(
array $configuration, array $configuration,
array $pathStack = [], array $pathStack = [],
bool $setInheritancePathToCkeck = true bool $setInheritancePathToCheck = true
): array { ): array {
foreach ($configuration as $key => $values) { foreach ($configuration as $key => $values) {
//add current key to pathStack //add current key to pathStack
...@@ -179,8 +179,8 @@ class InheritancesResolverService ...@@ -179,8 +179,8 @@ class InheritancesResolverService
$this->throwExceptionIfCycleInheritances($path, $path); $this->throwExceptionIfCycleInheritances($path, $path);
//overwrite service property 'inheritancePathToCheck' with current path //overwrite service property 'inheritancePathToCheck' with current path
if ($setInheritancePathToCkeck) { if ($setInheritancePathToCheck) {
$this->inheritancePathToCkeck = $path; $this->inheritancePathToCheck = $path;
} }
//if value of subnode is an array, perform a deep search iteration step //if value of subnode is an array, perform a deep search iteration step
...@@ -230,9 +230,9 @@ class InheritancesResolverService ...@@ -230,9 +230,9 @@ class InheritancesResolverService
isset($inheritedConfiguration[self::INHERITANCE_OPERATOR]) isset($inheritedConfiguration[self::INHERITANCE_OPERATOR])
&& count($inheritedConfiguration) === 1 && count($inheritedConfiguration) === 1
) { ) {
if ($this->inheritancePathToCkeck === $inheritancePath) { if ($this->inheritancePathToCheck === $inheritancePath) {
throw new CycleInheritancesException( throw new CycleInheritancesException(
$this->inheritancePathToCkeck . ' has cycle inheritances', $this->inheritancePathToCheck . ' has cycle inheritances',
1474900796 1474900796
); );
} }
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment