Skip to content

Commit e6c39c6

Browse files
committed
Improve doxygen documentation by explicitly importing Exception
Change-Id: Ic8e39c94e2b01adccc250d679580ad3dcd3af930
1 parent d1d703e commit e6c39c6

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

61 files changed

+206
-122
lines changed

src/Stub/AbortController.php

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55

66
namespace Wikimedia\IDLeDOM\Stub;
77

8+
use Exception;
89
use Wikimedia\IDLeDOM\AbortSignal;
910

1011
trait AbortController {
@@ -14,9 +15,9 @@ trait AbortController {
1415
// phpcs:disable MediaWiki.NamingConventions.LowerCamelFunctionsName.FunctionName
1516

1617
/**
17-
* @return \Exception
18+
* @return Exception
1819
*/
19-
abstract protected function _unimplemented() : \Exception;
20+
abstract protected function _unimplemented() : Exception;
2021

2122
// phpcs:enable
2223

src/Stub/AbortSignal.php

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55

66
namespace Wikimedia\IDLeDOM\Stub;
77

8+
use Exception;
89
use Wikimedia\IDLeDOM\EventHandlerNonNull;
910

1011
trait AbortSignal {
@@ -15,9 +16,9 @@ trait AbortSignal {
1516
// phpcs:disable MediaWiki.NamingConventions.LowerCamelFunctionsName.FunctionName
1617

1718
/**
18-
* @return \Exception
19+
* @return Exception
1920
*/
20-
abstract protected function _unimplemented() : \Exception;
21+
abstract protected function _unimplemented() : Exception;
2122

2223
// phpcs:enable
2324

src/Stub/AbstractRange.php

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55

66
namespace Wikimedia\IDLeDOM\Stub;
77

8+
use Exception;
89
use Wikimedia\IDLeDOM\Node;
910

1011
trait AbstractRange {
@@ -14,9 +15,9 @@ trait AbstractRange {
1415
// phpcs:disable MediaWiki.NamingConventions.LowerCamelFunctionsName.FunctionName
1516

1617
/**
17-
* @return \Exception
18+
* @return Exception
1819
*/
19-
abstract protected function _unimplemented() : \Exception;
20+
abstract protected function _unimplemented() : Exception;
2021

2122
// phpcs:enable
2223

src/Stub/AddEventListenerOptions.php

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55

66
namespace Wikimedia\IDLeDOM\Stub;
77

8+
use Exception;
89
use Wikimedia\IDLeDOM\AbortSignal;
910

1011
trait AddEventListenerOptions {
@@ -15,9 +16,9 @@ trait AddEventListenerOptions {
1516
// phpcs:disable MediaWiki.NamingConventions.LowerCamelFunctionsName.FunctionName
1617

1718
/**
18-
* @return \Exception
19+
* @return Exception
1920
*/
20-
abstract protected function _unimplemented() : \Exception;
21+
abstract protected function _unimplemented() : Exception;
2122

2223
// phpcs:enable
2324

src/Stub/AssignedNodesOptions.php

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,16 +5,18 @@
55

66
namespace Wikimedia\IDLeDOM\Stub;
77

8+
use Exception;
9+
810
trait AssignedNodesOptions {
911

1012
// Underscore is used to avoid conflicts with DOM-reserved names
1113
// phpcs:disable PSR2.Methods.MethodDeclaration.Underscore
1214
// phpcs:disable MediaWiki.NamingConventions.LowerCamelFunctionsName.FunctionName
1315

1416
/**
15-
* @return \Exception
17+
* @return Exception
1618
*/
17-
abstract protected function _unimplemented() : \Exception;
19+
abstract protected function _unimplemented() : Exception;
1820

1921
// phpcs:enable
2022

src/Stub/Attr.php

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55

66
namespace Wikimedia\IDLeDOM\Stub;
77

8+
use Exception;
89
use Wikimedia\IDLeDOM\Element;
910

1011
trait Attr {
@@ -16,9 +17,9 @@ trait Attr {
1617
// phpcs:disable MediaWiki.NamingConventions.LowerCamelFunctionsName.FunctionName
1718

1819
/**
19-
* @return \Exception
20+
* @return Exception
2021
*/
21-
abstract protected function _unimplemented() : \Exception;
22+
abstract protected function _unimplemented() : Exception;
2223

2324
// phpcs:enable
2425

src/Stub/CDATASection.php

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,8 @@
55

66
namespace Wikimedia\IDLeDOM\Stub;
77

8+
use Exception;
9+
810
trait CDATASection {
911
// use \Wikimedia\IDLeDOM\Stub\Text;
1012
// use \Wikimedia\IDLeDOM\Stub\CharacterData;
@@ -19,9 +21,9 @@ trait CDATASection {
1921
// phpcs:disable MediaWiki.NamingConventions.LowerCamelFunctionsName.FunctionName
2022

2123
/**
22-
* @return \Exception
24+
* @return Exception
2325
*/
24-
abstract protected function _unimplemented() : \Exception;
26+
abstract protected function _unimplemented() : Exception;
2527

2628
// phpcs:enable
2729

src/Stub/CharacterData.php

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,8 @@
55

66
namespace Wikimedia\IDLeDOM\Stub;
77

8+
use Exception;
9+
810
trait CharacterData {
911
// use \Wikimedia\IDLeDOM\Stub\Node;
1012
// use \Wikimedia\IDLeDOM\Stub\EventTarget;
@@ -16,9 +18,9 @@ trait CharacterData {
1618
// phpcs:disable MediaWiki.NamingConventions.LowerCamelFunctionsName.FunctionName
1719

1820
/**
19-
* @return \Exception
21+
* @return Exception
2022
*/
21-
abstract protected function _unimplemented() : \Exception;
23+
abstract protected function _unimplemented() : Exception;
2224

2325
// phpcs:enable
2426

src/Stub/ChildNode.php

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55

66
namespace Wikimedia\IDLeDOM\Stub;
77

8+
use Exception;
89
use Wikimedia\IDLeDOM\Node;
910

1011
trait ChildNode {
@@ -14,9 +15,9 @@ trait ChildNode {
1415
// phpcs:disable MediaWiki.NamingConventions.LowerCamelFunctionsName.FunctionName
1516

1617
/**
17-
* @return \Exception
18+
* @return Exception
1819
*/
19-
abstract protected function _unimplemented() : \Exception;
20+
abstract protected function _unimplemented() : Exception;
2021

2122
// phpcs:enable
2223

src/Stub/Comment.php

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,8 @@
55

66
namespace Wikimedia\IDLeDOM\Stub;
77

8+
use Exception;
9+
810
trait Comment {
911
// use \Wikimedia\IDLeDOM\Stub\CharacterData;
1012
// use \Wikimedia\IDLeDOM\Stub\Node;
@@ -17,9 +19,9 @@ trait Comment {
1719
// phpcs:disable MediaWiki.NamingConventions.LowerCamelFunctionsName.FunctionName
1820

1921
/**
20-
* @return \Exception
22+
* @return Exception
2123
*/
22-
abstract protected function _unimplemented() : \Exception;
24+
abstract protected function _unimplemented() : Exception;
2325

2426
// phpcs:enable
2527

0 commit comments

Comments
 (0)