From 526f4b4a8197d8c38b6dfd3ae5a17e5d10c0be13 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Denis=20=C5=BDoljom?= Date: Fri, 5 Jan 2024 11:34:10 +0100 Subject: [PATCH] Add the documentation for the PSR12 File Header sniff --- .../PSR12/Docs/Files/FileHeaderStandard.xml | 157 ++++++++++++++++++ 1 file changed, 157 insertions(+) create mode 100644 src/Standards/PSR12/Docs/Files/FileHeaderStandard.xml diff --git a/src/Standards/PSR12/Docs/Files/FileHeaderStandard.xml b/src/Standards/PSR12/Docs/Files/FileHeaderStandard.xml new file mode 100644 index 0000000000..6caecb0c8d --- /dev/null +++ b/src/Standards/PSR12/Docs/Files/FileHeaderStandard.xml @@ -0,0 +1,157 @@ + + + + + + + + + + + + + + + + + + + +declare(strict_types=1); + +namespace Vendor\Package; +use Vendor\Package\{ClassA as A, ClassB}; + + +use function Vendor\Package\funcA; +// Blank line between the function imports. + +use function Another\Vendor\funcD; + +// Remainder of the code in the file. + ]]> + + + + + + + + use const Vendor\Package\{CONST_A, CONST_B}; +use const Another\Vendor\CONST_D; + +use function Vendor\Package\{funcA, funcB}; +use function Another\Vendor\funcD; + +// Remainder of the code in the file. + ]]> + + +