@@ -33,7 +33,10 @@ |
||
| 33 | 33 | |
| 34 | 34 | <?php if ($domainName) : ?> |
| 35 | 35 | <p><b>Domännamn: </b> <?= $domainName ?> </p> |
| 36 | - <?php else : ?> |
|
| 36 | + <?php else { |
|
| 37 | + : ?> |
|
| 37 | 38 | <p><b>Domännamn: </b> inget domännamn funnet </p> |
| 38 | - <?php endif; ?> |
|
| 39 | + <?php endif; |
|
| 40 | +} |
|
| 41 | +?> |
|
| 39 | 42 | <?php endif; ?> |
@@ -33,7 +33,10 @@ |
||
| 33 | 33 | |
| 34 | 34 | <?php if ($domainName) : ?> |
| 35 | 35 | <p><b>Domännamn: </b> <?= $domainName ?> </p> |
| 36 | - <?php else : ?> |
|
| 36 | + <?php else { |
|
| 37 | + : ?> |
|
| 37 | 38 | <p><b>Domännamn: </b> inget domännamn funnet </p> |
| 38 | - <?php endif; ?> |
|
| 39 | + <?php endif; |
|
| 40 | +} |
|
| 41 | +?> |
|
| 39 | 42 | <?php endif; ?> |
@@ -21,7 +21,6 @@ |
||
| 21 | 21 | * @param array $args as a variadic to catch all arguments. |
| 22 | 22 | * |
| 23 | 23 | * @throws Anax\Route\Exception\NotFoundException when route is not found. |
| 24 | - |
|
| 25 | 24 | * @return object as the response. |
| 26 | 25 | * |
| 27 | 26 | * @SuppressWarnings(PHPMD.UnusedFormalParameter) |
@@ -22,7 +22,6 @@ |
||
| 22 | 22 | * @param string $message with details. |
| 23 | 23 | * |
| 24 | 24 | * @throws Anax\Route\Exception\NotFoundException |
| 25 | - |
|
| 26 | 25 | * @return object as the response. |
| 27 | 26 | */ |
| 28 | 27 | public function catchAll(...$args) : object |
@@ -60,8 +60,8 @@ |
||
| 60 | 60 | $comparator->assertEquals($argument, $this->value); |
| 61 | 61 | return 10; |
| 62 | 62 | } catch (ComparisonFailure $failure) { |
| 63 | - return false; |
|
| 64 | - } |
|
| 63 | + return false; |
|
| 64 | + } |
|
| 65 | 65 | } |
| 66 | 66 | |
| 67 | 67 | // If either one is an object it should be castable to a string |
@@ -162,7 +162,7 @@ |
||
| 162 | 162 | } |
| 163 | 163 | |
| 164 | 164 | private function createUnexpectedCallException(ObjectProphecy $prophecy, $methodName, |
| 165 | - array $arguments) |
|
| 165 | + array $arguments) |
|
| 166 | 166 | { |
| 167 | 167 | $classname = get_class($prophecy->reveal()); |
| 168 | 168 | $indentationLength = 8; // looks good |
@@ -79,8 +79,7 @@ discard block |
||
| 79 | 79 | |
| 80 | 80 | if ($reflectionType instanceof ReflectionNamedType) { |
| 81 | 81 | $types = [$reflectionType]; |
| 82 | - } |
|
| 83 | - elseif ($reflectionType instanceof ReflectionUnionType) { |
|
| 82 | + } elseif ($reflectionType instanceof ReflectionUnionType) { |
|
| 84 | 83 | $types = $reflectionType->getTypes(); |
| 85 | 84 | } |
| 86 | 85 | |
@@ -96,8 +95,7 @@ discard block |
||
| 96 | 95 | // null is lowest priority |
| 97 | 96 | if ($type2 == 'null') { |
| 98 | 97 | return -1; |
| 99 | - } |
|
| 100 | - elseif ($type1 == 'null') { |
|
| 98 | + } elseif ($type1 == 'null') { |
|
| 101 | 99 | return 1; |
| 102 | 100 | } |
| 103 | 101 | |
@@ -108,8 +106,7 @@ discard block |
||
| 108 | 106 | |
| 109 | 107 | if($isObject($type1) && !$isObject($type2)) { |
| 110 | 108 | return -1; |
| 111 | - } |
|
| 112 | - elseif(!$isObject($type1) && $isObject($type2)) |
|
| 109 | + } elseif(!$isObject($type1) && $isObject($type2)) |
|
| 113 | 110 | { |
| 114 | 111 | return 1; |
| 115 | 112 | } |
@@ -215,8 +215,7 @@ |
||
| 215 | 215 | if ($type instanceof ReflectionNamedType) { |
| 216 | 216 | $types = [$type->getName()]; |
| 217 | 217 | |
| 218 | - } |
|
| 219 | - elseif ($type instanceof ReflectionUnionType) { |
|
| 218 | + } elseif ($type instanceof ReflectionUnionType) { |
|
| 220 | 219 | $types = $type->getTypes(); |
| 221 | 220 | } |
| 222 | 221 | |
@@ -136,8 +136,7 @@ |
||
| 136 | 136 | { |
| 137 | 137 | if ($bool) { |
| 138 | 138 | $this->returnTypeNode = new ReturnTypeNode('null', ...$this->returnTypeNode->getTypes()); |
| 139 | - } |
|
| 140 | - else { |
|
| 139 | + } else { |
|
| 141 | 140 | $this->returnTypeNode = new ReturnTypeNode(...$this->returnTypeNode->getNonNullTypes()); |
| 142 | 141 | } |
| 143 | 142 | } |