From 18ab5ded41b3bf471f93bcf5724552a75fa2bd74 Mon Sep 17 00:00:00 2001 From: Lina Wolf <48202465+linawolf@users.noreply.github.com> Date: Mon, 18 Mar 2024 19:03:42 +0100 Subject: [PATCH] [FEATURE] Show "Permalink to this definition" link (#40) As is shown by Sphinx. --- .../html/body/directive/php/case.html.twig | 1 + .../body/directive/php/component.html.twig | 1 + .../html/body/directive/php/const.html.twig | 1 + .../html/body/directive/php/global.html.twig | 1 + .../html/body/directive/php/method.html.twig | 1 + .../php/partials/linkToSnippet.html.twig | 1 + .../body/directive/php/property.html.twig | 1 + .../class-abstract/expected/index.html | 5 +-- .../class-final-abstract/expected/index.html | 5 +-- .../class-final/expected/index.html | 5 +-- .../expected/index.html | 11 ++++--- .../expected/index.html | 8 +++-- .../expected/index.html | 8 +++-- .../class-with-const-link/expected/index.html | 8 +++-- .../class-with-const/expected/index.html | 8 +++-- .../class-with-link/expected/index.html | 11 ++++--- .../expected/index.html | 17 ++++++---- .../expected/index.html | 11 ++++--- .../class-with-method/expected/index.html | 11 ++++--- .../expected/index.html | 7 ++-- .../expected/index.html | 8 +++-- .../class-with-property/expected/index.html | 10 ++++-- .../expected/index.html | 8 +++-- .../expected/index.html | 8 +++-- .../expected/index.html | 5 +-- .../expected/index.html | 11 ++++--- .../expected/index.html | 8 +++-- .../enum-with-cases-link/expected/index.html | 17 ++++++---- .../enum-with-cases/expected/index.html | 17 ++++++---- .../enum-with-constant/expected/index.html | 6 ++-- .../enum-with-link/expected/index.html | 8 +++-- .../enum-with-namespace/expected/index.html | 8 +++-- .../enum-with-warnings/expected/index.html | 20 ++++++++---- .../expected/index.html | 8 +++-- .../exception-directive/expected/index.html | 5 +-- .../expected/index.html | 5 +-- .../exception-with-link/expected/index.html | 5 +-- .../global-variable/expected/index.html | 3 +- .../expected/index.html | 5 +-- .../interface-link/expected/index.html | 5 +-- .../expected/index.html | 8 +++-- .../interface-with-const/expected/index.html | 6 ++-- .../interface-with-method/expected/index.html | 11 ++++--- .../expected/index.html | 5 +-- .../expected/index.html | 17 ++++++---- .../expected/index.html | 32 ++++++++++++------- .../expected/index.html | 5 +-- .../method-returns/expected/index.html | 5 +-- .../static-method/expected/index.html | 5 +-- .../trait-directive/expected/index.html | 12 ++++--- .../trait-with-link/expected/index.html | 12 ++++--- 51 files changed, 271 insertions(+), 139 deletions(-) create mode 100644 resources/template/html/body/directive/php/partials/linkToSnippet.html.twig diff --git a/resources/template/html/body/directive/php/case.html.twig b/resources/template/html/body/directive/php/case.html.twig index 2b53930..aa49025 100644 --- a/resources/template/html/body/directive/php/case.html.twig +++ b/resources/template/html/body/directive/php/case.html.twig @@ -2,6 +2,7 @@
case {{ renderNode(node.memberName) }} : {% if node.backedValue -%}{{ node.backedValue }} {% endif -%} + {% include "body/directive/php/partials/linkToSnippet.html.twig" %}
{{ renderNode(node.value) }}
diff --git a/resources/template/html/body/directive/php/component.html.twig b/resources/template/html/body/directive/php/component.html.twig index 147b7bf..3a6379b 100644 --- a/resources/template/html/body/directive/php/component.html.twig +++ b/resources/template/html/body/directive/php/component.html.twig @@ -6,6 +6,7 @@ {%- endfor -%} {{ node.type }} {{ renderNode(node.name) }} {%- if node.type == 'enum' and node.phpType -%} : {{ node.phpType }} {% endif -%} + {% include "body/directive/php/partials/linkToSnippet.html.twig" %}
{{ renderNode(node.value) }} diff --git a/resources/template/html/body/directive/php/const.html.twig b/resources/template/html/body/directive/php/const.html.twig index b8d591c..f375b95 100644 --- a/resources/template/html/body/directive/php/const.html.twig +++ b/resources/template/html/body/directive/php/const.html.twig @@ -6,6 +6,7 @@ {% if node.phpType -%}{{ node.phpType }} {% endif -%} const {{ renderNode(node.memberName) }} + {% include "body/directive/php/partials/linkToSnippet.html.twig" %}
{{ renderNode(node.value) }}
diff --git a/resources/template/html/body/directive/php/global.html.twig b/resources/template/html/body/directive/php/global.html.twig index 274a194..89c3f4e 100644 --- a/resources/template/html/body/directive/php/global.html.twig +++ b/resources/template/html/body/directive/php/global.html.twig @@ -3,6 +3,7 @@ id="{{ node.id }}"> global {{ node.name }} + {% include "body/directive/php/partials/linkToSnippet.html.twig" %}
{{ renderNode(node.value) }} diff --git a/resources/template/html/body/directive/php/method.html.twig b/resources/template/html/body/directive/php/method.html.twig index ce9d3d3..4ae965e 100644 --- a/resources/template/html/body/directive/php/method.html.twig +++ b/resources/template/html/body/directive/php/method.html.twig @@ -4,6 +4,7 @@ {{- renderNode(modifier) }}{{ ' ' -}} {%- endfor -%} {{- renderNode(node.methodName) -}} + {% include "body/directive/php/partials/linkToSnippet.html.twig" %}
{{ renderNode(node.value) }} diff --git a/resources/template/html/body/directive/php/partials/linkToSnippet.html.twig b/resources/template/html/body/directive/php/partials/linkToSnippet.html.twig new file mode 100644 index 0000000..287b88a --- /dev/null +++ b/resources/template/html/body/directive/php/partials/linkToSnippet.html.twig @@ -0,0 +1 @@ + diff --git a/resources/template/html/body/directive/php/property.html.twig b/resources/template/html/body/directive/php/property.html.twig index f5ccb62..2906b49 100644 --- a/resources/template/html/body/directive/php/property.html.twig +++ b/resources/template/html/body/directive/php/property.html.twig @@ -5,6 +5,7 @@ {%- endfor -%} {% if node.phpType -%}{{ node.phpType }} {% endif -%} {{ renderNode(node.memberName) }} + {% include "body/directive/php/partials/linkToSnippet.html.twig" %}
{{ renderNode(node.value) }}
diff --git a/tests/integration/class-abstract/expected/index.html b/tests/integration/class-abstract/expected/index.html index 102ba52..44423d8 100644 --- a/tests/integration/class-abstract/expected/index.html +++ b/tests/integration/class-abstract/expected/index.html @@ -1,6 +1,6 @@
-

abstract class

+

abstract class

abstract class class \TYPO3\CMS\Core\ AbstractTest -
+ +

Lorem Ipsum Dolor!

diff --git a/tests/integration/class-final-abstract/expected/index.html b/tests/integration/class-final-abstract/expected/index.html index de9334b..e8e5be4 100644 --- a/tests/integration/class-final-abstract/expected/index.html +++ b/tests/integration/class-final-abstract/expected/index.html @@ -1,6 +1,6 @@
-

abstract final class causes warning

+

abstract final class causes warning

abstract final class causes warning class \TYPO3\CMS\Core\ Test -
+ +

Lorem Ipsum Dolor!

diff --git a/tests/integration/class-final/expected/index.html b/tests/integration/class-final/expected/index.html index b9ffe07..c9160ed 100644 --- a/tests/integration/class-final/expected/index.html +++ b/tests/integration/class-final/expected/index.html @@ -1,6 +1,6 @@
-

final class

+

final class

final class class \TYPO3\CMS\Core\ Test -
+ +

Lorem Ipsum Dolor!

diff --git a/tests/integration/class-namespace-directive/expected/index.html b/tests/integration/class-namespace-directive/expected/index.html index 904ebfd..dc89a15 100644 --- a/tests/integration/class-namespace-directive/expected/index.html +++ b/tests/integration/class-namespace-directive/expected/index.html @@ -1,6 +1,6 @@
-

PHP Class with current namespace from directive

+

PHP Class with current namespace from directive

PHP Class with current namespace from directive class \TYPO3\CMS\Core\ TestClass -
+ +

Lorem Ipsum Dolor!

@@ -20,7 +21,8 @@

PHP Class with current namespace from directive

class \TYPO3\CMS\Core\ AnotherClass - + +

Lorem Ipsum Dolor Another!

@@ -32,7 +34,8 @@

PHP Class with current namespace from directive

class \MyVendor\Some\Namespace\ AnotherClass - + +

Lorem Ipsum Dolor Yet Another!

diff --git a/tests/integration/class-with-const-illegal-modifier-combinations/expected/index.html b/tests/integration/class-with-const-illegal-modifier-combinations/expected/index.html index d3496dd..37f6db9 100644 --- a/tests/integration/class-with-const-illegal-modifier-combinations/expected/index.html +++ b/tests/integration/class-with-const-illegal-modifier-combinations/expected/index.html @@ -1,6 +1,6 @@
-

PHP class with constants

+

PHP class with constants

PHP class with constants class \ChuckleFactory\ FunClass -
+ +

Where Fun Knows No Bounds!

@@ -17,6 +18,7 @@

PHP class with constants

const JOY_CONSTANT +

The constant that encapsulates pure joy and laughter. Whenever you need a pick-me-up, just access JOY_CONSTANT and let the chuckles begin.

@@ -28,6 +30,7 @@

PHP class with constants

const GIGGLE_FACTOR +

A dynamic constant that measures the giggle intensity in the ChuckleFactory. It's known to spontaneously increase during code reviews and coffee breaks.

@@ -39,6 +42,7 @@

PHP class with constants

const WHIMSICAL_WONDER +

Unleash the power of whimsy! This constant is your key to unlocking the whimsical wonders hidden within the FunClass. Expect surprises and delight!

diff --git a/tests/integration/class-with-const-link-warning/expected/index.html b/tests/integration/class-with-const-link-warning/expected/index.html index e61e64b..92323a5 100644 --- a/tests/integration/class-with-const-link-warning/expected/index.html +++ b/tests/integration/class-with-const-link-warning/expected/index.html @@ -1,6 +1,6 @@
-

PHP class with constants

+

PHP class with constants

PHP class with constants class \SecretSociety\ EnigmaticClass -
+ +

Unveiling the mysteries of constants!

@@ -16,6 +17,7 @@

PHP class with constants

const PI +

The eternal symbol representing the ratio of a circle's circumference to its diameter. Also used as the secret handshake among mathematicians.

@@ -26,6 +28,7 @@

PHP class with constants

const SECRET_NUMBER +

This constant holds the secret number known only to members of the EnigmaticClass. Rumor has it, it's the combination to the ultimate @@ -37,6 +40,7 @@

PHP class with constants

const ETERNAL_FLAME +

The eternal flame, kept alight by the power of mystical constants. Its warmth is known only to those who dare to delve into the deepest realms diff --git a/tests/integration/class-with-const-link/expected/index.html b/tests/integration/class-with-const-link/expected/index.html index 6f016ff..f3a338e 100644 --- a/tests/integration/class-with-const-link/expected/index.html +++ b/tests/integration/class-with-const-link/expected/index.html @@ -1,6 +1,6 @@

-

PHP class with constants

+

PHP class with constants

PHP class with constants class \SecretSociety\ EnigmaticClass -
+ +

Unveiling the mysteries of constants!

@@ -16,6 +17,7 @@

PHP class with constants

const PI +

The eternal symbol representing the ratio of a circle's circumference to its diameter. Also used as the secret handshake among mathematicians.

@@ -26,6 +28,7 @@

PHP class with constants

const SECRET_NUMBER +

This constant holds the secret number known only to members of the EnigmaticClass. Rumor has it, it's the combination to the ultimate @@ -37,6 +40,7 @@

PHP class with constants

const ETERNAL_FLAME +

The eternal flame, kept alight by the power of mystical constants. Its warmth is known only to those who dare to delve into the deepest realms diff --git a/tests/integration/class-with-const/expected/index.html b/tests/integration/class-with-const/expected/index.html index 876006d..1d6d51f 100644 --- a/tests/integration/class-with-const/expected/index.html +++ b/tests/integration/class-with-const/expected/index.html @@ -1,6 +1,6 @@

-

PHP class with constants

+

PHP class with constants

PHP class with constants class \SecretSociety\ EnigmaticClass -
+ +

Unveiling the mysteries of constants!

@@ -16,6 +17,7 @@

PHP class with constants

const PI +

The eternal symbol representing the ratio of a circle's circumference to its diameter. Also used as the secret handshake among mathematicians.

@@ -26,6 +28,7 @@

PHP class with constants

const SECRET_NUMBER +

This constant holds the secret number known only to members of the EnigmaticClass. Rumor has it, it's the combination to the ultimate @@ -37,6 +40,7 @@

PHP class with constants

const ETERNAL_FLAME +

The eternal flame, kept alight by the power of mystical constants. Its warmth is known only to those who dare to delve into the deepest realms diff --git a/tests/integration/class-with-link/expected/index.html b/tests/integration/class-with-link/expected/index.html index 461b501..7290183 100644 --- a/tests/integration/class-with-link/expected/index.html +++ b/tests/integration/class-with-link/expected/index.html @@ -1,6 +1,6 @@

-

PHP Class with explicit namespace

+

PHP Class with explicit namespace

PHP Class with explicit namespace class \TYPO3\CMS\Core\ Test -
+ +

Lorem Ipsum Dolor!

setDate ( int $year, int $month, int $day) -
+ +

Set the date.

@@ -26,7 +28,8 @@

PHP Class with explicit namespace

( ) : int - + +

Get the date.

diff --git a/tests/integration/class-with-method-link-warning/expected/index.html b/tests/integration/class-with-method-link-warning/expected/index.html index 55ce482..4048e86 100644 --- a/tests/integration/class-with-method-link-warning/expected/index.html +++ b/tests/integration/class-with-method-link-warning/expected/index.html @@ -1,6 +1,6 @@
-

PHP Class with explicit namespace

+

PHP Class with explicit namespace

PHP Class with explicit namespace class \TYPO3\CMS\Core\ Test -
+ +

Lorem Ipsum Dolor!

setDate ( int $year, int $month, int $day) -
+ +

Set the date.

@@ -26,7 +28,8 @@

PHP Class with explicit namespace

( ) : int - + +

Get the date.

@@ -36,7 +39,8 @@

PHP Class with explicit namespace

id="illegalsubclass"> class IllegalSubClass - + +
@@ -44,7 +48,8 @@

PHP Class with explicit namespace

( ) : int -
+ +
diff --git a/tests/integration/class-with-method-link/expected/index.html b/tests/integration/class-with-method-link/expected/index.html index 65397bc..416f364 100644 --- a/tests/integration/class-with-method-link/expected/index.html +++ b/tests/integration/class-with-method-link/expected/index.html @@ -1,6 +1,6 @@
-

PHP Class with explicit namespace

+

PHP Class with explicit namespace

PHP Class with explicit namespace class \TYPO3\CMS\Core\ Test -
+ +

Lorem Ipsum Dolor!

setDate ( int $year, int $month, int $day) -
+ +

Set the date.

@@ -26,7 +28,8 @@

PHP Class with explicit namespace

( ) : int - + +

Get the date.

diff --git a/tests/integration/class-with-method/expected/index.html b/tests/integration/class-with-method/expected/index.html index d90f7f5..ac40a98 100644 --- a/tests/integration/class-with-method/expected/index.html +++ b/tests/integration/class-with-method/expected/index.html @@ -1,6 +1,6 @@
-

PHP Class with explicit namespace

+

PHP Class with explicit namespace

PHP Class with explicit namespace class \TYPO3\CMS\Core\ Test -
+ +

Lorem Ipsum Dolor!

setDate ( int $year, int $month, int $day) -
+ +

Set the date.

@@ -26,7 +28,8 @@

PHP Class with explicit namespace

( ) : int - + +

Get the date.

diff --git a/tests/integration/class-with-property-link/expected/index.html b/tests/integration/class-with-property-link/expected/index.html index eb2b1ed..1389111 100644 --- a/tests/integration/class-with-property-link/expected/index.html +++ b/tests/integration/class-with-property-link/expected/index.html @@ -1,19 +1,21 @@
-

PHP class with properties

+

PHP class with properties

class JollyElf -
+ +

Welcome to the magical workshop of JollyElves, spreading cheer and joy!

public string $festiveHatColor +

The color of the elf's festive hat, radiating holiday spirit. Can Improve the JollyElf::$giftCount.

@@ -23,6 +25,7 @@

PHP class with properties

protected int $giftCount +

The count of gifts wrapped by the JollyElf, a closely guarded secret.

diff --git a/tests/integration/class-with-property-warnings/expected/index.html b/tests/integration/class-with-property-warnings/expected/index.html index 83417e6..64b8656 100644 --- a/tests/integration/class-with-property-warnings/expected/index.html +++ b/tests/integration/class-with-property-warnings/expected/index.html @@ -1,13 +1,14 @@
-

PHP class with properties that cause warnings

+

PHP class with properties that cause warnings

class GrumpyGoblin -
+ +

Welcome to the gloomy world of GrumpyGoblins, spreading grumbles and dissatisfaction!

@@ -15,6 +16,7 @@

PHP class with properties that cause warnings

private string $hiddenSecret +

The grumpy goblin's hidden secret. Publicly private - an illegal combination!

@@ -24,6 +26,7 @@

PHP class with properties that cause warnings

readonly bool $ancientCurse +

The ancient curse haunting all GrumpyGoblins. A static readonly curse - an illegal combination!

@@ -32,6 +35,7 @@

PHP class with properties that cause warnings

public string $complaintBox +

The deprecated complaint box, once used by GrumpyGoblins to voice their discontent.

diff --git a/tests/integration/class-with-property/expected/index.html b/tests/integration/class-with-property/expected/index.html index 3988ea0..3472b03 100644 --- a/tests/integration/class-with-property/expected/index.html +++ b/tests/integration/class-with-property/expected/index.html @@ -1,19 +1,21 @@
-

PHP class with properties

+

PHP class with properties

class JollyElf -
+ +

Welcome to the magical workshop of JollyElves, spreading cheer and joy!

public string $festiveHatColor +

The color of the elf's festive hat, radiating holiday spirit.

@@ -22,6 +24,7 @@

PHP class with properties

protected int $giftCount +

The count of gifts wrapped by the JollyElf, a closely guarded secret.

@@ -30,6 +33,7 @@

PHP class with properties

private bool $sleighBellJingle +

Whether the sleigh bells on the elf's shoes are jingling merrily.

@@ -38,6 +42,7 @@

PHP class with properties

static int $totalGiftsWrapped +

The total count of gifts wrapped by all JollyElves in the workshop.

@@ -47,6 +52,7 @@

PHP class with properties

readonly int $entryYear +

The year the JollyElf joyfully joined the festive workshop.

diff --git a/tests/integration/class-with-staticmethod/expected/index.html b/tests/integration/class-with-staticmethod/expected/index.html index d386f47..8851879 100644 --- a/tests/integration/class-with-staticmethod/expected/index.html +++ b/tests/integration/class-with-staticmethod/expected/index.html @@ -1,6 +1,6 @@
-

PHP Class with static method

+

PHP Class with static method

PHP Class with static method class \TYPO3\CMS\Core\ Test -
+ +

Lorem Ipsum Dolor!

static @@ -17,7 +18,8 @@

PHP Class with static method

( string $whatever) : string -
+ +

Do something

diff --git a/tests/integration/class-with-typed-const/expected/index.html b/tests/integration/class-with-typed-const/expected/index.html index 08ded41..1d43174 100644 --- a/tests/integration/class-with-typed-const/expected/index.html +++ b/tests/integration/class-with-typed-const/expected/index.html @@ -1,6 +1,6 @@
-

PHP class with constants

+

PHP class with constants

PHP class with constants class \SecretSociety\ EnigmaticClass -
+ +

Unveiling the mysteries of constants!

@@ -16,6 +17,7 @@

PHP class with constants

double const PI +

The eternal symbol representing the ratio of a circle's circumference to its diameter. Also used as the secret handshake among mathematicians.

@@ -26,6 +28,7 @@

PHP class with constants

int const SECRET_NUMBER +

This constant holds the secret number known only to members of the EnigmaticClass. Rumor has it, it's the combination to the ultimate @@ -37,6 +40,7 @@

PHP class with constants

string const ETERNAL_FLAME +

The eternal flame, kept alight by the power of mystical constants. Its warmth is known only to those who dare to delve into the deepest realms diff --git a/tests/integration/class-without-namespace/expected/index.html b/tests/integration/class-without-namespace/expected/index.html index 6f85e81..3abda02 100644 --- a/tests/integration/class-without-namespace/expected/index.html +++ b/tests/integration/class-without-namespace/expected/index.html @@ -1,13 +1,14 @@

-

PHP Class

+

PHP Class

class TestClass -
+ +

Lorem Ipsum Dolor!

diff --git a/tests/integration/enum-backed-with-cases/expected/index.html b/tests/integration/enum-backed-with-cases/expected/index.html index 6a3180f..226006c 100644 --- a/tests/integration/enum-backed-with-cases/expected/index.html +++ b/tests/integration/enum-backed-with-cases/expected/index.html @@ -1,27 +1,30 @@
-

PHP Enum, backed, with cases

+

PHP Enum, backed, with cases

enum RedSuit - : string
+ : string +

In playing cards, a suit is one of the categories into which the cards of a deck are divided.

case Hearts - : 'H'
+ : 'H' +

Hearts is one of the four suits in playing cards.

case Diamonds - : 'D'
+ : 'D' +

Diamonds is one of the four suits in playing cards.

diff --git a/tests/integration/enum-namespace-directive/expected/index.html b/tests/integration/enum-namespace-directive/expected/index.html index b4d4d90..4058d78 100644 --- a/tests/integration/enum-namespace-directive/expected/index.html +++ b/tests/integration/enum-namespace-directive/expected/index.html @@ -1,6 +1,6 @@
-

PHP Enum with current namespace from directive

+

PHP Enum with current namespace from directive

PHP Enum with current namespace from directive enum \MyVendor\MyExtension\ SomeEnum -
+ +

some stuff

@@ -20,7 +21,8 @@

PHP Enum with current namespace from directive

enum \MyVendor\MyExtension\ AnotherEnum - + +

another stuff

diff --git a/tests/integration/enum-with-cases-link/expected/index.html b/tests/integration/enum-with-cases-link/expected/index.html index bda9290..842af49 100644 --- a/tests/integration/enum-with-cases-link/expected/index.html +++ b/tests/integration/enum-with-cases-link/expected/index.html @@ -1,20 +1,22 @@
-

PHP Enum with Const

+

PHP Enum with Const

enum Suit -
+ +

In playing cards, a suit is one of the categories into which the cards of a deck are divided.

case Hearts - :
+ : +

Hearts is one of the four suits in playing cards. It is red just like Suit::Diamonds.

@@ -22,21 +24,24 @@

PHP Enum with Const

case Diamonds - :
+ : +

Diamonds is one of the four suits in playing cards.

case Clubs - :
+ : +

Clubs is one of the four suits in playing cards.

case Spades - :
+ : +

Spades is one of the four suits in playing cards.

diff --git a/tests/integration/enum-with-cases/expected/index.html b/tests/integration/enum-with-cases/expected/index.html index 1fa60de..5bd2a46 100644 --- a/tests/integration/enum-with-cases/expected/index.html +++ b/tests/integration/enum-with-cases/expected/index.html @@ -1,41 +1,46 @@
-

PHP Enum with Const

+

PHP Enum with Const

enum Suit -
+ +

In playing cards, a suit is one of the categories into which the cards of a deck are divided.

case Hearts - :
+ : +

Hearts is one of the four suits in playing cards.

case Diamonds - :
+ : +

Diamonds is one of the four suits in playing cards.

case Clubs - :
+ : +

Clubs is one of the four suits in playing cards.

case Spades - :
+ : +

Spades is one of the four suits in playing cards.

diff --git a/tests/integration/enum-with-constant/expected/index.html b/tests/integration/enum-with-constant/expected/index.html index a02658d..77ce4a7 100644 --- a/tests/integration/enum-with-constant/expected/index.html +++ b/tests/integration/enum-with-constant/expected/index.html @@ -1,6 +1,6 @@
-

PHP Enum with Const

+

PHP Enum with Const

PHP Enum with Const enum \MyVendor\MyExtension\ SomeEnum -
+ +

some stuff

const PI +

represents the ratio of a circle's circumference to its diameter

diff --git a/tests/integration/enum-with-link/expected/index.html b/tests/integration/enum-with-link/expected/index.html index 5459591..6452298 100644 --- a/tests/integration/enum-with-link/expected/index.html +++ b/tests/integration/enum-with-link/expected/index.html @@ -1,6 +1,6 @@
-

PHP Enum with current namespace from directive

+

PHP Enum with current namespace from directive

PHP Enum with current namespace from directive enum \MyVendor\MyExtension\ SomeEnum -
+ +

some stuff

@@ -20,7 +21,8 @@

PHP Enum with current namespace from directive

enum \MyVendor\MyExtension\ AnotherEnum - + +

another stuff

diff --git a/tests/integration/enum-with-namespace/expected/index.html b/tests/integration/enum-with-namespace/expected/index.html index eb0b092..19124ff 100644 --- a/tests/integration/enum-with-namespace/expected/index.html +++ b/tests/integration/enum-with-namespace/expected/index.html @@ -1,6 +1,6 @@
-

PHP Enum without namespace from directive

+

PHP Enum without namespace from directive

PHP Enum without namespace from directive enum \MyVendor\MyExtension\ SomeEnum -
+ +

some stuff

@@ -20,7 +21,8 @@

PHP Enum without namespace from directive

enum \MyVendor\MyExtension\ AnotherEnum - + +

another stuff

diff --git a/tests/integration/enum-with-warnings/expected/index.html b/tests/integration/enum-with-warnings/expected/index.html index 8967186..82e00ae 100644 --- a/tests/integration/enum-with-warnings/expected/index.html +++ b/tests/integration/enum-with-warnings/expected/index.html @@ -1,27 +1,30 @@
-

PHP Enum with Warnings

+

PHP Enum with Warnings

enum RedSuit - : string
+ : string +

In playing cards, a suit is one of the categories into which the cards of a deck are divided.

case Hearts - : 'H'
+ : 'H' +

Hearts is one of the four suits in playing cards.

case Diamonds - : 'D'
+ : 'D' +

Diamonds is one of the four suits in playing cards.

@@ -33,20 +36,23 @@

PHP Enum with Warnings

id="blacksuit"> enum BlackSuit - : string + : string +
case Clubs : 'C' - :
+ : +

Clubs is one of the four suits in playing cards.

case Spades : 'S' - :
+ : +

Spades is one of the four suits in playing cards.

diff --git a/tests/integration/enum-without-namespace/expected/index.html b/tests/integration/enum-without-namespace/expected/index.html index 3ffcaeb..4a8b92a 100644 --- a/tests/integration/enum-without-namespace/expected/index.html +++ b/tests/integration/enum-without-namespace/expected/index.html @@ -1,13 +1,14 @@
-

PHP Enum without namespace from directive

+

PHP Enum without namespace from directive

enum SomeEnum -
+ +

some stuff

@@ -18,7 +19,8 @@

PHP Enum without namespace from directive

id="anotherenum"> enum AnotherEnum - + +

another stuff

diff --git a/tests/integration/exception-directive/expected/index.html b/tests/integration/exception-directive/expected/index.html index 2939938..0a36050 100644 --- a/tests/integration/exception-directive/expected/index.html +++ b/tests/integration/exception-directive/expected/index.html @@ -1,6 +1,6 @@
-

PHP Exception

+

PHP Exception

PHP Exception exception \TYPO3\CMS\Core\Exception\Page\ BrokenRootLineException -
+ +

Exception for root line traversal when a page within the root line traversal is missing / can not be resolved.

diff --git a/tests/integration/exception-with-link-deprecated/expected/index.html b/tests/integration/exception-with-link-deprecated/expected/index.html index fdcd2bb..4198281 100644 --- a/tests/integration/exception-with-link-deprecated/expected/index.html +++ b/tests/integration/exception-with-link-deprecated/expected/index.html @@ -1,6 +1,6 @@
-

PHP Exception

+

PHP Exception

PHP Exception exception \TYPO3\CMS\Core\Exception\Page\ BrokenRootLineException -
+ +

Exception for root line traversal when a page within the root line traversal is missing / can not be resolved.

diff --git a/tests/integration/exception-with-link/expected/index.html b/tests/integration/exception-with-link/expected/index.html index fdcd2bb..4198281 100644 --- a/tests/integration/exception-with-link/expected/index.html +++ b/tests/integration/exception-with-link/expected/index.html @@ -1,6 +1,6 @@
-

PHP Exception

+

PHP Exception

PHP Exception exception \TYPO3\CMS\Core\Exception\Page\ BrokenRootLineException -
+ +

Exception for root line traversal when a page within the root line traversal is missing / can not be resolved.

diff --git a/tests/integration/global-variable/expected/index.html b/tests/integration/global-variable/expected/index.html index e34b058..4c7b50d 100644 --- a/tests/integration/global-variable/expected/index.html +++ b/tests/integration/global-variable/expected/index.html @@ -1,12 +1,13 @@
-

PHP Global Variable

+

PHP Global Variable

global $GLOBALS['TCA'] +

Contains the TYPO3 Configuration Array

diff --git a/tests/integration/interface-implicit-namespace/expected/index.html b/tests/integration/interface-implicit-namespace/expected/index.html index 013e5d0..dbd2a03 100644 --- a/tests/integration/interface-implicit-namespace/expected/index.html +++ b/tests/integration/interface-implicit-namespace/expected/index.html @@ -1,6 +1,6 @@
-

PHP Interface with implicit namespace

+

PHP Interface with implicit namespace

PHP Interface with implicit namespace interface \TYPO3\CMS\Core\ TestInterface -
+ +

Lorem Ipsum Dolor!

diff --git a/tests/integration/interface-link/expected/index.html b/tests/integration/interface-link/expected/index.html index dc46567..96926ed 100644 --- a/tests/integration/interface-link/expected/index.html +++ b/tests/integration/interface-link/expected/index.html @@ -1,6 +1,6 @@
-

PHP Interface with implicit namespace

+

PHP Interface with implicit namespace

PHP Interface with implicit namespace interface \TYPO3\CMS\Core\ TestInterface -
+ +

Lorem Ipsum Dolor!

diff --git a/tests/integration/interface-namespace-directive/expected/index.html b/tests/integration/interface-namespace-directive/expected/index.html index fd3c685..dfcd403 100644 --- a/tests/integration/interface-namespace-directive/expected/index.html +++ b/tests/integration/interface-namespace-directive/expected/index.html @@ -1,6 +1,6 @@
-

PHP Interface with current namespace from directive

+

PHP Interface with current namespace from directive

PHP Interface with current namespace from directive interface \TYPO3\CMS\Core\ TestInterface -
+ +

Lorem Ipsum Dolor!

@@ -20,7 +21,8 @@

PHP Interface with current namespace from directive

interface \TYPO3\CMS\Core\ AnotherInterface - + +

Lorem Ipsum Dolor Another!

diff --git a/tests/integration/interface-with-const/expected/index.html b/tests/integration/interface-with-const/expected/index.html index ac8c9e2..2ca6529 100644 --- a/tests/integration/interface-with-const/expected/index.html +++ b/tests/integration/interface-with-const/expected/index.html @@ -1,6 +1,6 @@
-

PHP Interface with const

+

PHP Interface with const

PHP Interface with const interface \TYPO3\CMS\Core\ TestInterface -
+ +

Lorem Ipsum Dolor!

const ATOM +

The ATOM

diff --git a/tests/integration/interface-with-method/expected/index.html b/tests/integration/interface-with-method/expected/index.html index 9abb75c..e9e0acc 100644 --- a/tests/integration/interface-with-method/expected/index.html +++ b/tests/integration/interface-with-method/expected/index.html @@ -1,6 +1,6 @@
-

PHP Interface with implicit namespace

+

PHP Interface with implicit namespace

PHP Interface with implicit namespace interface \TYPO3\CMS\Core\ TestInterface -
+ +

Lorem Ipsum Dolor!

setDate ( int $year, int $month, int $day) -
+ +

Set the date.

@@ -26,7 +28,8 @@

PHP Interface with implicit namespace

( ) : int - + +

Get the date.

diff --git a/tests/integration/interface-without-namespace/expected/index.html b/tests/integration/interface-without-namespace/expected/index.html index 1e02f40..ff85584 100644 --- a/tests/integration/interface-without-namespace/expected/index.html +++ b/tests/integration/interface-without-namespace/expected/index.html @@ -1,13 +1,14 @@
-

PHP Interface

+

PHP Interface

interface TestInterface -
+ +

Lorem Ipsum Dolor!

diff --git a/tests/integration/method-illegal-combinations/expected/index.html b/tests/integration/method-illegal-combinations/expected/index.html index a6c2bc9..8e46d8d 100644 --- a/tests/integration/method-illegal-combinations/expected/index.html +++ b/tests/integration/method-illegal-combinations/expected/index.html @@ -1,6 +1,6 @@
-

PHP method with allowed modifier combinations

+

PHP method with allowed modifier combinations

abstract @@ -11,7 +11,8 @@

PHP method with allowed modifier combinations

( string $whatever) : string -
+ +

Do something

@@ -25,7 +26,8 @@

PHP method with allowed modifier combinations

( string $whatever) : string - + +

Do something

@@ -39,7 +41,8 @@

PHP method with allowed modifier combinations

( string $whatever) : string - + +

Do something

@@ -53,7 +56,8 @@

PHP method with allowed modifier combinations

( string $whatever) : string - + +

Do something

@@ -67,7 +71,8 @@

PHP method with allowed modifier combinations

( string $whatever) : string - + +

Do something

diff --git a/tests/integration/method-legal-combinations/expected/index.html b/tests/integration/method-legal-combinations/expected/index.html index cb64896..381b5da 100644 --- a/tests/integration/method-legal-combinations/expected/index.html +++ b/tests/integration/method-legal-combinations/expected/index.html @@ -1,6 +1,6 @@
-

PHP method with allowed modifier combinations

+

PHP method with allowed modifier combinations

abstract @@ -9,7 +9,8 @@

PHP method with allowed modifier combinations

( string $whatever) : string -
+ +

Do something

@@ -23,7 +24,8 @@

PHP method with allowed modifier combinations

( string $whatever) : string - + +

Do something

@@ -36,7 +38,8 @@

PHP method with allowed modifier combinations

( string $whatever) : string - + +

Do something

@@ -49,7 +52,8 @@

PHP method with allowed modifier combinations

( string $whatever) : string - + +

Do something

@@ -62,7 +66,8 @@

PHP method with allowed modifier combinations

( string $whatever) : string - + +

Do something

@@ -75,7 +80,8 @@

PHP method with allowed modifier combinations

( string $whatever) : string - + +

Do something

@@ -89,7 +95,8 @@

PHP method with allowed modifier combinations

( string $whatever) : string - + +

Do something

@@ -103,7 +110,8 @@

PHP method with allowed modifier combinations

( string $whatever) : string - + +

Do something

@@ -118,7 +126,8 @@

PHP method with allowed modifier combinations

( string $whatever) : string - + +

Do something

@@ -132,7 +141,8 @@

PHP method with allowed modifier combinations

( string $whatever) : string - + +

Do something

diff --git a/tests/integration/method-returns-fieldlist/expected/index.html b/tests/integration/method-returns-fieldlist/expected/index.html index f6d91e1..a6b06db 100644 --- a/tests/integration/method-returns-fieldlist/expected/index.html +++ b/tests/integration/method-returns-fieldlist/expected/index.html @@ -1,13 +1,14 @@
-

PHP methods with return value

+

PHP methods with return value

getDate ( ) -
+ +

Get the date.

diff --git a/tests/integration/method-returns/expected/index.html b/tests/integration/method-returns/expected/index.html index 5e4c1b5..abb5bd5 100644 --- a/tests/integration/method-returns/expected/index.html +++ b/tests/integration/method-returns/expected/index.html @@ -1,13 +1,14 @@
-

PHP methods with return value

+

PHP methods with return value

getSomething ( ) -
+ +

Lorem Ipsum

diff --git a/tests/integration/static-method/expected/index.html b/tests/integration/static-method/expected/index.html index 4d9f6bc..f24e833 100644 --- a/tests/integration/static-method/expected/index.html +++ b/tests/integration/static-method/expected/index.html @@ -1,6 +1,6 @@
-

PHP static method

+

PHP static method

static @@ -9,7 +9,8 @@

PHP static method

( string $whatever) : string -
+ +

Do something

diff --git a/tests/integration/trait-directive/expected/index.html b/tests/integration/trait-directive/expected/index.html index 7ea65ea..b8605e7 100644 --- a/tests/integration/trait-directive/expected/index.html +++ b/tests/integration/trait-directive/expected/index.html @@ -1,6 +1,6 @@
-

PHP Trait

+

PHP Trait

PHP Trait trait \TYPO3\CMS\Core\Context\ ContextAwareTrait -
+ +
@@ -16,6 +17,7 @@

PHP Trait

const FLAG_1 +
@@ -24,7 +26,8 @@

PHP Trait

setContext ( Context $context) - + +
@@ -34,7 +37,8 @@

PHP Trait

getContext ( ) - + +
diff --git a/tests/integration/trait-with-link/expected/index.html b/tests/integration/trait-with-link/expected/index.html index 6675939..23eb449 100644 --- a/tests/integration/trait-with-link/expected/index.html +++ b/tests/integration/trait-with-link/expected/index.html @@ -1,6 +1,6 @@
-

PHP Trait

+

PHP Trait

PHP Trait trait \TYPO3\CMS\Core\Context\ ContextAwareTrait -
+ +
@@ -16,6 +17,7 @@

PHP Trait

const FLAG_1 +
@@ -24,7 +26,8 @@

PHP Trait

setContext ( Context $context) - + +
@@ -34,7 +37,8 @@

PHP Trait

getContext ( ) - + +