From 25688774f7a5b842fa856affa51b46dd91855f46 Mon Sep 17 00:00:00 2001 From: Olda Salek Date: Mon, 11 Sep 2023 11:33:57 +0200 Subject: [PATCH 1/2] Fix invalid namespace in phpdoc (\PHP_CodeSniffer\Files\File) --- src/Reports/Cbf.php | 2 +- src/Reports/Checkstyle.php | 2 +- src/Reports/Code.php | 2 +- src/Reports/Csv.php | 2 +- src/Reports/Diff.php | 2 +- src/Reports/Emacs.php | 2 +- src/Reports/Full.php | 2 +- src/Reports/Info.php | 2 +- src/Reports/Json.php | 2 +- src/Reports/Junit.php | 2 +- src/Reports/Notifysend.php | 2 +- src/Reports/Report.php | 2 +- src/Reports/Source.php | 2 +- src/Reports/Summary.php | 2 +- src/Reports/VersionControl.php | 2 +- src/Reports/Xml.php | 2 +- 16 files changed, 16 insertions(+), 16 deletions(-) diff --git a/src/Reports/Cbf.php b/src/Reports/Cbf.php index 0ecde76e67..f33bae4129 100644 --- a/src/Reports/Cbf.php +++ b/src/Reports/Cbf.php @@ -29,7 +29,7 @@ class Cbf implements Report * its data should be counted in the grand totals. * * @param array $report Prepared report data. - * @param \PHP_CodeSniffer\File $phpcsFile The file being reported on. + * @param \PHP_CodeSniffer\Files\File $phpcsFile The file being reported on. * @param bool $showSources Show sources? * @param int $width Maximum allowed line width. * diff --git a/src/Reports/Checkstyle.php b/src/Reports/Checkstyle.php index 06a78e19fa..aff9f8e29f 100644 --- a/src/Reports/Checkstyle.php +++ b/src/Reports/Checkstyle.php @@ -24,7 +24,7 @@ class Checkstyle implements Report * its data should be counted in the grand totals. * * @param array $report Prepared report data. - * @param \PHP_CodeSniffer\File $phpcsFile The file being reported on. + * @param \PHP_CodeSniffer\Files\File $phpcsFile The file being reported on. * @param bool $showSources Show sources? * @param int $width Maximum allowed line width. * diff --git a/src/Reports/Code.php b/src/Reports/Code.php index 47c5581e25..8660132d3f 100644 --- a/src/Reports/Code.php +++ b/src/Reports/Code.php @@ -24,7 +24,7 @@ class Code implements Report * its data should be counted in the grand totals. * * @param array $report Prepared report data. - * @param \PHP_CodeSniffer\File $phpcsFile The file being reported on. + * @param \PHP_CodeSniffer\Files\File $phpcsFile The file being reported on. * @param bool $showSources Show sources? * @param int $width Maximum allowed line width. * diff --git a/src/Reports/Csv.php b/src/Reports/Csv.php index 6db7ecfc18..0e467e1cab 100644 --- a/src/Reports/Csv.php +++ b/src/Reports/Csv.php @@ -23,7 +23,7 @@ class Csv implements Report * its data should be counted in the grand totals. * * @param array $report Prepared report data. - * @param \PHP_CodeSniffer\File $phpcsFile The file being reported on. + * @param \PHP_CodeSniffer\Files\File $phpcsFile The file being reported on. * @param bool $showSources Show sources? * @param int $width Maximum allowed line width. * diff --git a/src/Reports/Diff.php b/src/Reports/Diff.php index ce4b31fc08..e7d124e7c5 100644 --- a/src/Reports/Diff.php +++ b/src/Reports/Diff.php @@ -23,7 +23,7 @@ class Diff implements Report * its data should be counted in the grand totals. * * @param array $report Prepared report data. - * @param \PHP_CodeSniffer\File $phpcsFile The file being reported on. + * @param \PHP_CodeSniffer\Files\File $phpcsFile The file being reported on. * @param bool $showSources Show sources? * @param int $width Maximum allowed line width. * diff --git a/src/Reports/Emacs.php b/src/Reports/Emacs.php index 3555f55418..55665b6c2d 100644 --- a/src/Reports/Emacs.php +++ b/src/Reports/Emacs.php @@ -23,7 +23,7 @@ class Emacs implements Report * its data should be counted in the grand totals. * * @param array $report Prepared report data. - * @param \PHP_CodeSniffer\File $phpcsFile The file being reported on. + * @param \PHP_CodeSniffer\Files\File $phpcsFile The file being reported on. * @param bool $showSources Show sources? * @param int $width Maximum allowed line width. * diff --git a/src/Reports/Full.php b/src/Reports/Full.php index 084bc8aa58..0db29ef919 100644 --- a/src/Reports/Full.php +++ b/src/Reports/Full.php @@ -24,7 +24,7 @@ class Full implements Report * its data should be counted in the grand totals. * * @param array $report Prepared report data. - * @param \PHP_CodeSniffer\File $phpcsFile The file being reported on. + * @param \PHP_CodeSniffer\Files\File $phpcsFile The file being reported on. * @param bool $showSources Show sources? * @param int $width Maximum allowed line width. * diff --git a/src/Reports/Info.php b/src/Reports/Info.php index 3181bcc546..7a696cd2bf 100644 --- a/src/Reports/Info.php +++ b/src/Reports/Info.php @@ -24,7 +24,7 @@ class Info implements Report * its data should be counted in the grand totals. * * @param array $report Prepared report data. - * @param \PHP_CodeSniffer\File $phpcsFile The file being reported on. + * @param \PHP_CodeSniffer\Files\File $phpcsFile The file being reported on. * @param bool $showSources Show sources? * @param int $width Maximum allowed line width. * diff --git a/src/Reports/Json.php b/src/Reports/Json.php index 59d8f305e5..36ae78c0f4 100644 --- a/src/Reports/Json.php +++ b/src/Reports/Json.php @@ -24,7 +24,7 @@ class Json implements Report * its data should be counted in the grand totals. * * @param array $report Prepared report data. - * @param \PHP_CodeSniffer\File $phpcsFile The file being reported on. + * @param \PHP_CodeSniffer\Files\File $phpcsFile The file being reported on. * @param bool $showSources Show sources? * @param int $width Maximum allowed line width. * diff --git a/src/Reports/Junit.php b/src/Reports/Junit.php index d3ede61d47..a05ab3e94a 100644 --- a/src/Reports/Junit.php +++ b/src/Reports/Junit.php @@ -25,7 +25,7 @@ class Junit implements Report * its data should be counted in the grand totals. * * @param array $report Prepared report data. - * @param \PHP_CodeSniffer\File $phpcsFile The file being reported on. + * @param \PHP_CodeSniffer\Files\File $phpcsFile The file being reported on. * @param bool $showSources Show sources? * @param int $width Maximum allowed line width. * diff --git a/src/Reports/Notifysend.php b/src/Reports/Notifysend.php index 0841662234..f84ebaef0f 100644 --- a/src/Reports/Notifysend.php +++ b/src/Reports/Notifysend.php @@ -89,7 +89,7 @@ public function __construct() * its data should be counted in the grand totals. * * @param array $report Prepared report data. - * @param \PHP_CodeSniffer\File $phpcsFile The file being reported on. + * @param \PHP_CodeSniffer\Files\File $phpcsFile The file being reported on. * @param bool $showSources Show sources? * @param int $width Maximum allowed line width. * diff --git a/src/Reports/Report.php b/src/Reports/Report.php index 38f8a6298c..230f33d500 100644 --- a/src/Reports/Report.php +++ b/src/Reports/Report.php @@ -23,7 +23,7 @@ interface Report * its data should be counted in the grand totals. * * @param array $report Prepared report data. - * @param \PHP_CodeSniffer\File $phpcsFile The file being reported on. + * @param \PHP_CodeSniffer\Files\File $phpcsFile The file being reported on. * @param bool $showSources Show sources? * @param int $width Maximum allowed line width. * diff --git a/src/Reports/Source.php b/src/Reports/Source.php index ce8c3cfec1..1a5f7119c8 100644 --- a/src/Reports/Source.php +++ b/src/Reports/Source.php @@ -24,7 +24,7 @@ class Source implements Report * its data should be counted in the grand totals. * * @param array $report Prepared report data. - * @param \PHP_CodeSniffer\File $phpcsFile The file being reported on. + * @param \PHP_CodeSniffer\Files\File $phpcsFile The file being reported on. * @param bool $showSources Show sources? * @param int $width Maximum allowed line width. * diff --git a/src/Reports/Summary.php b/src/Reports/Summary.php index 8fe18e7640..f337f21901 100644 --- a/src/Reports/Summary.php +++ b/src/Reports/Summary.php @@ -24,7 +24,7 @@ class Summary implements Report * its data should be counted in the grand totals. * * @param array $report Prepared report data. - * @param \PHP_CodeSniffer\File $phpcsFile The file being reported on. + * @param \PHP_CodeSniffer\Files\File $phpcsFile The file being reported on. * @param bool $showSources Show sources? * @param int $width Maximum allowed line width. * diff --git a/src/Reports/VersionControl.php b/src/Reports/VersionControl.php index 0f414567dc..5ba6112695 100644 --- a/src/Reports/VersionControl.php +++ b/src/Reports/VersionControl.php @@ -32,7 +32,7 @@ abstract class VersionControl implements Report * its data should be counted in the grand totals. * * @param array $report Prepared report data. - * @param \PHP_CodeSniffer\File $phpcsFile The file being reported on. + * @param \PHP_CodeSniffer\Files\File $phpcsFile The file being reported on. * @param bool $showSources Show sources? * @param int $width Maximum allowed line width. * diff --git a/src/Reports/Xml.php b/src/Reports/Xml.php index 066383debe..59e9bd71d5 100644 --- a/src/Reports/Xml.php +++ b/src/Reports/Xml.php @@ -24,7 +24,7 @@ class Xml implements Report * its data should be counted in the grand totals. * * @param array $report Prepared report data. - * @param \PHP_CodeSniffer\File $phpcsFile The file being reported on. + * @param \PHP_CodeSniffer\Files\File $phpcsFile The file being reported on. * @param bool $showSources Show sources? * @param int $width Maximum allowed line width. * From 0014904efdb1539927227e34303c797d4cc31f07 Mon Sep 17 00:00:00 2001 From: Olda Salek Date: Mon, 11 Sep 2023 12:52:13 +0200 Subject: [PATCH 2/2] fix coding style spaces --- src/Reports/Cbf.php | 6 +++--- src/Reports/Checkstyle.php | 6 +++--- src/Reports/Code.php | 6 +++--- src/Reports/Csv.php | 6 +++--- src/Reports/Diff.php | 6 +++--- src/Reports/Emacs.php | 6 +++--- src/Reports/Full.php | 6 +++--- src/Reports/Info.php | 6 +++--- src/Reports/Json.php | 6 +++--- src/Reports/Junit.php | 6 +++--- src/Reports/Notifysend.php | 6 +++--- src/Reports/Report.php | 6 +++--- src/Reports/Source.php | 6 +++--- src/Reports/Summary.php | 6 +++--- src/Reports/VersionControl.php | 6 +++--- src/Reports/Xml.php | 6 +++--- 16 files changed, 48 insertions(+), 48 deletions(-) diff --git a/src/Reports/Cbf.php b/src/Reports/Cbf.php index f33bae4129..c85353d988 100644 --- a/src/Reports/Cbf.php +++ b/src/Reports/Cbf.php @@ -28,10 +28,10 @@ class Cbf implements Report * and FALSE if it ignored the file. Returning TRUE indicates that the file and * its data should be counted in the grand totals. * - * @param array $report Prepared report data. + * @param array $report Prepared report data. * @param \PHP_CodeSniffer\Files\File $phpcsFile The file being reported on. - * @param bool $showSources Show sources? - * @param int $width Maximum allowed line width. + * @param bool $showSources Show sources? + * @param int $width Maximum allowed line width. * * @return bool * @throws \PHP_CodeSniffer\Exceptions\DeepExitException diff --git a/src/Reports/Checkstyle.php b/src/Reports/Checkstyle.php index aff9f8e29f..313e086710 100644 --- a/src/Reports/Checkstyle.php +++ b/src/Reports/Checkstyle.php @@ -23,10 +23,10 @@ class Checkstyle implements Report * and FALSE if it ignored the file. Returning TRUE indicates that the file and * its data should be counted in the grand totals. * - * @param array $report Prepared report data. + * @param array $report Prepared report data. * @param \PHP_CodeSniffer\Files\File $phpcsFile The file being reported on. - * @param bool $showSources Show sources? - * @param int $width Maximum allowed line width. + * @param bool $showSources Show sources? + * @param int $width Maximum allowed line width. * * @return bool */ diff --git a/src/Reports/Code.php b/src/Reports/Code.php index 8660132d3f..4a7a27af82 100644 --- a/src/Reports/Code.php +++ b/src/Reports/Code.php @@ -23,10 +23,10 @@ class Code implements Report * and FALSE if it ignored the file. Returning TRUE indicates that the file and * its data should be counted in the grand totals. * - * @param array $report Prepared report data. + * @param array $report Prepared report data. * @param \PHP_CodeSniffer\Files\File $phpcsFile The file being reported on. - * @param bool $showSources Show sources? - * @param int $width Maximum allowed line width. + * @param bool $showSources Show sources? + * @param int $width Maximum allowed line width. * * @return bool */ diff --git a/src/Reports/Csv.php b/src/Reports/Csv.php index 0e467e1cab..1f02edbd85 100644 --- a/src/Reports/Csv.php +++ b/src/Reports/Csv.php @@ -22,10 +22,10 @@ class Csv implements Report * and FALSE if it ignored the file. Returning TRUE indicates that the file and * its data should be counted in the grand totals. * - * @param array $report Prepared report data. + * @param array $report Prepared report data. * @param \PHP_CodeSniffer\Files\File $phpcsFile The file being reported on. - * @param bool $showSources Show sources? - * @param int $width Maximum allowed line width. + * @param bool $showSources Show sources? + * @param int $width Maximum allowed line width. * * @return bool */ diff --git a/src/Reports/Diff.php b/src/Reports/Diff.php index e7d124e7c5..68af0a0261 100644 --- a/src/Reports/Diff.php +++ b/src/Reports/Diff.php @@ -22,10 +22,10 @@ class Diff implements Report * and FALSE if it ignored the file. Returning TRUE indicates that the file and * its data should be counted in the grand totals. * - * @param array $report Prepared report data. + * @param array $report Prepared report data. * @param \PHP_CodeSniffer\Files\File $phpcsFile The file being reported on. - * @param bool $showSources Show sources? - * @param int $width Maximum allowed line width. + * @param bool $showSources Show sources? + * @param int $width Maximum allowed line width. * * @return bool */ diff --git a/src/Reports/Emacs.php b/src/Reports/Emacs.php index 55665b6c2d..cae9d22d85 100644 --- a/src/Reports/Emacs.php +++ b/src/Reports/Emacs.php @@ -22,10 +22,10 @@ class Emacs implements Report * and FALSE if it ignored the file. Returning TRUE indicates that the file and * its data should be counted in the grand totals. * - * @param array $report Prepared report data. + * @param array $report Prepared report data. * @param \PHP_CodeSniffer\Files\File $phpcsFile The file being reported on. - * @param bool $showSources Show sources? - * @param int $width Maximum allowed line width. + * @param bool $showSources Show sources? + * @param int $width Maximum allowed line width. * * @return bool */ diff --git a/src/Reports/Full.php b/src/Reports/Full.php index 0db29ef919..5f6bcde80a 100644 --- a/src/Reports/Full.php +++ b/src/Reports/Full.php @@ -23,10 +23,10 @@ class Full implements Report * and FALSE if it ignored the file. Returning TRUE indicates that the file and * its data should be counted in the grand totals. * - * @param array $report Prepared report data. + * @param array $report Prepared report data. * @param \PHP_CodeSniffer\Files\File $phpcsFile The file being reported on. - * @param bool $showSources Show sources? - * @param int $width Maximum allowed line width. + * @param bool $showSources Show sources? + * @param int $width Maximum allowed line width. * * @return bool */ diff --git a/src/Reports/Info.php b/src/Reports/Info.php index 7a696cd2bf..fa0698efdf 100644 --- a/src/Reports/Info.php +++ b/src/Reports/Info.php @@ -23,10 +23,10 @@ class Info implements Report * and FALSE if it ignored the file. Returning TRUE indicates that the file and * its data should be counted in the grand totals. * - * @param array $report Prepared report data. + * @param array $report Prepared report data. * @param \PHP_CodeSniffer\Files\File $phpcsFile The file being reported on. - * @param bool $showSources Show sources? - * @param int $width Maximum allowed line width. + * @param bool $showSources Show sources? + * @param int $width Maximum allowed line width. * * @return bool */ diff --git a/src/Reports/Json.php b/src/Reports/Json.php index 36ae78c0f4..f7aedb30a5 100644 --- a/src/Reports/Json.php +++ b/src/Reports/Json.php @@ -23,10 +23,10 @@ class Json implements Report * and FALSE if it ignored the file. Returning TRUE indicates that the file and * its data should be counted in the grand totals. * - * @param array $report Prepared report data. + * @param array $report Prepared report data. * @param \PHP_CodeSniffer\Files\File $phpcsFile The file being reported on. - * @param bool $showSources Show sources? - * @param int $width Maximum allowed line width. + * @param bool $showSources Show sources? + * @param int $width Maximum allowed line width. * * @return bool */ diff --git a/src/Reports/Junit.php b/src/Reports/Junit.php index a05ab3e94a..0b59604ae0 100644 --- a/src/Reports/Junit.php +++ b/src/Reports/Junit.php @@ -24,10 +24,10 @@ class Junit implements Report * and FALSE if it ignored the file. Returning TRUE indicates that the file and * its data should be counted in the grand totals. * - * @param array $report Prepared report data. + * @param array $report Prepared report data. * @param \PHP_CodeSniffer\Files\File $phpcsFile The file being reported on. - * @param bool $showSources Show sources? - * @param int $width Maximum allowed line width. + * @param bool $showSources Show sources? + * @param int $width Maximum allowed line width. * * @return bool */ diff --git a/src/Reports/Notifysend.php b/src/Reports/Notifysend.php index f84ebaef0f..71aed108ed 100644 --- a/src/Reports/Notifysend.php +++ b/src/Reports/Notifysend.php @@ -88,10 +88,10 @@ public function __construct() * and FALSE if it ignored the file. Returning TRUE indicates that the file and * its data should be counted in the grand totals. * - * @param array $report Prepared report data. + * @param array $report Prepared report data. * @param \PHP_CodeSniffer\Files\File $phpcsFile The file being reported on. - * @param bool $showSources Show sources? - * @param int $width Maximum allowed line width. + * @param bool $showSources Show sources? + * @param int $width Maximum allowed line width. * * @return bool */ diff --git a/src/Reports/Report.php b/src/Reports/Report.php index 230f33d500..fd60185e94 100644 --- a/src/Reports/Report.php +++ b/src/Reports/Report.php @@ -22,10 +22,10 @@ interface Report * and FALSE if it ignored the file. Returning TRUE indicates that the file and * its data should be counted in the grand totals. * - * @param array $report Prepared report data. + * @param array $report Prepared report data. * @param \PHP_CodeSniffer\Files\File $phpcsFile The file being reported on. - * @param bool $showSources Show sources? - * @param int $width Maximum allowed line width. + * @param bool $showSources Show sources? + * @param int $width Maximum allowed line width. * * @return bool */ diff --git a/src/Reports/Source.php b/src/Reports/Source.php index 1a5f7119c8..44f0d8748e 100644 --- a/src/Reports/Source.php +++ b/src/Reports/Source.php @@ -23,10 +23,10 @@ class Source implements Report * and FALSE if it ignored the file. Returning TRUE indicates that the file and * its data should be counted in the grand totals. * - * @param array $report Prepared report data. + * @param array $report Prepared report data. * @param \PHP_CodeSniffer\Files\File $phpcsFile The file being reported on. - * @param bool $showSources Show sources? - * @param int $width Maximum allowed line width. + * @param bool $showSources Show sources? + * @param int $width Maximum allowed line width. * * @return bool */ diff --git a/src/Reports/Summary.php b/src/Reports/Summary.php index f337f21901..cd5ca69476 100644 --- a/src/Reports/Summary.php +++ b/src/Reports/Summary.php @@ -23,10 +23,10 @@ class Summary implements Report * and FALSE if it ignored the file. Returning TRUE indicates that the file and * its data should be counted in the grand totals. * - * @param array $report Prepared report data. + * @param array $report Prepared report data. * @param \PHP_CodeSniffer\Files\File $phpcsFile The file being reported on. - * @param bool $showSources Show sources? - * @param int $width Maximum allowed line width. + * @param bool $showSources Show sources? + * @param int $width Maximum allowed line width. * * @return bool */ diff --git a/src/Reports/VersionControl.php b/src/Reports/VersionControl.php index 5ba6112695..e8e399a7dd 100644 --- a/src/Reports/VersionControl.php +++ b/src/Reports/VersionControl.php @@ -31,10 +31,10 @@ abstract class VersionControl implements Report * and FALSE if it ignored the file. Returning TRUE indicates that the file and * its data should be counted in the grand totals. * - * @param array $report Prepared report data. + * @param array $report Prepared report data. * @param \PHP_CodeSniffer\Files\File $phpcsFile The file being reported on. - * @param bool $showSources Show sources? - * @param int $width Maximum allowed line width. + * @param bool $showSources Show sources? + * @param int $width Maximum allowed line width. * * @return bool */ diff --git a/src/Reports/Xml.php b/src/Reports/Xml.php index 59e9bd71d5..c748dca726 100644 --- a/src/Reports/Xml.php +++ b/src/Reports/Xml.php @@ -23,10 +23,10 @@ class Xml implements Report * and FALSE if it ignored the file. Returning TRUE indicates that the file and * its data should be counted in the grand totals. * - * @param array $report Prepared report data. + * @param array $report Prepared report data. * @param \PHP_CodeSniffer\Files\File $phpcsFile The file being reported on. - * @param bool $showSources Show sources? - * @param int $width Maximum allowed line width. + * @param bool $showSources Show sources? + * @param int $width Maximum allowed line width. * * @return bool */