Skip to content

Commit

Permalink
[~]: auto-fix the code-style
Browse files Browse the repository at this point in the history
  • Loading branch information
voku committed May 25, 2020
1 parent 15bc259 commit a991924
Showing 1 changed file with 5 additions and 6 deletions.
11 changes: 5 additions & 6 deletions src/voku/SimplePhpParser/Parsers/PhpCodeParser.php
Expand Up @@ -218,7 +218,7 @@ private static function mergeIngeritdocData(
foreach ($class->interfaces as $interfaceStr) {
/** @noinspection UnnecessaryIssetArgumentsInspection */
if (isset($interfaces[$interfaceStr], $interfaces[$interfaceStr]->methods[$method->name])) {
$interfaceMethod = $interfaces[$interfaceStr]->methods[$method->name];;
$interfaceMethod = $interfaces[$interfaceStr]->methods[$method->name];

/** @noinspection AlterInForeachInspection */
/** @psalm-suppress RawObjectIteration */
Expand All @@ -228,14 +228,13 @@ private static function mergeIngeritdocData(
&&
$interfaceMethod->{$key} !== null
&&
stripos($key, 'typeFromPhpDoc') !== false
\stripos($key, 'typeFromPhpDoc') !== false
) {
$value = $interfaceMethod->{$key};
}

if ($key === 'parameters') {
foreach ($value as $parameterName => $parameter) {

\assert($parameter instanceof \voku\SimplePhpParser\Model\PHPParameter);

if (!isset($interfaceMethod->parameters[$parameterName])) {
Expand All @@ -252,7 +251,7 @@ private static function mergeIngeritdocData(
&&
$interfaceMethodParameter->{$keyInner} !== null
&&
stripos($keyInner, 'typeFromPhpDoc') !== false
\stripos($keyInner, 'typeFromPhpDoc') !== false
) {
$valueInner = $interfaceMethodParameter->{$keyInner};
}
Expand All @@ -274,7 +273,7 @@ private static function mergeIngeritdocData(
&&
$parentMethod->{$key} !== null
&&
stripos($key, 'typeFromPhpDoc') !== false
\stripos($key, 'typeFromPhpDoc') !== false
) {
$value = $parentMethod->{$key};
}
Expand All @@ -295,7 +294,7 @@ private static function mergeIngeritdocData(
&&
$parentMethodParameter->{$keyInner} !== null
&&
stripos($keyInner, 'typeFromPhpDoc') !== false
\stripos($keyInner, 'typeFromPhpDoc') !== false
) {
$valueInner = $parentMethodParameter->{$keyInner};
}
Expand Down

0 comments on commit a991924

Please sign in to comment.