From 7f7a7aa38d335a632abd66b5496ad8709e1bcfa7 Mon Sep 17 00:00:00 2001 From: Daniel Siepmann Date: Tue, 25 Apr 2017 16:35:54 +0200 Subject: [PATCH] TASK: Add missing docs --- src/Standards/Typo3Update/Feature/Features.php | 9 +++++++++ src/Standards/Typo3Update/Options.php | 5 +++++ .../MissingNamespaceSniff/nothingTodo/Expected.diff | 0 3 files changed, 14 insertions(+) create mode 100644 tests/Fixtures/Standards/Typo3Update/Sniffs/LegacyClassname/MissingNamespaceSniff/nothingTodo/Expected.diff diff --git a/src/Standards/Typo3Update/Feature/Features.php b/src/Standards/Typo3Update/Feature/Features.php index ac6ee42..386b99c 100644 --- a/src/Standards/Typo3Update/Feature/Features.php +++ b/src/Standards/Typo3Update/Feature/Features.php @@ -28,7 +28,16 @@ use Typo3Update\Options; */ class Features implements \Iterator { + /** + * Internal array position for \Iterator implementation. + * @var int + */ protected $index = 0; + + /** + * Internal array + * @var array + */ protected $features = []; /** diff --git a/src/Standards/Typo3Update/Options.php b/src/Standards/Typo3Update/Options.php index 6aba777..c5f8a9d 100644 --- a/src/Standards/Typo3Update/Options.php +++ b/src/Standards/Typo3Update/Options.php @@ -100,6 +100,11 @@ class Options return $option; } + /** + * Get the configured features. + * + * @return array + */ public static function getFeaturesConfiguration() { $option = []; diff --git a/tests/Fixtures/Standards/Typo3Update/Sniffs/LegacyClassname/MissingNamespaceSniff/nothingTodo/Expected.diff b/tests/Fixtures/Standards/Typo3Update/Sniffs/LegacyClassname/MissingNamespaceSniff/nothingTodo/Expected.diff new file mode 100644 index 0000000..e69de29